Skip to content

Commit 2504b7c

Browse files
Merge pull request #245128 from mbender-ms/avnm-az-policy
virtual network manager - update az policy example
2 parents 6375797 + 2b6bcdd commit 2504b7c

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

articles/virtual-network-manager/concept-network-groups.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ To create an Azure Policy initiative definition and assignment for Azure Virtual
5050

5151
To create, edit, or delete Azure Virtual Network Manager dynamic group policies, you need:
5252

53-
- Read and write Azure RBAC permissions to the underlying policy
54-
- Azure RBAC permissions to join the network group (Classic Admin authorization isn't supported).
53+
- Read and write role-based access control permissions to the underlying policy.
54+
- Role-based access control permissions to join the network group (Classic Admin authorization isn't supported).
5555

5656
For more information on required permissions for Azure Virtual Network Manager dynamic group policies, review [Required permissions](concept-azure-policy-integration.md#required-permissions).
5757

articles/virtual-network-manager/how-to-define-network-group-membership-azure-policy.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ ms.custom: template-concept, engagement-fy23
1111

1212
# Define dynamic network group membership in Azure Virtual Network Manager with Azure Policy
1313

14-
In this article, you learn how to use Azure Policy conditional statements to create network groups with dynamic membership. You create these conditional statements using the basic editor by selecting parameters and operators from a drop-down menu. You'll also learn how to use the advanced editor to update conditional statements of an existing network group.
14+
In this article, you learn how to use Azure Policy conditional statements to create network groups with dynamic membership. You create these conditional statements using the basic editor by selecting parameters and operators from a drop-down menu. Also, you learn how to use the advanced editor to update conditional statements of an existing network group.
1515

1616
[Azure Policy](../governance/policy/overview.md) is a service to enable you to enforce per-resource governance at scale. It can be used to specify conditional expressions that define group membership, as opposed to explicit lists of virtual networks. This condition continues to power your network groups dynamically, allowing virtual networks to join and leave the group automatically as their fulfillment of the condition changes, with no Network Manager operation required.
1717

@@ -22,10 +22,10 @@ In this article, you learn how to use Azure Policy conditional statements to cre
2222
> This preview version is provided without a service level agreement, and it's not recommended for production workloads. Certain features might not be supported or might have constrained capabilities.
2323
> For more information, see [Supplemental Terms of Use for Microsoft Azure Previews](https://azure.microsoft.com/support/legal/preview-supplemental-terms/).
2424
25-
## Pre-requisites
25+
## Prerequisites
2626

2727
- An Azure account with an active subscription. [Create an account for free](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
28-
- To modify dynamic network groups, you must be [granted access via Azure RBAC role](concept-network-groups.md#network-groups-and-azure-policy) assignment only. Classic Admin/legacy authorization is not supported.
28+
- To modify dynamic network groups, you must be [granted access with role-based access control](concept-network-groups.md#network-groups-and-azure-policy). Classic Admin/legacy authorization isn't supported.
2929
## <a name="parameters"></a> Parameters and operators
3030

3131
Virtual networks with dynamic memberships are selected using conditional statements. You can define more than one conditional statement by using *logical operators* such as **AND** and **OR** for scenarios where you need to further narrow the selected virtual networks.
@@ -66,10 +66,13 @@ List of supported operators:
6666
## Basic editor
6767

6868
Assume you have the following virtual networks in your subscription. Each virtual network has an associated tag named **environment** with the respective value of *Production* or *Test*.
69-
* myVNet01-EastUS - *Production*
70-
* myVNet01-WestUS - *Production*
71-
* myVNet02-WestUS - *Test*
72-
* myVNet03-WestUS - *Test*
69+
70+
| **Virtual Network** | **Tag** |
71+
| ------------------- | ------- |
72+
| myVNet01-EastUS | Production |
73+
| myVNet01-WestUS | Production |
74+
| myVNet02-WestUS | Test |
75+
| myVNet03-WestUS | Test |
7376

7477
You only want to select virtual networks that contain **VNet-A** in the name. To begin using the basic editor to create your conditional statement, you need to create a new network group.
7578

@@ -210,7 +213,7 @@ Both `"allOf"` and `"anyOf"` are used in the code. Since the **AND** operator is
210213

211214
### Example 3: Using custom tag values with advanced editor
212215

213-
In this example, a conditional statement is created that finds virtual networks where the name includes **myVNet** AND the **environment** tag equals **production**.
216+
In this example, a conditional statement is created that finds virtual networks where the name includes **myVNet** AND the **environment** tag includes **production**.
214217

215218
* Advanced editor:
216219

@@ -224,7 +227,7 @@ In this example, a conditional statement is created that finds virtual networks
224227
},
225228
{
226229
"field": "tags['environment']",
227-
"equals": "production"
230+
"contains": "production"
228231
}
229232
]
230233
}

0 commit comments

Comments
 (0)