Skip to content

Commit 3ce6be8

Browse files
committed
Add subscription to mode all note
1 parent c3bc452 commit 3ce6be8

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

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

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ a Resource Provider property.
7676
The **mode** determines which resource types will be evaluated for a policy. The supported modes
7777
are:
7878

79-
- `all`: evaluate resource groups and all resource types
79+
- `all`: evaluate resource groups, subscriptions, and all resource types
8080
- `indexed`: only evaluate resource types that support tags and location
8181

8282
For example, resource `Microsoft.Network/routeTables` supports tags and location and is evaluated in
83-
both modes. However, resource `Microsoft.Network/routeTables/routes` can't be tagged and isn't evaluated
84-
in `Indexed` mode.
83+
both modes. However, resource `Microsoft.Network/routeTables/routes` can't be tagged and isn't
84+
evaluated in `Indexed` mode.
8585

8686
We recommend that you set **mode** to `all` in most cases. All policy definitions created through
8787
the portal use the `all` mode. If you use PowerShell or Azure CLI, you can specify the **mode**
@@ -91,10 +91,12 @@ support backwards compatibility.
9191

9292
`indexed` should be used when creating policies that enforce tags or locations. While not required,
9393
it prevents resources that don't support tags and locations from showing up as non-compliant in the
94-
compliance results. The exception is **resource groups**. Policies that enforce location or tags on
95-
a resource group should set **mode** to `all` and specifically target the
96-
`Microsoft.Resources/subscriptions/resourceGroups` type. For an example, see [Enforce resource group
97-
tags](../samples/enforce-tag-rg.md). For a list of resources that support tags, see
94+
compliance results. The exception is **resource groups** and **subscriptions**. Policies that
95+
enforce location or tags on a resource group or subscription should set **mode** to `all` and
96+
specifically target the `Microsoft.Resources/subscriptions/resourceGroups` or
97+
`Microsoft.Resources/subscriptions` type. For an example, see
98+
[Enforce resource group tags](../samples/enforce-tag-rg.md). For a list of resources that support
99+
tags, see
98100
[Tag support for Azure resources](../../../azure-resource-manager/management/tag-support.md).
99101

100102
### <a name="resource-provider-modes" />Resource Provider modes (preview)

0 commit comments

Comments
 (0)