Azure powershell Select-AzureSubscription - error: the subscription name doesn't exist Azure powershell Select-AzureSubscription - error: the subscription name doesn't exist powershell powershell

Azure powershell Select-AzureSubscription - error: the subscription name doesn't exist


If you are using Resource Manager, the correct cmdlet is:

Get-AzureRmSubscription –SubscriptionName "<name>" | Select-AzureRmSubscription

or just use -SubscriptionId instead of -SubscriptionName.

Select-AzureSubscription is to be used to manage classic resources. To make it work you also have to add classic credentials using:

Add-AzureAccount


The problem you're having is that the 'default' parameter is depreciated.

if you run

Select-AzureSubscription -SubscriptionName "Visual Studio Premium with MSDN" `                         -Default "Visual Studio Premium with MSDN"

You get -

WARNING: Current and Default parameters have been deprecated. Select-AzureSubscription will always update the Default Subscription

If you just run

 Select-AzureSubscription -SubscriptionName "Visual Studio Premium with MSDN"  

You should get the result you're looking for.


  • Connect-AzureRmAccount then login to Azure as normal
  • Run the command cmdlet Get-AzureRmSubscription –SubscriptionName "<name>" | Select-AzureRmSubscription (see answer by @Bruno Faria)