Skip to content

Commit b24558f

Browse files
Incorporate Jin's initial feedback
1 parent bf4f085 commit b24558f

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,32 @@
11
---
22
title: Azure Policy applicability logic
33
description: Describes the rules Azure Policy uses to determine whether the policy is applied to its assigned resources.
4-
ms.date: 05/20/2022
4+
ms.date: 05/23/2022
55
ms.topic: conceptual
66
ms.author: timwarner
77
author: timwarner-msft
88
---
99
# Azure Policy applicability logic
1010

1111
Azure Policy effects are applied based on the evaluation result of the
12-
****If**** condition(s) defined in the definition JavaScript Object Notation (JSON)
12+
**If** condition(s) defined in the definition JavaScript Object Notation (JSON)
1313
file.
1414

15-
## Applicability logic for Append/Mod**If**y/Audit/Deny/DataPlane effects
15+
## Applicability logic for Append/Modify/Audit/Deny/DataPlane effects
1616

17-
Azure Policy evaluates only type and name conditions in the **If** and treats other conditions as true (false when negated). **If** the final evaluation result is true, the policy is applicable. Otherwise, it's not applicable.
17+
Azure Policy evaluates only type, name, and kind conditions in the **If** expression and treats other conditions as true (false when negated). **If** the final evaluation result is true, the policy is applicable. Otherwise, it's not applicable.
1818

1919
Following are special cases to the previously described applicability logic:
2020

21-
- Any invalid aliases in the ****If**** conditions
21+
- Any invalid aliases in the **If** conditions
2222
- The policy is not applicable
23-
- When the **If** conditions consist of only type conditions
23+
- When the **If** conditions consist of only kind conditions
2424
- The policy is applicable to all resources.
2525
- When the **If** conditions consist of only name conditions
2626
- The policy is applicable to all resources.
27-
- When the **If** conditions consist of only type and name conditions
28-
- It depends on which field the first condition in the **If** refers to. It applies the applicability logic with conditions with that field only. E.g. when **type** field appears in the first condition of the **If**, only type conditions are considered when deciding applicability. When **name** field appears in the first condition of the **If**, only name conditions are considered when deciding applicability.
29-
- When any conditions (including deployment parameters) include a location condition
27+
- When the **If** conditions consist of only type and kind conditions
28+
- It depends on which field the first condition in the **If** refers to. It applies the applicability logic with conditions with that field only. For example, when a **type** field appears in the first condition of the **If**, only type conditions are considered when deciding applicability. When a **name** field appears in the first condition of the **If**, only type conditions are considered when deciding applicability.
29+
- When any conditions (including deployment parameters) include a **location** condition
3030
- Will not be applicable to subscriptions
3131

3232
## Applicability logic for AuditIfNotExists and DeployIfNotExists policy effects
@@ -37,4 +37,4 @@ The applicability is based on the **If** conditions. When the **If** evaluates t
3737

3838
- Learn how to [Get compliance data of Azure resources](../how-to/get-compliance-data.md).
3939
- Learn how to [remediate non-compliant resources](../how-to/remediate-resources.md).
40-
- Review the [update in policy compliance for resource type policies](https://azure.microsoft.com/en-us/updates/general-availability-update-in-policy-compliance-for-resource-type-policies/).
40+
- Review the [update in policy compliance for resource type policies](https://azure.microsoft.com/updates/general-availability-update-in-policy-compliance-for-resource-type-policies/).

0 commit comments

Comments
 (0)