Skip to content

Commit

Permalink
`azurerm_resource_policy_exemption/azurerm_resource_group_policy_exem…
Browse files Browse the repository at this point in the history
…ption/azurerm_subscription_policy_exemption` - Mark `policy_assignment_id` as ForceNew (#19674)

fixes #19667
  • Loading branch information
neil-yechenwei authored Dec 15, 2022
1 parent 4a65560 commit e136ac5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions internal/services/policy/exemption_resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func resourceArmResourcePolicyExemption() *pluginsdk.Resource {
"policy_assignment_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validate.PolicyAssignmentID,
},

Expand Down
1 change: 1 addition & 0 deletions internal/services/policy/exemption_resource_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func resourceArmResourceGroupPolicyExemption() *pluginsdk.Resource {
"policy_assignment_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validate.PolicyAssignmentID,
},

Expand Down
1 change: 1 addition & 0 deletions internal/services/policy/exemption_subscription.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ func resourceArmSubscriptionPolicyExemption() *pluginsdk.Resource {
"policy_assignment_id": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validate.PolicyAssignmentID,
},

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ The following arguments are supported:

* `exemption_category` - (Required) The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.

* `policy_assignment_id` - (Required) The ID of the Policy Assignment to be exempted at the specified Scope.
* `policy_assignment_id` - (Required) The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.

* `description` - (Optional) A description to use for this Policy Exemption.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/resource_policy_exemption.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ The following arguments are supported:

* `exemption_category` - (Required) The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.

* `policy_assignment_id` - (Required) The ID of the Policy Assignment to be exempted at the specified Scope.
* `policy_assignment_id` - (Required) The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.

* `description` - (Optional) A description to use for this Policy Exemption.

Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/subscription_policy_exemption.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ The following arguments are supported:

* `exemption_category` - (Required) The category of this policy exemption. Possible values are `Waiver` and `Mitigated`.

* `policy_assignment_id` - (Required) The ID of the Policy Assignment to be exempted at the specified Scope.
* `policy_assignment_id` - (Required) The ID of the Policy Assignment to be exempted at the specified Scope. Changing this forces a new resource to be created.

* `description` - (Optional) A description to use for this Policy Exemption.

Expand Down

0 comments on commit e136ac5

Please sign in to comment.