Hi SL I want to help you with this question.
As I understand, you get the shown error in the screenshot when you execute the command:
az network vnet create --resource-group myRe --name Azure-VNet-1 --address-prefixes 10.0.0.0/16 --subnet-name Services --subnet-prefixes 10.0.0.0/24
Is that correct?
Please verify the following first ( if you didn't do that already)
- Log in to your Microsoft Learn account using a new private browsing window.
- If the issue persists beyond step 1, clear your browser's cache and cookies, or log in using a new incognito window.
- But I was able to reproduce your shown error in the same exercise. I logged in to Azure and switched the tenant to the learn path tenant (you are a part of it with your account for the duration of the active sandbox). You have only one resource group deployed in the tenant and to deploy the resources with the command shown in your screenshot you have to use this exact resource group.
At the moment you want to deploy your vnet in a resource group that doesn't exist and of course, you can't have rights there either.
So please find out the created resource group in the sandbox tenant.
1.) Execute the following command az group list
2.) Search for the name attribute and copy it to use it in your command to create the vnet
It should work then.
If the reply was helpful, please don’t forget to upvote or accept it as an answer, thank you!