Skip to content

Commit 2c6c257

Browse files
author
Michael Bender
committed
Updates to code for readability and usage
1 parent 834841c commit 2c6c257

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

articles/virtual-network-manager/create-virtual-network-manager-powershell.md

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,13 @@ $ng = @{
173173

174174
## Define membership for a mesh configuration
175175

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
177180
# [Manual membership](#tab/manualmembership)
178181

179-
### Manually add membership
182+
### Add membership manually
180183

181184
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).
182185

@@ -217,13 +220,14 @@ $sm_vnet002 = @{
217220

218221
### Create a policy for dynamic membership
219222

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.
221224

222-
1. Define the conditional statement and store it in a variable.
223225
> [!NOTE]
224226
> It is recommended to scope all of your conditionals to only scan for type `Microsoft.Network/virtualNetworks` for efficiency.
225227
226-
```azurepowershell
228+
1. Define the conditional statement and store it in a variable.
229+
230+
```azurepowershell
227231
$conditionalMembership = '{
228232
"if": {
229233
"allOf": [

0 commit comments

Comments
 (0)