You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-network-manager/create-virtual-network-manager-powershell.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -173,10 +173,13 @@ $ng = @{
173
173
174
174
## Define membership for a mesh configuration
175
175
176
-
Once your network group is created, you define a network group's membership by adding virtual networks. Choose one of the options: *[Manually add membership](#manually-add-membership)* or *[Create policy to dynamically add members](#create-azure-policy-for-dynamic-membership)* with Azure Policy.
176
+
Once your network group is created, you define a network group's membership by adding virtual networks. Choose one of the options to define network group membership:
177
+
178
+
- Add membership manually
179
+
- Create a policy for dynamic membership
177
180
# [Manual membership](#tab/manualmembership)
178
181
179
-
### Manually add membership
182
+
### Add membership manually
180
183
181
184
In this task, you add the static members **vnet-learn-prod-eastus-001** and **vnet-learn-prod-eastus-002** to the network group **ng-learn-prod-eastus-001** using [New-AzNetworkManagerStaticMember](/powershell/module/az.network/new-aznetworkmanagerstaticmember).
182
185
@@ -217,13 +220,14 @@ $sm_vnet002 = @{
217
220
218
221
### Create a policy for dynamic membership
219
222
220
-
Using [Azure Policy](concept-azure-policy-integration.md), you define a condition to dynamically add two virtual networks to your network group when the name of the virtual network name includes **-prod**using these steps:
223
+
Using [Azure Policy](concept-azure-policy-integration.md), you define a condition to dynamically add two virtual networks to your network group when the name of the virtual network name includes **-prod**in the virtual network name.
221
224
222
-
1. Define the conditional statement and store it in a variable.
223
225
> [!NOTE]
224
226
> It is recommended to scope all of your conditionals to only scan for type `Microsoft.Network/virtualNetworks` for efficiency.
225
227
226
-
```azurepowershell
228
+
1. Define the conditional statement and store it in a variable.
0 commit comments