-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
azurerm_service_principal_password sometimes fails to assign to a Service Principal #2084
Comments
I did some more testing, and it looks like this issue is with Azure, not with Terraform. I will update my main post with my findings for documentation purposes. |
Post updated. It looks like Azure may have had some issues somewhere in the backend? |
hey @robinkb Just to confirm - are you saying this was a transitory issue in Azure and is no longer an issue? Thanks! |
hi @robinkb Since we've not heard back here I'm going to close this issue for the moment; however if this is still an issue for you please let us know and we'll re-open this/take another look Thanks! |
I have this very issue. When I create the service principal and password I can see the principal in the Azure Portal but there is no password assigned. This so far doesn't seem transient in that I've never managed to get a password assigned via terraform. |
as an aside, there might also be a small bug where the "reply_urls.0" property within tfstate is not being set correctly. It's being set to the identifier_uris property even though it is set correctly within Azure. |
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. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 hashibot-feedback@hashicorp.com. Thanks! |
Community Note
Terraform Version
Terraform v0.11.8
Affected Resource(s)
Terraform Configuration Files
Debug Output
Response from the Azure API upon attempting to login:
Get Token request returned http error: 401 and server response:
Expected Behavior
I can authenticate with the service principal credentials.
Actual Behavior
I cannot authenticate with the service principal credentials.
Steps to Reproduce
terraform apply
az login --service-principal --tenant $(terraform output tenant_id) --username $(terraform output username) --password $(terraform output password)
Important Factoids
The first time I encountered this problem, the issue persisted. I cannot reproduce the issue reliably. One time, I encountered the same problem while logging in, but the problem resolved itself by the time I tried to log in a second time.
References
N/A
The text was updated successfully, but these errors were encountered: