question

Krisztian-8931 avatar image
0 Votes"
Krisztian-8931 asked ramr-msft edited

Code: AuthorizationFailed

Unit 4 of 7
Exercise - Back up an Azure virtual machine
Create a backup for Azure virtual machines

I am unable to run the following command in cloud shell to set up the environment:
RGROUP=$(az group create --name vmbackups --location westus2 --output tsv --query name)

Following error pop up:
ERROR: (AuthorizationFailed) The client 'live.com#...... does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/......./resourcegroups/vmbackups' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'live.com#l...... with object id '.......' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/...../resourcegroups/vmbackups' or the scope is invalid. If access was recently granted, please refresh your credentials.

When I do refresh, sign out or sign in do not helps. Anybody has any idea what to do?
Thank you

azure-virtual-machinesazure-machine-learning
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

ricardosolisvillegas-4678 avatar image
1 Vote"
ricardosolisvillegas-4678 answered

Hello @Krisztian-8931

Welcome to Microsoft Q&A community.

Have you tried to do this first?


199884-image.png




Cheers,

Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


image.png (108.6 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.


Hello Risolis,

Thank you for your quick respond. I do appreciate it!

0 Votes 0 ·

Hi @Krisztian-8931

Your welcome!

BR,

0 Votes 0 ·