Accesss to perform a commando in a sandbox

Tor Aasen 0 Reputation points
2024-01-26T11:49:58.6566667+00:00

I established a sandbox and tried to establish a vnet unit as described in
But i says i do not have permission to perform the command: Kommando: az network vnet create --resource-group sensormanufactor --name CoreServicesVnet --address-prefixes 10.20.0.0/16 --location westus error message:

(AuthorizationFailed) The client 'live.com#tor@unicus.no' with object id '4a20de5d-765e-4404-8bcc-d44149ca0b1f' does not have authorization to perform action 'Microsoft.Network/virtualNetworks/write' over scope '/subscriptions/06606589-7232-4362-a192-aa2185e6c76c/resourceGroups/sensormanufactor/providers/Microsoft.Network/virtualNetworks/CoreServicesVnet' or the scope is invalid. If access was recently granted, please refresh your credentials.Code: AuthorizationFailed Message: The client 'live.com#tor@unicus.no' with object id '4a20de5d-765e-4404-8bcc-d44149ca0b1f' does not have authorization to perform action 'Microsoft.Network/virtualNetworks/write' over scope '/subscriptions/06606589-7232-4362-a192-aa2185e6c76c/resourceGroups/sensormanufactor/providers/Microsoft.Network/virtualNetworks/CoreServicesVnet' or the scope is invalid. If access was recently granted, please refresh your credentials.

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.
2,023 questions
{count} votes

1 answer

Sort by: Most helpful
  1. TP 102.4K Reputation points
    2024-01-26T13:06:43.75+00:00

    Hi Tor,

    There is a bug in the exercise that appeared recently. The resource group name in the code blocks doesn't get updated as it should. Please use instructions below to workaround the issue.

    Please navigate to the Exercise - Design and implement IP addressing for Azure virtual networks, Activate a new sandbox, sign in, etc. Once sandbox is activated and black cloud shell window with "Welcome to Azure Cloud Shell" displayed, navigate to Plan IP addressing for your networks using the "Unit x of 6" dropdown above the exercise.

    qna az-104 IP exercise workaround

    After page loads, immediately navigate back to Design and implement IP addressing for Azure virtual networks exercise. Once there, verify that the resource group name in the code blocks has been updated to something similar to learn-c95e635f-d291-8747-c339-12a8ef31691b instead of [sandbox resource group name]. Complete the exercise.

    Please make sure you click the Copy button in upper right of each code block, right-click Paste into Cloud Shell window on right, then press Enter to execute command. Inspiration for above workaround came from @pnaroju's #2 suggestion in this post.

    Please click Accept Answer and upvote if the above was helpful. If something is unclear add a comment below.

    Thanks.

    -TP

    1 person found this answer 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.