Reputation: 43
I am using Azure SDK for python to create resource using python script.After giving the required credentials like CLIENT_ID,TENANT_ID,CLIENT_SECRET,SUBSCRIPTION_ID..It throws a error message like
"msrestazure.azure_exceptions.CloudError: Azure Error: AuthorizationFailed Message: The client 'CLIENT_ID' with object id 'OBJECT_ID' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope ''."
(I am using azure in free trial type of subscription)
Upvotes: 0
Views: 1853
Reputation: 1
There needs to be a service principal(SP) associated with the application. Also, to assign a role to SP you need to be an 'owner' or the Azure portal does not show you that option if you are a 'contributor' in UI.
Upvotes: 0