Hi I’m trying to use your CRC which is very helpful for cost management of cloud. For that I had created student azure subscription account. I’m trying to dry run resources of my account , but I’m facing error.
I had done with configuration as follows:
1: Done with creation of resource group.
2: Done with creation of app registration to get client secret id and client Id.
3: Set all environment variables as you given in your GITHUB repo. such as tenant id, subscription id, client secret id, client id, resource group.
4: I had given permission from IAM for read resources.
But I’m still facing error while running your CRC.
1:azure.core.exceptions.HttpResponseError: (AuthorizationFailed) The client with object id does not have authorization to perform action ‘Microsoft.Compute/virtualMachines/read’ over scope ‘/subscriptions’ or the scope is invalid. If access was recently granted, please refresh your credentials.Code: AuthorizationFailed
Message: The client with object id does not have authorization to perform action ‘Microsoft.Compute/virtualMachines/read’ over scope ‘/subscriptions/’ or the scope is invalid. If access was recently granted, please refresh your credentials.
[EVEN I HAD GIVEN PERMISSIONS FOR READ RESOURCES IN MY SUBSCRIPTION ACESS CONTROL IAM ]
2: raise ClientAuthenticationError(message=message)
azure.core.exceptions.ClientAuthenticationError: Authentication failed: AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app .
[EVEN I HAD SET ENVIRONMENT VARIABLE FOR CLIENT SECRET VALUE NOT FOR CLIENT SECRET ID]
I would be grateful if you could take a look at it and let me know if there is anything that I am missing or if there is anything that I can do to rectify the issue. If you could find some time to assist me with this matter. I am looking forward to your response and thank you in advance for your help.