You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data.azuread_group.this: Reading...
data.azuread_group.this: Read complete after 1s [id=/groups/UUID]
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: expected "member_object_id" to be a valid UUID, got /groups/UUID
│
│ with azuread_group_member.this,
│ on main.tf line 16, in resource "azuread_group_member" "this":
│ 16: member_object_id = data.azuread_group.this.id
│
╵
Expected Behavior
worked before version 3
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
data.azuread_group.this.object_id can be a quick workaround , a number of resources return id in resource_type/UUID now, can either be a bug or expected behavior in 3.*.
Hi @kaplik, @juicybaba is correct, object_id is the correct attribute to use here. You are correct, this is missing from the upgrade guide - sorry for that omission, I’ll look to add this.
As a guide, where a property ends with *_object_id, you should use the object_id attribute of the corresponding resource. This was a bit inconsistent in 2.x versions but we’ve tried to tidy this up in 3.0
Community Note
Terraform (and AzureAD Provider) Version
Affected Resource(s)
azuread_group_member
Terraform Configuration Files
Debug Output
Panic Output
Expected Behavior
worked before version 3
Actual Behavior
Steps to Reproduce
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: