-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Terraform provider error with user managed identity #24172
Comments
Please note this is an user assigned identity. |
From the error message:
It seems somehow the provider is still using the deprecated ADAL token, sending request against the deprecated endpoint /identity/oauth2/token (instead of /identity/oauth2/v2.0/token). From my understanding, this shouldn't be the case for the latest provider. So would you mind double check you are using the latest version of the provider? |
I am using 3.0.0 of the terraform provider. |
@roshanp85 Thank you for opening this issue. Are you able to upgrade to the latest version of the provider (v3.84.0 as of this comment) to see if the issue resolves? As noted by @magodo the latest provider shouldn't be using the deprecated ADAL token. |
Thank you. That was the problem. I’m getting a different error, but that’s an expected one. I think this is working fine now. |
@roshanp85 Glad upgrading to latest was able to help. I am going to mark this issue as closed. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Is there an existing issue for this?
Community Note
I am trying to use user managed identities to initialize and plan for a resource group creation. The identity has contributor access on the given subscription, inside the azure tenant (public). But for some reason, I am getting the below error.
Terraform Version
1.6.5
AzureRM Provider Version
3.0.0
Affected Resource(s)/Data Source(s)
provider "azurerm"
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Terraform plan should be able to show.
Actual Behaviour
Error is mentioned above.
Steps to Reproduce
terraform plan
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: