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
Group should be imported into Terraform state correctly when using the object ID as specified in the documentation.
Actual Behavior
Planning failed. Terraform encountered an error while generating this plan.
╷
│ Error: parsing "47e4bdbc-a9eb-46e0-9a79-51e424c766dc": parsing the Group ID: the number of segments didn't match
│
│ Expected a Group ID that matched (containing 2 segments):
│
│ > /groups/groupId
│
│ However this value was provided (which was parsed into 0 segments):
│
│ > 47e4bdbc-a9eb-46e0-9a79-51e424c766dc
│
│ The following Segments are expected:
│
│ * Segment 0 - this should be the literal value "groups"
│ * Segment 1 - this should be the user specified value for this groupId [for example "groupId"]
│
│ The following Segments were parsed:
│
│ * Segment 0 - not found
│ * Segment 1 - not found
│
│
│
╵
Steps to Reproduce
Create an Entra ID group.
Update the above configuration with the Object ID for the new group.
The documentation on registry is outdated, because the docs are up to date in GitHub. The issue got fixed in #1519 but sadly the last release 3.0.2 does not include these fixes and the terraform registry relies on the last release (3.0.2 as of now) instead of main.
The issue will automatically be fixed with the new release. 🙂
Community Note
Terraform (and AzureAD Provider) Version
Affected Resource(s)
azuread_group
Terraform Configuration Files
Debug Output
https://gist.github.com/HamsterExAstris/5bc872c530e1be997ead268377b1c0f8
Panic Output
n/a
Expected Behavior
Group should be imported into Terraform state correctly when using the object ID as specified in the documentation.
Actual Behavior
Steps to Reproduce
terraform plan
Important Factoids
n/a
References
azuread_group
resourceThe text was updated successfully, but these errors were encountered: