9 - Change a policy assignment enforcement mode
You can change the policy assignment enforcement mode to DoNotEnforce
or Disabled
for any policy assignment. This is useful if you want to disable a policy assignment for a specific management group.
To do this, you need to add the policy assignment to the policy_assignments_to_modify
section of the management_group_settings
configuration.
First you need to identify the policy assignment name:
- Find the policy assignment you wish to modify in the library
- Open the policy assignment file and find the
name
property and take a note of it.
Next, you need to identify the archetype(s) (management group definitions) that the policy assignment is applied to:
Find the archetype in the library
Open the archetype file and check the
policy_assignments
property. If the policy assignment is there, then and take a note of the archetypename
property.Open the alz.alz_architecture_definition.json file find the archetype name from the previous step in the
archetypes
property. Take note of the management groupname
property.If you have updated any management group IDs, then you need to open your customizedalz.alz_architecture_definition.json
file instead to find the correct management group name.
Now you have the policy assignment name and the management group name, so you can construct the config you need to add. The configuration is structured as follows:
|
|
<management-group-name>
is the name of the management assigned the archetype you identified earlier.<policy-assignment-name>
is the name of the policy assignment you identified earlier.<enforcement-mode>
is the enforcement mode you want to set. This could beDoNotEnforce
orDisabled
.
For example, to set the enforcement mode of DDOS protection plan on the connectivity
management group add the following section to management_group_settings
> policy_assignments_to_modify
block setting:
|
|