Selecting subscription
When you have multiple subscriptions under your Azure account; it's important that you are selecting the one you wish to operate on (and use this as default); to avoid accidents happening to resources on the wrong subscription.
Classic mode
Set-AzureSubscription
Select-AzureSubscription click below button to copy the code. By azure tutorial team
Resource manager
Select-AzureRmSubscriptionclick below button to copy the code. By azure tutorial team
Subscription information
- The commands above ask you to specify information (e.g., the Subscription ID) to identify the subscription you want to switch to. To list this information for the subscriptions you have access to, run this command:
Get-AzureSubscription