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
When using the service principal without sufficient permissions, a resource should fail to be created, and there should be no record in the state.
Actual Behavior
Member (hybrid compute machine identity) fails to be added to an Azure security group but there is a record created in the state file. After running another tf plan, terraform fails. It even fails to destroy the group membership because it cannot fetch the membership of an object from the group. User cannot recover from this error unless he has access to perform terraform state rm operation.
Error:
module.hci-vm["gha-runner-001"].azuread_group_member.msi_rg: Refreshing state... [id=160eb7c9-****-****-****-*********/member/62e85ce2-35b3-46c3-8894-ae0185b40494]
Error: Retrieving member "62e85ce2-35b3-46c3-8894-ae0185b40494"for group with object ID: "160eb7c9-****-****-****-*********"
Steps to Reproduce
Use a service principal without group ownership and try to assign that group a member
terraform apply
Important Factoids
References
#0000
The text was updated successfully, but these errors were encountered:
Community Note
Terraform (and AzureAD Provider) Version
Terraform 1.9.8
registry.terraform.io/hashicorp/azuread v3.0.2
Affected Resource(s)
azuread_group_member
Terraform Configuration Files
Debug Output
State file record
This record should not exists as the membership has not been created
Panic Output
Expected Behavior
When using the service principal without sufficient permissions, a resource should fail to be created, and there should be no record in the state.
Actual Behavior
Member (hybrid compute machine identity) fails to be added to an Azure security group but there is a record created in the state file. After running another tf plan, terraform fails. It even fails to destroy the group membership because it cannot fetch the membership of an object from the group. User cannot recover from this error unless he has access to perform
terraform state rm
operation.Error:
Steps to Reproduce
Use a service principal without group ownership and try to assign that group a member
terraform apply
Important Factoids
References
The text was updated successfully, but these errors were encountered: