Unit 9 in configure network access my VM timed out and now it won't let me recreate, I get the unauthorized banner as a reply every time I try. How do I fix?

Russel Sanders 20 Reputation points
2024-09-18T14:35:26.64+00:00

(AuthorizationFailed) The client 'live.com#russlsanders@gmail.com' with object id 'e06c34be-86bb-45c2-b240-9dd1c5311bb7' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/2e1983f3-941c-4481-8078-59770cd89928/resourcegroups/learn-ad19fd93-40c4-4c75-bc17-cffaf4139ef7' or the scope is invalid. If access was recently granted, please refresh your credentials.

Code: AuthorizationFailed

Message: The client 'live.com#russlsanders@gmail.com' with object id 'e06c34be-86bb-45c2-b240-9dd1c5311bb7' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/2e1983f3-941c-4481-8078-59770cd89928/resourcegroups/learn-ad19fd93-40c4-4c75-bc17-cffaf4139ef7' or the scope is invalid. If access was recently granted, please refresh your credentials.

This question is related to the following Learning Module

Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,524 questions
{count} votes

Accepted answer
  1. VarunTha 7,810 Reputation points Microsoft Vendor
    2024-09-18T21:54:01.7166667+00:00

    Hi Russel Sanders,
    We understand that you're facing issues while trying to create a VM in the sandbox as part of the "Describe Azure compute and networking services" module.

    Here are a few troubleshooting steps that might help resolve the issue:

    1. Sign Out of the Azure Portal: Please make sure to completely sign out from the Azure portal used in the previous module, "Exercise - Create an Azure resource." This portal has an active Microsoft Learn sandbox directory with a Concierge subscription.
    2. Sign Out of Azure Cloud Shell: Fully sign out from the Azure Cloud Shell sandbox, or wait for the sandbox activation time to expire.
    3. Activate a New Sandbox: Click on "Activate Sandbox" to start a new sandbox session. This will generate a default subscription called "Concierge subscription" along with a default resource group name starting with "learn." To avoid any browser-related issues, we suggest using a different browser or opening an incognito/private window.
    4. Check Resource Group Name: Once you've signed back into the Azure portal, verify that the resource group name you're using in the "az vm create" command matches the one shown in the portal for your sandbox environment.
    5. Refresh the Sandbox Environment: Since you may not have the permissions required to modify the sandbox environment and the error suggests an authorization issue, the best solution would be to refresh the Microsoft Learn sandbox environment. This will recreate the environment with the necessary permissions.
    6. Follow Microsoft Learn Instructions: Be sure to follow the instructions provided in the Microsoft Learn exercise. These steps are specifically designed for the sandbox environment and often use Cloud Shell commands to avoid any permission issues. Ensure you're running the Azure CLI commands in the correct directory (Microsoft Learn Sandbox) and with the correct subscription selected.

    Please note that the sandbox environment's permissions are preset and cannot be modified by users. The Concierge Subscription is automatically created for sandbox environments to provide the necessary resources, and due to the nature of this setup, deletion or modification of the subscription is restricted.

    If you continue to experience any issues, feel free to share your concerns in the comments. We are here to assist you.

    If you find this information helpful, please consider acknowledging it by clicking the "Upvote" and "Accept Answer" buttons.


0 additional answers

Sort by: Most helpful

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.