Can't start Cloud powershell in azure portal

Jenny Trinh 0 Reputation points
2023-05-18T22:20:46.68+00:00

Hi,

I'm getting message that I need azure subscription to run powershell. I am using free trial azure subscription for a month and also getting $200 free credit. What do I do to get azure powershell running and tied to the subscription? Please see the attached screenshot of error

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
21,272 questions
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,596 Reputation points Microsoft Employee
    2023-05-25T17:50:53.97+00:00

    @Jenny Trinh

    Thank you for your post and I apologize for the delayed response!

    I understand that you're running into a subscription issue when trying to start Azure Cloud Shell, even though you have an active free trial subscription with credits. To hopefully help point you in the right direction and resolve your issue, I'll share some troubleshooting steps below.

    1. Select a new Subscription from the Cloud Shell UI - For more info.
    2. If your free trial subscription can't be selected from the Cloud Shell UI, you'll have to register your subscription to the Microsoft.CloudShell namespace using Azure CLI or Azure PowerShell on your desktop.

    Note: You only need to register the namespace once per subscription.

    Registering your subscription with Azure Cloud Shell:

    Use the following commands to register the Microsoft.CloudShell namespace in your subscription:
    az account set --subscription <Subscription Name or Id>
    
    az provider register --namespace Microsoft.CloudShell
    

    Additional Links:

    I hope this helps!

    If you have any other questions, please let me know. Thank you for your time and patience throughout this issue.


    If the information helped address your question, please Accept the answer. This will help us and also improve searchability for others in the community who might be researching similar information.


Your answer

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