-
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
Could not create azuread_group resource with service principal and user set as owners #548
Comments
Hi @neocycf, thanks for reporting this error. That's an interesting one, it looks like some implementation detail is being erroneously leaked in the error response. I've tried with your config but haven't been able to reproduce with 2.0.1 or 2.1.0. Would you be able to provide an HTTP trace showing the POST requests to create the group and set its owners? Thanks! |
Hi @manicminer,
|
@neocycf Thanks, is the service principal the same one you are using to authenticate the provider? |
@manicminer Yes. |
Thanks @neocycf, I think I found a bug that could account for this. Will PR a fix shortly. |
This functionality has been released in v2.2.0 of the Terraform Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
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. |
Hi,
We're upgrading from v1.5.1 to v2.0.1 and encountered errors when creating new azuread_group resource.
The code below worked in v1.5.1.
Tried:
Debug output:
2021-09-02T10:21:20.6799841Z 2021/09/02 10:21:20 [ERROR] eval: *terraform.EvalSequence, err: Creating group "group_xxx": GroupsClient.BaseClient.Post(): unexpected status 400 with OData error: Request_BadRequest: Object '[ResourceType=ServicePrincipal,Id=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx,ChangedProperties=[],NonDefaultProperties=[INTERNAL_EnableF14M1SchemaEnumTypes,INTERNAL_SingleResourceQuery,INTERNAL_CombinedServicePrincipal]]' referenced from '[ResourceType=Group,Id=11111111-1111-1111-1111-111111111111,ChangedProperties=[Description,DisplayName,IsAssignableToRole,MailEnabled,MailNickname,SecurityEnabled,CreatedByAppId],NonDefaultProperties=[INTERNAL_EnableF14M1SchemaEnumTypes]]' can only be present once as an add/remove change.
The text was updated successfully, but these errors were encountered: