---
type: resource-type
title: PolicyAssignment
description: azure resource type Microsoft.Authorization/policyAssignments
name: PolicyAssignment
lexicon: azure
resource_type: Microsoft.Authorization/policyAssignments
---
`Microsoft.Authorization/policyAssignments`, a resource type of the azure lexicon.

## Properties

- `name` (`string`, required): The resource name
- `properties` (`PolicyAssignment_PolicyAssignmentProperties`, required): Properties for the policy assignment.
- `identity` (`PolicyAssignment_Identity`, optional): The managed identity associated with the policy assignment.
- `location` (`string`, optional): The location of the policy assignment. Only required when utilizing managed identity.

## Attributes

- `id`

## Governed by

- [AZR013](/rules/AZR013.md): Resource missing location — most Azure resources require a location property
- [AZR031](/rules/AZR031.md): Policy assignment has enforcementMode DoNotEnforce — the guardrail is disabled
- [AZR032](/rules/AZR032.md): Custom policy definition assigned nowhere — a defined but unassigned guardrail enforces nothing
