@@ -76,12 +76,12 @@ a Resource Provider property.
76
76
The ** mode** determines which resource types will be evaluated for a policy. The supported modes
77
77
are:
78
78
79
- - ` all ` : evaluate resource groups and all resource types
79
+ - ` all ` : evaluate resource groups, subscriptions, and all resource types
80
80
- ` indexed ` : only evaluate resource types that support tags and location
81
81
82
82
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.
85
85
86
86
We recommend that you set ** mode** to ` all ` in most cases. All policy definitions created through
87
87
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.
91
91
92
92
` indexed ` should be used when creating policies that enforce tags or locations. While not required,
93
93
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
98
100
[ Tag support for Azure resources] ( ../../../azure-resource-manager/management/tag-support.md ) .
99
101
100
102
### <a name =" resource-provider-modes " />Resource Provider modes (preview)
0 commit comments