Skip to content
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

azurerm_resource_policy_exemption/azurerm_resource_group_policy_exemption/azurerm_subscription_policy_exemption - Mark policy_assignment_id as ForceNew #19674

Merged
merged 1 commit into from
Dec 15, 2022

Conversation

neil-yechenwei
Copy link
Contributor

fixes #19667

Per the error message mentioned in the original thread, it indicates API doesn't support to update policy_assignment_id. So the policy_assignment_id of azurerm_resource_policy_exemption, azurerm_resource_group_policy_exemption, azurerm_subscription_policy_exemption has to be added "ForceNew" attribute.

--- PASS: TestAccAzureRMResourceGroupPolicyExemption_basic (446.65s)
--- PASS: TestAccAzureRMResourceGroupPolicyExemption_complete (448.80s)
--- PASS: TestAccAzureRMResourceGroupPolicyExemption_update (685.40s)
--- PASS: TestAccAzureRMSubscriptionPolicyExemption_basic (363.55s)
--- PASS: TestAccAzureRMSubscriptionPolicyExemption_complete (368.06s)
--- PASS: TestAccAzureRMSubscriptionPolicyExemption_update (586.30s)
--- PASS: TestAccAzureRMResourcePolicyExemption_basic (496.47s)
--- PASS: TestAccAzureRMResourcePolicyExemption_complete (497.52s)
--- PASS: TestAccAzureRMResourcePolicyExemption_update (738.02s)

Copy link
Collaborator

@katbyte katbyte left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🍄

@katbyte katbyte merged commit e136ac5 into hashicorp:main Dec 15, 2022
katbyte added a commit that referenced this pull request Dec 15, 2022
favoretti pushed a commit to favoretti/terraform-provider-azurerm that referenced this pull request Jan 12, 2023
…ption/azurerm_subscription_policy_exemption` - Mark `policy_assignment_id` as ForceNew (hashicorp#19674)

fixes hashicorp#19667
favoretti pushed a commit to favoretti/terraform-provider-azurerm that referenced this pull request Jan 12, 2023
@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 15, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Policy Exemption should be recreated instead of updated when assignment changes
2 participants