Skip to content

Instantly share code, notes, and snippets.

View KarishmaGhiya's full-sized avatar

KarishmaGhiya

  • @microsoft, University of Maryland Alumni
  • Redmond, WA
View GitHub Profile
@KarishmaGhiya
KarishmaGhiya / WI for Azure Service Connections.md
Last active February 28, 2024 21:12
[Identity] API Design for Workload Identity Credential for Azure Service connections

Introduction

This document is to plan the design for WI Credential to extend support to Azure Service Connections in Azure SDK for Identity. The user scenario for this is anyone trying to authenticate to the WI for a service connection in the Azure Devops Pipeline.

image

Read up on details on how WI federation is enabled for Service COnnections - https://devblogs.microsoft.com/devops/public-preview-of-workload-identity-federation-for-azure-pipelines/

The proposal for Azure SDK for Identity is to extend the existing WorkloadIdentity Credential that currently supports AKS to also support the Service Connections.

@KarishmaGhiya
KarishmaGhiya / script.js
Created February 11, 2016 02:46 — forked from anonymous/script.js
tipCalculator
var CheckAmount = prompt("Enter Check Amount");
var taxAmount = (CheckAmount * 0.07).toFixed(2);
var tipLevel1 = (CheckAmount * 0.10).toFixed(2);
var tipLevel2 = (CheckAmount * 0.15).toFixed(2);
var tipLevel3 = (CheckAmount * 0.20).toFixed(2);
var totalBill = (Number(CheckAmount) + Number(taxAmount) + Number(tipLevel2)).toFixed(2);
console.log("Base Amount: " + CheckAmount + "\n Tax (7%): "+Number(taxAmount)+"\nTip for stingy customers (10%): "+ tipLevel1 + "\nTip for regular customers (15%): "+tipLevel2+"\nTip for generous customers (20%): "+tipLevel3+ "\nTotal with tax and tip for regular customers: "+Number(totalBill));