Microsoft.PolicyInsights remediations 2019-07-01

The remediations resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

To create a Microsoft.PolicyInsights/remediations resource, add the following Bicep or JSON to your template.

resource symbolicname 'Microsoft.PolicyInsights/remediations@2019-07-01' = {
  name: 'string'
  properties: {
    filters: {
      locations: [ 'string' ]
    policyAssignmentId: 'string'
    policyDefinitionReferenceId: 'string'
    resourceDiscoveryMode: 'string'

Property values


Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
name The resource name string (required)
properties The remediation properties. RemediationProperties


Name Description Value
filters The filters that will be applied to determine which resources to remediate. RemediationFilters
policyAssignmentId 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
resourceDiscoveryMode The way resources to remediate are discovered. Defaults to ExistingNonCompliant if not specified. 'ExistingNonCompliant'


Name Description Value
locations The resource locations that will be remediated. string[]