Skip to main content

policy_restrictions

Creates, updates, deletes, gets or lists a policy_restrictions resource.

Overview

Namepolicy_restrictions
TypeResource
Idazure.policy_insights.policy_restrictions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
contentEvaluationResultobjectEvaluation results for the provided partial resource content.
fieldRestrictionsarrayThe restrictions that will be placed on various fields in the resource by policy.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
check_at_resource_group_scopeselectresource_group_name, subscription_idChecks what restrictions Azure Policy will place on a resource within a resource group. Use this when the resource group the resource will be created in is already known.
check_at_subscription_scopeselectsubscription_idChecks what restrictions Azure Policy will place on a resource within a subscription.
check_at_management_group_scopeselectmanagement_group_idChecks what restrictions Azure Policy will place on resources within a management group.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
management_group_idstringManagement group ID. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Checks what restrictions Azure Policy will place on a resource within a resource group. Use this when the resource group the resource will be created in is already known.

SELECT
contentEvaluationResult,
fieldRestrictions
FROM azure.policy_insights.policy_restrictions
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;