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
