Skip to content

Commit 3feec5b

Browse files
authored
Merge pull request #111056 from DCtheGeek/dmc-policy-assignmentscopes
Add notScopes to assignments
2 parents fc7bb83 + 5b84612 commit 3feec5b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

articles/governance/policy/concepts/assignment-structure.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Details of the policy assignment structure
33
description: Describes the policy assignment definition used by Azure Policy to relate policy definitions and parameters to resources for evaluation.
4-
ms.date: 09/23/2019
4+
ms.date: 04/15/2020
55
ms.topic: conceptual
66
---
77
# Azure Policy assignment structure
@@ -17,6 +17,7 @@ You use JSON to create a policy assignment. The policy assignment contains eleme
1717
- description
1818
- metadata
1919
- enforcement mode
20+
- excluded scopes
2021
- policy definition
2122
- parameters
2223

@@ -31,6 +32,7 @@ For example, the following JSON shows a policy assignment in _DoNotEnforce_ mode
3132
"assignedBy": "Cloud Center of Excellence"
3233
},
3334
"enforcementMode": "DoNotEnforce",
35+
"notScopes": [],
3436
"policyDefinitionId": "/subscriptions/{mySubscriptionID}/providers/Microsoft.Authorization/policyDefinitions/ResourceNaming",
3537
"parameters": {
3638
"prefix": {
@@ -72,6 +74,14 @@ If **enforcementMode** isn't specified in a policy or initiative definition, the
7274
used. [Remediation tasks](../how-to/remediate-resources.md) can be started for [deployIfNotExists](./effects.md#deployifnotexists)
7375
policies, even when **enforcementMode** is set to _DoNotEnforce_.
7476

77+
## Excluded scopes
78+
79+
The **scope** of the assignment includes all child resource containers and child resources. If a
80+
child resource container or child resource shouldn't have the definition applied, each can be
81+
excluded from evaluation by setting **notScopes**. This property is an array to enable excluding one
82+
or more resource containers or resources from evaluation. **notScopes** can be added or updated
83+
after creation of the initial assignment.
84+
7585
## Policy definition ID
7686

7787
This field must be the full path name of either a policy definition or an initiative definition.

0 commit comments

Comments
 (0)