Share via

Unable to start cloud shell

K P, Jeevan (893) 0 Reputation points
2026-03-03T10:29:21.9833333+00:00

Hi Team,
when i try to start to start the cliud shell i am getting Requesting a Cloud Shell.Sorry, your Cloud Shell failed to provision: {"code":"InvalidSubscription","message":"Invalid subscription identifier provided."} Please refresh the page. If the issue persists, please follow the troubleshooting guide Cloud Shell Troubleshooting or file a ticket New support request. Request correlation id:

Azure Advisor
Azure Advisor

An Azure personalized recommendation engine that helps users follow best practices to optimize Azure deployments.


2 answers

Sort by: Most helpful
  1. Bharath Y P 7,320 Reputation points Microsoft External Staff Moderator
    2026-03-04T11:56:56.92+00:00

    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

    1 person found this answer helpful.

  2. Q&A Assist
    2026-03-03T10:29:34.19+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    The error indicates that Cloud Shell cannot use the subscription identifier being passed for the session.

    Since commands work locally but Cloud Shell fails to provision, focus on Cloud Shell configuration and subscription context:

    1. Verify subscription selection when starting Cloud Shell
      • In the Azure portal, open Cloud Shell.
      • In the Getting started pane, ensure a valid subscription is selected in the subscription dropdown before choosing:
        • No storage account required (ephemeral session), or
        • Mount storage account (persistent session with new or existing storage).
      • If the wrong or an empty subscription is selected, Cloud Shell provisioning fails.
    2. Try starting an ephemeral Cloud Shell session
      • When prompted, select Bash or PowerShell.
      • In Getting started, choose No storage account required and select a valid subscription, then Apply.
      • This bypasses storage configuration and helps confirm whether the issue is only with subscription binding.
    3. 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.
    4. If the issue persists, open an Azure support ticket
      • Capture the full error, including the Request correlation id shown in the message.
      • From the Azure portal, open a new support request and include:
        • The correlation ID and timestamp.
        • The subscription that is expected to be used.
        • A note that Cloud Shell shows "code":"InvalidSubscription" while local CLI works.

    If Cloud Shell is being used from Microsoft Learn (embedded shell), also ensure third‑party cookies are enabled in the browser, as blocked cookies can prevent Cloud Shell from starting at all.


    References:

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.