-
Notifications
You must be signed in to change notification settings - Fork 301
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
Failure to retreive obecjts (users and groups) with MSI authentication #347
Comments
Hi @gitmaximd, thanks for raising this issue! When using MSI authentication, you do also need to specify the tenant ID, either using the Our documentation could be clearer about this, so I'm going to mark this issue as a documentation bug so that we can address this and make it clearer how you should configure the provider. We can also improve our validation so the provider doesn't attempt to proceed with an incomplete configuration. |
We have added clarification to our documentation for authentication using a managed identity, that a tenant ID is always required. I believe this will resolve this issue, and so I'm going to close it for now. Please comment further if you continue to see this error after adding a tenant ID to your configuration and we'll be happy to reopen. Thanks! |
This has been released in version 1.1.0 of the provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. As an example: provider "azuread" {
version = "~> 1.1.0"
}
# ... other configuration ... |
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 👉 [email protected]. Thanks! |
Community Note
Terraform (and AzureAD Provider) Version
Terraform v0.12.29
Affected Resource(s)
azuread_group
azuread_user
Terraform Configuration Files
Debug Output
https://gist.githubusercontent.com/gitmaximd/dff9087b41dd82b0c6c60c18f2880481/raw/25adc49c57825023efe1e7007c8a47292d5c4260/gistfile1.txt
Panic Output
Expected Behavior
Successfully retrieve user or group object information
Actual Behavior
While using MSI for authentication the data resource fails to retrieve the information. Same code works with SP authentication.
Steps to Reproduce
terraform apply
Important Factoids
I noticed that the request URL is incorrectly constructed and is missing Tenant domain name. For example:
https://graph.windows.net//groups?%24filter=displayName+eq+%27AKSAdmins%27&api-version=1.6
It should be like this one: https://graph.windows.net/domain.com/groups?%24filter=displayName+eq+%27AKSAdmins%27&api-version=1.6
References
The text was updated successfully, but these errors were encountered: