PowerTip: Get Azure Subscription Names with PowerShell

Doctor Scripto

Summary: Use Windows PowerShell to get the name of cmdlets referring to your Azure subscription.

Hey, Scripting Guy! Question Is there an easy way to obtain the Azure cmdlets referring to my subscription name?

Hey, Scripting Guy! Answer Use the Get-AzureSubscription cmdlet and access the SubscriptionName property:

(Get-AzureSubscription).subscriptionname

If you have multiple subscriptions, you can access them individually:

(Get-AzureSubscription)[0].subscriptionname

(Get-AzureSubscription)[1].subscriptionname

0 comments

Discussion is closed.

Feedback usabilla icon