Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Get Azure Subscription Names with PowerShell

$
0
0

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


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>