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
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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