Select-AzureSubscription: The subscription id doesn’t exist

While executing the Select-AzureSubscription, there might be a chance you will get the error Select-AzureSubscription: The subscription id ***** doesn’t exist.

Select-AzureSubscription: The subscription id doesn’t exist

Recently, I was trying to execute the Select-AzureSubscription PowerShell command and I got this error.

Select-AzureSubscription: The subscription id doesn’t exist [Solved].

I have followed the below approaches

  1. 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'

After executing the above command, I got the expected output

Select-AzureSubscription The subscription id doesn't exist

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 "***-****-****-*****-****"

Final Thoughts

In this Azure PowerShell article, we discussed how to fix the error “Select-AzureSubscription: The subscription id doesn’t exist” that I got while executing the Select-AzureSubscription PowerShell command.