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

PowerTip: Change current Azure Resource Manager subscription by using PowerShell

$
0
0

Summary: Use the Azure Resource Manager cmdlets to alter the current active subscription in use.

Hey, Scripting Guy! Question I have about a dozen different subscriptions in my Azure Resource Manager account. How can I change it from the default one to one of my others?

Hey, Scripting Guy! Answer You can do this very task by using the Select-AzureRMSubscription cmdlet and providing either the name of the subscription or the SubscriptionId (which is probably more accurate). Here are examples:

Select-AzureRMSubscription –SubscriptionName ‘My MSDN Subscription’

*or*

Select-AzureRMSubscription –SubscriptionID ‘11111111-1111-1111-1111-111111111111’

The Doctor


Viewing all articles
Browse latest Browse all 3333

Trending Articles



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