Summary: Get your Windows Azure Active Directory tenant ID in Windows PowerShell.
How can I get my Windows Azure Active Directory tenant ID in Windows PowerShell?
Use the Add-AzureAccount cmdlet to add your Windows Azure account to Windows PowerShell:
PS C:> Add-AzureAccount
Then use Get-AzureAccount to get the tenant ID:
PS C:>(Get-AzureAccount).ActiveDirectories.ActiveDirectoryTenantID
0 comments