Azure Active Directory IDs

Setting up or accessing Azure Active Directory require many IDs. Below is how to find them:

Tenant ID
Azure Portal > Azure AD > Domain names
Azure Portal > Azure AD > Properties > Directory ID

Instance
https://login.windows.net/

Client ID / Application ID / Audience
Azure Portal > Azure AD > App registrations > ApplicationId

Client Secret / Application Secret
Azure Portal > Azure AD > App registrations > choose the application > Keys
Keys are hidden and only visible the first time you add them.

Redirect URIs or Reply URLs
Azure Portal > Azure AD > App registrations > choose the application > Settings > Redirect URIs or Reply URLs

Resource
Azure Portal > Azure AD > App registrations
SQL database: https://database.windows.net/

References:
Azure AD

Advertisements

Azure Key Vault PowerShell Commands

Login-AzureRmAccount

# List all Key vaults
Get-AzureRmKeyVault

# Get a key given the secret name.
Get-AzureKeyVaultKey -VaultName "vault-name" -Name "secret-name"

# List all secrets
Get-AzureKeyVaultSecret -VaultName "vault-name"

# Get a secret
Get-AzureKeyVaultSecret -VaultName "vault-name" -Name "secret-name"

Reference:
AzureRM.KeyVault
Azure Get Started

Does ConcurrentDirectory Value Get Locked Automatically?

According to MSDN doc, lock is not necessary with ConcurrentDictionary. Does the underlying object in the dictionary also gets locked automatically?

var items = new ConcurrentDictionary<int, List<Item>>();

public class Item
{
    public string Name {get;set;}
    public double Cost {get;set;}
}