azurerm_subscription_policy_remediation attempts deletion after completion and fails #16456
Closed
1 task done
Labels
Milestone
Is there an existing issue for this?
Community Note
Terraform Version
1.1.8
AzureRM Provider Version
3.2.0
Affected Resource(s)/Data Source(s)
azurerm_subscription_policy_remediation
Terraform Configuration Files
Debug Output/Panic Output
Expected Behaviour
Changes to a policy assignment that would cause a delete/create should complete without an error. If there is an associated policy remediation that has already run, it should not attempt to delete it because a policy remediation cannot be deleted once completed.
Actual Behaviour
When changing a policy assignment that causes a delete/create, if there is a policy remediation that has already executed for that policy, it fails trying to delete and prevents the new policy from being created.
Steps to Reproduce
No response
Important Factoids
No response
References
No response
The text was updated successfully, but these errors were encountered: