Herein, how do I change my Azure PowerShell subscription?
Change the active subscription
In order to change subscriptions, an Azure PowerShell Context object first needs to be retrieved with Get-AzSubscription and then the current context changed with Set-AzContext.
Additionally, can you rename an Azure subscription? Sign in to the Azure portal, select Subscription from the left pane, and then select the subscription that you want to rename. Select Overview, and then select Rename from the command bar. After you change the name, select Save.
Subsequently, one may also ask, how do I change my default subscription in Azure?
Go to the old portal. and then select Subscriptions at the top of the screen and from FILTER BY DIRECTORY make sure you're selecting you own subscription -the one you're the admin of it, not a co admin- then select Manage subscriptions/directory.
How do I check my Azure PowerShell subscription?
In this article
- Get a list of all subscriptions in your account. Azure PowerShell Copy. Try It. Get-AzureRmSubscription.
- Set the default. Azure PowerShell Copy. Try It. Select-AzureRmSubscription -Subscription "My Demos"
- Verify the change by running the Get-AzureRmContext cmdlet. Azure PowerShell Copy. Try It.