Share via

Code: AuthorizationFailed

Krisztian 46 Reputation points
2022-05-07T09:50:05.187+00:00

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 Machine Learning
Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


Answer accepted by question author

risolis 8,806 Reputation points
2022-05-07T10:07:44.643+00:00

Hello @Krisztian

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.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.