Question regarding permissions in labs\sandboxes

good day,
i have a question regarding sandboxes for Az-104 cource.
in most of the cases, i can not work with full functionality.
for instance, in cource az104, module: administer virtual network, in NSG section, i have build virtual lab myself with PS script(AZ104/v2/050- Administer Virtual Networking/nsg-prep-infra.ps1 at main · kodekloudhub/AZ104 · GitHub)

userID is :
kk_lab_user_main-c8188227b16b4ca4@azurekmlprodkodekloud.onmicrosoft.com

but, when i run this script, i got message:

New-AzVM : The client ‘kk_lab_user_main-c8188227b16b4ca4@azurekmlprodkodekloud.onmicrosoft.com’ with object id ‘970aee57-f4e3-4d2b-a9e8-a4cda79b313d’ does not have authorization to perform action
‘Microsoft.Compute/virtualMachines/read’ over scope
‘/subscriptions/a2b28c85-1948-4263-90ca-bade2bac4df4/resourceGroups/rg-nsg-workload-20250109/providers/Microsoft.Compute/virtualMachines/workload-b-vm-2’ or the scope is invalid. If access was
recently granted, please refresh your credentials.

please advise.

Team, any chance to get a reply on that?

Hi,

Can you please share the lab link? Or did you use the Azure playground?

hi Raymond, i used Azure playground.

Hi,

I belived that the ps1 script in the Github doesn’t write for Azure playground so that is the reason you facing permission error. Azure Playground has limitations and only grants permissions for services which you can check it detail in Azure Sandbox Playground | KodeKloud