Skip to content

Commit ccf0434

Browse files
committed
Addressing comments
1 parent 39f79d8 commit ccf0434

File tree

2 files changed

+13
-12
lines changed

2 files changed

+13
-12
lines changed

articles/governance/policy/concepts/effects.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -464,16 +464,17 @@ assignment.
464464

465465
`Microsoft.Authorization/policyAssignments`, `Microsoft.Authorization/denyAssignments`, `Microsoft.Blueprint/blueprintAssignments`, `Microsoft.Resources/deploymentStacks`, and `Microsoft.Authorization/locks` are all exempt from DenyAction enforcement to prevent lockout scenarios.
466466

467-
Under preview, assignments with `denyAction` effect will show a `Not Started` compliance state.
467+
> [!NOTE]
468+
> Under preview, assignments with `denyAction` effect will show a `Not Started` compliance state.
468469
469-
**Subscription deletion**
470+
#### Subscription deletion
470471
Policy won't block removal of resources that happens during a subscription deletion.
471472

472-
**Resource group deletion**
473+
#### Resource group deletion
473474
Policy will evaluate resources that support location and tags against `DenyAction` policies during a resource group deletion. Only policies that have the `cascadeBehaviors` set to `deny` in the policy rule will block a resource group deletion. Policy won't block removal of resources that don't support location and tags nor any policy with `mode:all`.
474475

475-
**Cascade Deletion**
476-
Cascade Deletion occurs when deleting of a parent resource is implicitly deletes all its child resources. Policy won't block removal of child resources when a delete action targets the parent resources. For example, `Microsoft.Insights/diagnosticSettings` is a child resource of `Microsoft.Storage/storageaccounts`. If a `denyAction` policy targets `Microsoft.Insights/diagnosticSettings`, a delete call to the diagnostic setting (child) will fail, but a delete to the storage account (parent) will implicitly delete the diagnostic setting (child).
476+
#### Cascade deletion
477+
Cascade deletion occurs when deleting of a parent resource is implicitly deletes all its child resources. Policy won't block removal of child resources when a delete action targets the parent resources. For example, `Microsoft.Insights/diagnosticSettings` is a child resource of `Microsoft.Storage/storageaccounts`. If a `denyAction` policy targets `Microsoft.Insights/diagnosticSettings`, a delete call to the diagnostic setting (child) will fail, but a delete to the storage account (parent) will implicitly delete the diagnostic setting (child).
477478

478479
[!INCLUDE [policy-denyAction](../../../../includes/azure-policy-denyAction.md)]
479480

includes/azure-policy-denyAction.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ ms.date: 11/28/2022
88
ms.author: kenieva
99
---
1010

11-
This table describes if a resource will be protected from deletion given the resource applicable to the assigned denyAction policy and the targeted scope of the DELETE call. In the context of this table, an indexed is a resource that supports tags and locations. Non-indexed is a resource that doesn't support tags or locations. For more information on indexed and non-indexed resources, reference [definition modes](../articles/governance/policy/concepts/definition-structure.md). Child resources are resources that exist only within the context of another resource. For example, a virtual machines extension resource is a child of the virtual machine, whom is the parent resource.
11+
This table describes if a resource will be protected from deletion given the resource applicable to the assigned denyAction policy and the targeted scope of the DELETE call. In the context of this table, an indexed resource is one that supports tags and locations and a non-indexed resource is one that doesn't support tags or locations. For more information on indexed and non-indexed resources, reference [definition modes](../articles/governance/policy/concepts/definition-structure.md). Child resources are resources that exist only within the context of another resource. For example, a virtual machines extension resource is a child of the virtual machine, whom is the parent resource.
1212

13-
| Resource applicable to DenyAction definition | Delete call targeted scope | Action taken |
13+
| Entity being deleted| Entity applicable to policy conditions | Action taken |
1414
|---|---|---|
1515
| Resource | Resource | Protected |
16-
| Resource | Subscription | Deleted |
17-
| Indexed resource | Resource group| Depends on `cascadeBehaviors` |
18-
| Non indexed resource | Resource group | Deleted |
19-
| Parent resource | Child resource | Parent is protected; child is deleted |
20-
| Child resource | Parent resource | Deleted |
16+
| Subscription | Resource | Deleted |
17+
| Resource group | Indexed resource| Depends on `cascadeBehaviors` |
18+
| Resource group | Non indexed resource| Deleted |
19+
| Child resource | Parent resource | Parent is protected; child is deleted |
20+
| Parent resource | Child resource | Deleted |

0 commit comments

Comments
 (0)