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
Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for issue followers and do not help prioritize the request
If you are interested in working on this issue or have submitted a pull request, please leave a comment and review the contribution guide to help.
resource"azuread_privileged_access_group_eligibility_schedule""main" {
for_each={
forassignmentinlocal.privileged_group_assignments:"${assignment.group_name}-${assignment.privileged_group}"=> assignment
}
# Group being assigned eligibilitygroup_id=azuread_group.main["${each.value.group_name}-${each.value.subscription_id}"].object_id# Principal ID resolved from pre-existing privileged groupprincipal_id=data.azuread_group.privileged[each.value.privileged_group].object_idassignment_type="member"expiration_date=local.end_datejustification="Set by REDACTED repository."
}
Debug Output/Panic Output
Terraform will perform the following actions:
# azuread_privileged_access_group_eligibility_schedule.main["REDACTED"] will be updated in-place~ resource "azuread_privileged_access_group_eligibility_schedule""main" {
~ expiration_date = "2025-06-24T07:46:46Z" -> (known after apply)
id = "REDACTED"# (10 unchanged attributes hidden)
}
Plan: 0 to add, 4 to change, 0 to destroy.
---
│ Error: creating updated eligibility schedule request: unexpected status 400 (400 Bad Request) with error: RoleAssignmentExists: The Role assignment already exists.
│
│ with azuread_privileged_access_group_eligibility_schedule.main["REDACTED"],
│ on pim.tf line 31, in resource "azuread_privileged_access_group_eligibility_schedule"
Expected Behaviour
Expected it to update my end date for assignment
Actual Behaviour
It didn't and said an assignment already exists.
Steps to Reproduce
terraform apply this config.
Important Factoids
Deleting the assignment entirely and recreating it seems to work properly, but I am not gonna be doing that for 100+ AD groups.
References
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Community Note
Terraform Version
1.9.8
AzureRM Provider Version
4.x (latest)
Affected Resource(s)/Data Source(s)
azuread_privileged_access_group_eligibility_schedule
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Expected it to update my end date for assignment
Actual Behaviour
It didn't and said an assignment already exists.
Steps to Reproduce
terraform apply this config.
Important Factoids
Deleting the assignment entirely and recreating it seems to work properly, but I am not gonna be doing that for 100+ AD groups.
References
No response
The text was updated successfully, but these errors were encountered: