---
title: Policy Assignment
description: Datadog, the leading service for cloud-scale monitoring.
breadcrumbs: Docs > DDSQL Reference > Data Directory > Policy Assignment
---

# Policy Assignment

This table represents the Policy Assignment resource from Microsoft Azure.

```
azure.policy_assignment
```

## Fields

| Title                        | ID   | Type          | Data Type                                                                                                                 | Description |
| ---------------------------- | ---- | ------------- | ------------------------------------------------------------------------------------------------------------------------- | ----------- |
| _key                         | core | string        |
| definition_version           | core | string        | The version of the policy definition to use.                                                                              |
| description                  | core | string        | This message will be part of response in case of policy violation.                                                        |
| effective_definition_version | core | string        | The effective version of the policy definition in use. This is only present if requested via the $expand query parameter. |
| enforcement_mode             | core | string        | The policy assignment enforcement mode. Possible values are Default and DoNotEnforce.                                     |
| id                           | core | string        | The ID of the policy assignment.                                                                                          |
| identity                     | core | json          | The managed identity associated with the policy assignment.                                                               |
| latest_definition_version    | core | string        | The latest version of the policy definition available. This is only present if requested via the $expand query parameter. |
| location                     | core | string        | The location of the policy assignment. Only required when utilizing managed identity.                                     |
| name                         | core | string        | The name of the policy assignment.                                                                                        |
| not_scopes                   | core | array<string> | The policy's excluded scopes.                                                                                             |
| overrides                    | core | json          | The policy property value override.                                                                                       |
| parameters                   | core | hstore        | The parameter values for the assigned policy rule. The keys are the parameter names.                                      |
| policy_definition_id         | core | string        | The ID of the policy definition or policy set definition being assigned.                                                  |
| resource_group               | core | string        |
| resource_selectors           | core | json          | The resource selector list to filter policies by resource properties.                                                     |
| scope                        | core | string        | The scope for the policy assignment.                                                                                      |
| subscription_id              | core | string        |
| subscription_name            | core | string        |
| system_data                  | core | json          | The system metadata relating to this resource.                                                                            |
| tags                         | core | hstore_csv    |
| type                         | core | string        | The type of the policy assignment.                                                                                        |
