Data Source: azurerm_policy_assignment

Use this data source to access information about an existing Policy Assignment.

Example Usage

data "azurerm_policy_assignment" "example" {
  name     = "existing"
  scope_id = data.azurerm_resource_group.example.id
}

output "id" {
  value = data.azurerm_policy_assignment.example.id
}

Arguments Reference

The following arguments are supported:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


A identity block exports the following:


A non_compliance_message block exports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions: