Microsoft.Authorization policyassignments template reference

Template format

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

{
  "name": "string",
  "type": "Microsoft.Authorization/policyassignments",
  "apiVersion": "2015-10-01-preview",
  "properties": {
    "displayName": "string",
    "policyDefinitionId": "string",
    "scope": "string"
  },
  "id": "string"
}

Property values

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

Microsoft.Authorization/policyassignments object

Name Type Required Value
name string Yes
type enum Yes Microsoft.Authorization/policyassignments
apiVersion enum Yes 2015-10-01-preview
properties object Yes Properties for the policy assignment. - PolicyAssignmentProperties object
id string No The ID of the policy assignment.

PolicyAssignmentProperties object

Name Type Required Value
displayName string No The display name of the policy assignment.
policyDefinitionId string No The ID of the policy definition.
scope string No The scope for the policy assignment.

Quickstart templates

The following quickstart templates deploy this resource type.