-
Notifications
You must be signed in to change notification settings - Fork 289
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
AzureAD v3 - data "azuread_group" Error: Could not retrieve group members for group with object ID #1498
Comments
Yep, it's broken! Getting the same thing |
I'm going to jump on with what I assume is a related issue - I get a parsing error for data.azuread_service_principal
I've rolled back to 2.53.1 and the error goes away. |
Same here, pinning to 2.53.1 for now! |
Same issue, needs to be hotifxed!! |
@ti-ro Thanks for the report, we'll get this hotfixed. |
@GraemeMeyerGT That is related, but not a bug. Please use the resource "azurerm_key_vault_access_policy" "example-principal" {
key_vault_id = azurerm_key_vault.example.id
tenant_id = data.azurerm_client_config.current.tenant_id
object_id = data.azuread_service_principal.example.object_id # <-- `object_id`, not `id`
key_permissions = [
"Get", "List", "Encrypt", "Decrypt"
]
} |
Thanks @digital-raver1, that's the same error and will be fixed shortly |
This morning, we encountered the same error while attempting to upgrade to the AzureAD v3 provider. To address the issue and restore functionality, we rolled back to the previous version. **Could you please implement the necessary fix for the new provider version? Error: Could not retrieve group members for group with object ID: "/groups/33a44695-da06-5869-b379-dc5214b02cdc" |
@simozyadi Thanks for the report, please be mindful of posting +1 comments as they pollute the issue thread. Per my above comments, this is being worked on and a fix will be out shortly. |
You may not classify it as a bug, but it is an undocumented breaking change |
Community Note
Terraform (and AzureAD Provider) Version
Terraform v1.9.6
on windows_amd64
Affected Resource(s)
azuread_group
Terraform Configuration Files
Debug Output
Panic Output
╷ │ Error: Could not retrieve group members for group with object ID: "/groups/xxx-xxx-xxx-xxx" │ │ with module.EXAMPLE.data.azuread_group.aad_group, │ on ..\..\..\..\modules\azure\EXAMPLE\iam.tf line 5, in data "azuread_group" "aad_group": │ 5: data "azuread_group" "aad_group" { │ │ unexpected status 400 (400 Bad Request) with error: Request_BadRequest: Unexpected segment DynamicPathSegment. Expected property/$value.
Expected Behavior
Retrieve the Group information from the data source
Actual Behavior
throws an Error
Steps to Reproduce
Create a Data Resource for azuread_group, input the display name of an existing Entra Group.
terraform apply
Important Factoids
None. Worked prior 3.0.0
References
The text was updated successfully, but these errors were encountered: