-
Notifications
You must be signed in to change notification settings - Fork 302
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
Unable to create basic groups #1580
Comments
I am having this issue as well. Simple AD group. Verified no existing groups with the same name. Terraform stack worked fine with AzureAD provider 2.53.1 But am now having this exact issue with 3.0.2 I removed the owners parameter from the groups in terraform but still get the same issue. I'm just rolling back to 2.53.1 |
Thanks for reporting, it looks like this is a regression in v3.x. I've opened #1593 to fix it. |
In addition to analysis of @pgerhard, I noticed that issue also occurs when setting the the
But if you add an additional owner to the current user, the creation succeeds.
|
Community Note
Terraform (and AzureAD Provider) Version
Affected Resource(s)
azuread_group
Terraform Configuration Files
Debug Output
Debug Output
Expected Behavior
I want to create a group in Entra ID using the Terraform provider. However, this fails with the error
Actual Behavior
After running
terraform apply
Terraform returned an error.Steps to Reproduce
main.tf
terraform init
terraform apply
Important Factoids
When looking at the debug logs I noticed that Terraform automatically includes the owners of the group in the request (defaults to the user used to log into Azure). So I re-created the providers request to the graph API in cURL:
and this also fails with the same error as seen in the Terraform debug output. However after the removal of the owners attribute the group is successfully created, including the automatic assignment of the user accessing the API as the owner. Here is the working API request:
Furthermore the request also succeeds when I add an additional owner (that is a user that is not myself). Example request
This leads me to believe that the Microsoft API expects that
This would also explain the message
Request contains a property with duplicate values
The text was updated successfully, but these errors were encountered: