Learn this information to discover ways to rename an Azure Subscription utilizing the Azure portal or PowerShell in your pc or in Azure Cloud Shell.
Choice 1: Rename a Subscription through the Portal
- Register to portal.azure.com, seek for a subscription, after which choose Subscriptions.
- After that, click on the subscription you need to rename.
- Lastly, click on the Rename button, give the subscription a brand new title, and click on Save.
Choice 2: Rename a Subscription with PowerShell (Pc)
- Open PowerShell 5.0 as administrator in your pc and run the command under.
Join-AzAccount
- Then, choose the account you need to register to Azure with on the Register pop-up. If you should register with an account not on the listing, select Use a special account.
- After that, enter the Azure e mail account after which the password.
- Lastly, run the instructions under to put in the required PowerShell modules and rename the Azure subscription.
#1. Set up and import the Az.Accounts and Az.Subscription modules. With out this, the Rename-AzSubscription command is not going to be accessibleSet up-Module -Identify Az.Accounts, Az.Subscription -Pressure
Import-Module Az.Accounts, Az.Subscription -Pressure#2. Return all subscriptions in your Azure tenant
get-AzSubscription
#3. Rename the subscription
Rename-AzSubscription -Id 107adc00-2694-430e-b985-d2639d9e1eef -SubscriptionName "AZ-100 Lab"
#4. Test that the subscription has modified
get-AzSubscription
Choice 3: Rename a Subscription through Azure Cloud Shell PowerShell
- Register to portal.azure.com and open Azure Cloud Shell by clicking its icon.
- If it’s your first time opening Azure Cloud Shell, comply with the numbering on this screenshot to set it up for the primary time.
- Lastly, run the instructions under to put in the required module and rename the Azure Subscription.
#1. Set up and import the Az.Accounts module. With out this, the Rename-AzSubscription command is not going to be accessibleSet up-Module -Identify Az.Subscription -Pressure
Import-Module Az.Subscription -Pressure#2. Return all subscriptions in your Azure tenant
get-AzSubscription
#3. Rename the subscription
Rename-AzSubscription -Id 107adc00-2694-430e-b985-d2639d9e1eef -SubscriptionName "AZ-100 Lab"
#4. Test that the subscription has modified
get-AzSubscription
Conclusion
A part of the Azure Infrastructure admin function includes managing and generally renaming subscriptions. On this fast information, I shared three strategies to perform this activity through the Azure portal, Azure Cloud Shell, and PowerShell on a pc.
I’m assured that you’ve completed your goal of studying this information utilizing considered one of these strategies. Please let me know what you consider the information by responding to our “Was this web page useful?” query under.