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 as the name of a cmdlet
Recently, I was trying to select my Azure subscription using my PowerShell ISE, but I got this error. 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 the error message below

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
Solution
To fix this issue or to select your Azure Subscription, follow the below steps
1. Open the PowerShell ISE or Windows PowerShell as Run as Administrator mode

2. You can run the Select-AzSubscription instead of Select-AzureSubscription with the SubscriptionName or subscription ID 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 output after running the above PowerShell cmdlet.

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

You may also like the following articles below
- New-AzResourceGroup: A positional parameter cannot be found that accepts the argument
- The specified module ‘ActiveDirectory’ was not loaded
- The Specified Module ‘AzureRM’ Was Not Loaded
Wrapping Up
In this article, we discussed how to fix the error: The term ‘Select-AzureSubscription’ is not recognized as the name of a cmdlet. I hope this information will help you !!!

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
