When i am running python script to manage vm's on azure environment its getting failed due to AuthorizationFailed message. Following exception are getting printed along with the error message.
CloudError("The client 'bdafca09-d426-4924-b63c-dff61c034187' with object id 'bdafca09-d426-4924-b63c-dff61c034187' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/49ec57ce-8a6f-4cdf-95bf-8163b231edf6/resourcegroups/azure-sample-group-virtual-machines' or the scope is invalid. If access was recently granted, please refresh your credentials.")