Skip to content

Commit 4801a68

Browse files
Merge pull request #209705 from mbender-ms/avnm-define-dynamic
AVNM - Update Exclude Elements doc for Custom Policy
2 parents b93aba3 + 476847b commit 4801a68

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

articles/virtual-network-manager/how-to-exclude-elements.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -70,20 +70,18 @@ Assume you have the following virtual networks in your subscription. Each virtua
7070

7171
To begin using the basic editor to create your conditional statement, you need to create a new network group.
7272

73-
1. Go to your Azure Virtual Network Manager instance and select **Network Groups** under *Settings*. Then select **+ Add** to create a new network group.
73+
1. Go to your Azure Virtual Network Manager instance and select **Network Groups** under *Settings*. Then select **+ Create** to create a new network group.
7474

75-
1. Enter a **Name** for the network group. Then select the **Conditional statements** tab.
75+
1. Enter a **Name** and an optional **Description** for the network group, and select **Add**.
76+
1. Select the network group from the list and select **Create Azure Policy**.
77+
1. Enter a **Policy name** and leave the **Scope** selections unless changes are needed.
78+
1. Under **Criteria**, select **Tags** from the drop-down under *Parameter* and then select **Exist** from the drop-down under *Operator*.
7679

77-
1. Select **Tags** from the drop-down under *Parameter* and then select **Exist** from the drop-down under *Operator*.
78-
79-
1. Enter **Prod** under *Condition*, then select **Evaluate**. You should only see VNet-A-EastUS, VNet-B-WestUS, and VNetA show up in the list.
80-
81-
1. Add another conditional statement by selecting the logical operator **AND**. Select **Name** for the *Parameter* and **Contains** for the *Operator*. Enter **VNet-A** into the *Condition* field. Select **Evaluate** to see which virtual network shows up in the list. You should only see VNet-A-EastUS and VNet-A-WestUS.
82-
83-
1. Select **Review + Create** and then select **Create** once validation has passed.
80+
1. Enter **Prod** under *Condition*, then select **Save**.
81+
1. After a few minutes, select your network group and select **Group Members** under *Settings*. You should only see VNet-A-EastUS, VNet-A-WestUS, and VNetA show up in the list.
8482

8583
> [!NOTE]
86-
> The **basic editor** is only available during the creation of a network group.
84+
> The **basic editor** is only available during the creation of an Azure Policy.
8785
8886
## Advanced editor
8987

0 commit comments

Comments
 (0)