An Azure personalized recommendation engine that helps users follow best practices to optimize Azure deployments.
Hello K P, Jeevan (893), You’re encountering the error: {"code":"InvalidSubscription","message":"Invalid subscription identifier provided."}. This means Cloud Shell cannot validate the subscription ID it’s trying to use. Even though your subscription is active and you’re under the correct tenant, Cloud Shell fails to provision.
Verify the RBAC Permissions: Check Subscription > Access Control (IAM) > View My Access. You must have: Owner or Contributor
Required Resource Providers Not Registered: Go to Azure portal > Subscription > Resource Providers. Ensure these are Registered:
- Microsoft.Storage
- Microsoft.Resources
- Microsoft.ContainerInstance
- Microsoft.CloudShell
If not, please register them.
You can verify that the subscription is visible in Azure CLI, the subscription state is Enabled or the subscription ID matches the one used in the Azure Portal:
SQL
az account list --output table az account show
This is a very valid diagnostic step for InvalidSubscription.
- Make sure your target subscription is listed, has “
State: Enabled,” and matches the one you’re selecting in the portal. - If it’s not listed or it’s disabled, that’s why Cloud Shell can’t provision storage.
If the Subscription not Listed
Azure PowerShell
az login
Then recheck:
Azure PowerShell
az account list --output table
If the Subscription listed but wrong Subscription Is Default
Set correct subscription manually:
Azure PowerShell
az account set --subscription "SUBSCRIPTION_ID"
Verify:
Azure PowerShell
az account show
Then retry Cloud Shell.
If Cloud Shell previously worked, reset user settings
- Open Cloud Shell.
- Select the Settings (gear) icon in the Cloud Shell toolbar.
- Choose Reset user settings and confirm.
- Reopen Cloud Shell and reselect shell and subscription; then configure storage or ephemeral session again.
Follow the Cloud Shell Troubleshooting guide Azure Cloud Shell Frequently Asked Questions (FAQ) | Microsoft Learn
Hope this helps. and please feel free to reach out if you have any further questions. Thanks