The resource ID of the policy assignment that should be remediated.
string
policyDefinitionReferenceId
The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
string
ARM template resource definition
The remediations resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.PolicyInsights/remediations resource, add the following JSON to your template.
The resource ID of the policy assignment that should be remediated.
string
policyDefinitionReferenceId
The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.
string
Terraform (AzAPI provider) resource definition
The remediations resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.PolicyInsights/remediations resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.PolicyInsights/remediations@2018-07-01-preview"
name = "string"
parent_id = "string"
body = jsonencode({
properties = {
deploymentStatus = {
failedDeployments = int
successfulDeployments = int
totalDeployments = int
}
filters = {
locations = [
"string"
]
}
policyAssignmentId = "string"
policyDefinitionReferenceId = "string"
}
})
}
Property values
Microsoft.PolicyInsights/remediations
Name
Description
Value
name
The resource name
string (required)
parent_id
The ID of the resource to apply this extension resource to.
The resource ID of the policy assignment that should be remediated.
string
policyDefinitionReferenceId
The policy definition reference ID of the individual definition that should be remediated. Required when the policy assignment being remediated assigns a policy set definition.