Microsoft.Authorization policyExemptions 2020-07-01-preview

The policyExemptions resource type is an extension resource, which means you can apply it to another resource.

Use the scope property on this resource to set the scope for this resource.

Valid deployment scopes for the policyExemptions resource are:

  • Resource Group

Template format

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

resource symbolicname 'Microsoft.Authorization/policyExemptions@2020-07-01-preview' = {
  name: 'string'
  scope: resourceSymbolicName
  properties: {
    description: 'string'
    displayName: 'string'
    exemptionCategory: 'string'
    expiresOn: 'string'
    metadata: any()
    policyAssignmentId: 'string'
    policyDefinitionReferenceIds: [
      'string'
    ]
  }
}

Property values

policyExemptions

Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
'Microsoft.Authorization/policyExemptions'
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
'2020-07-01-preview'
name The resource name string (required)
scope Use when creating an extension resource at a scope that is different than the deployment scope. Target resource

For Bicep, set this property to the symbolic name of the resource to apply the extension resource.

For JSON, set the value to the full name of the resource to apply the extension resource to.
properties The policy exemption properties. PolicyExemptionProperties (required)

PolicyExemptionProperties

Name Description Value
description The description of the policy exemption. string
displayName The display name of the policy exemption. string
exemptionCategory The policy exemption category. Possible values are Waiver and Mitigated. 'Mitigated'
'Waiver'
expiresOn The expiration date and time (in UTC ISO 8601 format yyyy-MM-ddTHH:mm:ssZ) of the policy exemption. string
metadata Any object For Bicep, you can use the any() function.
policyAssignmentId The ID of the policy assignment that is being exempted. string (required)
policyDefinitionReferenceIds The policy definition reference ID list when the associated policy assignment is an assignment of a policy set definition. string[]