In this Azure tutorial, we will see how to fix the error “ The term ‘Select-AzureSubscription’ is not recognized as the name of a cmdlet “. Which I got while trying to select my Azure Subscription using PowerShell ISE.
Table of Contents
- The term ‘Select-AzureSubscription’ is not recognized asthe name of a cmdlet
- The term ‘Select-AzureSubscription’ is not recognized asthe name of a cmdlet [Solved]
- Select azuresubscription (Select-AzureSubscription)
- Select-AzureSubscription : The subscription id ***** doesn’t exist [Solved].
- In Azure Powershell Select-AzureSubscription command fetching error the subscription name doesn’t exist
- What is the difference between Select-AzureSubscription and Set-AzureSubscription?
- Wrapping Up
The term ‘Select-AzureSubscription’ is not recognized as
the name of a cmdlet
Recently, I was trying to select my Azure subscription using my PowerShell ISE, But I got the error The term ‘Select-AzureSubscription’ is not recognized as the name of a cmdlet. I was executing the below PowerShell cmdlet to select my Azure Subscription.
PS C:\WINDOWS\system32> Select-AzureSubscription -SubscriptionName "Visual Studio Enterprise"
You can see below for the error message

The complete error message was as below
Select-AzureSubscription: The term ‘Select-AzureSubscription’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
- Select-AzureSubscription -SubscriptionName “Visual Studio Enterprise”
~~~~~~~~- CategoryInfo : ObjectNotFound: (Select-AzureSubscription:String) [], C
ommandNotFoundException - FullyQualifiedErrorId : CommandNotFoundException
- CategoryInfo : ObjectNotFound: (Select-AzureSubscription:String) [], C
The term ‘Select-AzureSubscription’ is not recognized as
the name of a cmdlet [Solved]
To fix this issue or to select your Azure Subscription, Follow the below steps
Open the PowerShell ISE or Windows PowerShell as Run as Administrator mode

You can run the Select-AzSubscription instead of Select-AzureSubscription with the SubscriptionName or subscritionID parameter as shown below.
PS C:\WINDOWS\system32> Select-AzureSubscription -SubscriptionName "Visual Studio Enterprise"
or you can also use the PowerShell command with the SubscriptionId parameter. Change your Azure subscription id accordingly.
Select-AzSubscription -SubscriptionId 'xxxxxxxx-dee5-4518-xxxx-feaa72a5cbd1'
You can see it below, we got the expected out put after running the above PowerShell cmdlet

When I ran the PowerShell command with the SubscriptionId, also we got the expected output

Select azuresubscription (Select-AzureSubscription)
Let’s discuss on Select-AzureSubscription. The Select-AzureSubscription PowerShell cmdlet actually helps you setting and clearing the “current subscription” which is internally used default with the current PowerShell session.
When we are thinking of the “default subscription” that is actually used by default for all the PowerShell sessions.
The “current subscription” actually helps you to specify different other subscriptions to be used default to the ongoing session and no need to change the “default subscription” for all other sessions.
You can also use the Select-AzSubscription instead of Select-AzureSubscription and both will work on the same way.
Syntax
The syntax to set the “current subscription” is as below
Select-AzureSubscription -Current -SubscriptionName Yoursubscriptionname
The syntax to set the “default subscription” is as below
Select-AzureSubscription -Default -SubscriptionName Yoursubscriptionname -SubscriptionDataFile "C:\subs\MySubscriptions.xml"
The parameters that can be used along with Select-AzureSubscription are –Account, -Current, -NoCurrent, -NoDefault, -PassThru, -Profile, -SubscriptionName.
Select-AzureSubscription : The subscription id ***** doesn’t exist [Solved].
While executing the Select-AzureSubscription, there might be a chance you will get the error Select-AzureSubscription : The subscription id ***** doesn’t exist. In that case you can tryout the below approaches
- Try executing Select-AzSubscription with the -SubscriptionId parameter. The syntax will be like below and will definitely work for you
Select-AzSubscription -SubscriptionId 'xxxxxx-dee5-4518-9c9c-feaa7xxxxxx'
Note: Make sure that your SubscriptionId is the correct one.
2. You can also try out executing the below PowerShell cmdlet
Login-azureRMAccount
Get-AzureRmSubscription -SubscriptionId "***-****-****-*****-****"
Select-AzureRmSubscription -SubscriptionId "***-****-****-*****-****"
In Azure Powershell Select-AzureSubscription command fetching error the subscription name doesn’t exist
While, trying to execute the Select-AzureSubscription along with the -SubscriptionName parameter, you might get the subscription name doesn’t exist. Follow the below instruction and that will help you.
- The first thing is to make sure the SubscriptionName that you have entered is correct. You can cross-check that in case you have missed to enter it correctly.
- You can execute the Azure Powershell Select-AzureSubscription cmdlet like below.
Select-AzureSubscription -SubscriptionName "Visual Studio Enterprise"
“Visual Studio Enterprise” is the name of my subscription. you will have to change the subscription name as per yours.
What is the difference between Select-AzureSubscription and Set-AzureSubscription?
Select-AzureSubscription
The Azure PowerShell cmdlet Select-AzureSubscription can help you to change the current and default Azure subscriptions.
Set-AzureSubscription
The Azure PowerShell cmdlet Set-AzureSubscription can help you to change the properties of your Azure subscription object.
Basically, Set-AzureSubscription cmdlet can be used to work in an Azure subscription which is not your default subscription
You may also like following the below articles
- How To Create Azure Cognitive Services PowerShell
- New-AzResourceGroup: A positional parameter cannot be found that accepts argument
- The term ‘Uninstall-AzModule’ is not recognized as the name of a cmdlet
- The specified module ‘ActiveDirectory’ was not loaded
- The Specified Module ‘AzureRM’ Was Not Loaded
Wrapping Up
Well, In this article, we discussed how to fix the error The term ‘Select-AzureSubscription’ is not recognized as the name of a cmdlet, Select-AzureSubscription: The subscription id ***** doesn’t exist, In Azure Powershell Select-AzureSubscription command fetching error the subscription name doesn’t exist, and the substitute that can be used instead of the Select-AzureSubscription PowerShell command, Select azuresubscription (Select-AzureSubscription), What is the difference between Select-AzureSubscription and Set-AzureSubscription? Hope you have enjoyed this article !!!