Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions docs/content/bicep/howtos/modifyingPolicyAssignments.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,12 @@ param parPolicyAssignmentParameterOverrides = {

## Disabling a Policy Assignment

To change the Enforcement mode of a policy assignment to DoNoteEnforce, but still assign the policy, add it to the `managementGroupDoNotEnforcePolicyAssignments` array:
Let's say you want to disable the `Enable-DDoS-VNET` policy assignment. You can either set its enforcement mode to DoNotEnforce or exclude it entirely from deployment.

**platform/main.bicepparam:**
To change the Enforcement mode of a policy assignment to DoNoteEnforce, but still assign the policy, add it to the `managementGroupDoNotEnforcePolicyAssignments` array in the corresponding management group's `.bicepparam` file:

**landingzones/main.bicepparam:**
**platform/platform-connectivity/main.bicepparam:**

```bicep-params
param platformConfig = {
Expand Down