Microsoft.PolicyInsights remediations

Template format

To create a Microsoft.PolicyInsights/remediations resource, add the following JSON to the resources section of your template.

  "name": "string",
  "type": "Microsoft.PolicyInsights/remediations",
  "apiVersion": "2019-07-01",
  "properties": {
    "policyAssignmentId": "string",
    "policyDefinitionReferenceId": "string",
    "resourceDiscoveryMode": "string",
    "filters": {
      "locations": [

Property values

The following tables describe the values you need to set in the schema.

Microsoft.PolicyInsights/remediations object


In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The name of the remediation.
type enum Yes For JSON - Microsoft.PolicyInsights/remediations
apiVersion enum Yes For JSON - 2019-07-01
properties object Yes Properties for the remediation. - RemediationProperties object

RemediationProperties object

Name Type Required Value
policyAssignmentId string No The resource ID of the policy assignment that should be remediated.
policyDefinitionReferenceId string No 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.
resourceDiscoveryMode enum No The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified. - ExistingNonCompliant or ReEvaluateCompliance
filters object No The filters that will be applied to determine which resources to remediate. - RemediationFilters object

RemediationFilters object

Name Type Required Value
locations array No The resource locations that will be remediated. - string