Skip to content

Commit e06208e

Browse files
author
Michael Bender
committed
Updates to code for readability and usage
1 parent 83c1965 commit e06208e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

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

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ In this quickstart, you deploy three virtual networks and use Azure Virtual Netw
3333

3434
To begin your configuration, sign in to your Azure account. Use the following examples to help you connect:
3535

36-
Login to Azure
36+
Sign in to Azure
3737

3838
```azurepowershell
3939
Connect-AzAccount
@@ -295,7 +295,7 @@ In this task, you create a connectivity configuration with the network group **n
295295
1. Create a configuration group and add connectivity group item to it.
296296
297297
```azurepowershell-interactive
298-
[System.Collections.Generic.List[Microsoft.Azure.Commands.Network.Models.PSNetworkManagerConnectivityGroupItem]]$configGroup = @()
298+
[System.Collections.Generic.List[Microsoft.Azure.Commands.Network.Models.NetworkManager.PSNetworkManagerConnectivityGroupItem]]$configGroup = @()
299299
$configGroup.Add($groupItem)
300300
```
301301
@@ -360,34 +360,34 @@ If you no longer need the Azure Virtual Network Manager, you need to make sure a
360360
361361
```azurepowershell-interactive
362362
363-
Remove-AzNetworkManagerConnectivityConfiguration @connectivityconfig.Id
363+
Remove-AzNetworkManagerConnectivityConfiguration -Name $connectivityconfig.Name -ResourceGroupName $rg.Name -NetworkManagerName $networkManager.Name
364364
365365
```
366366
2. Remove the policy resources with Remove-AzPolicy*
367367
368368
```azurepowershell-interactive
369369
370-
Remove-AzPolicyAssignment $policyAssignment.Id
371-
Remove-AzPolicyAssignment $policyDefinition.Id
370+
Remove-AzPolicyAssignment -Name $policyAssignment.Name
371+
Remove-AzPolicyAssignment -Name $policyDefinition.Name
372372
373373
```
374374
375375
3. Remove the network group with Remove-AzNetworkManagerGroup.
376376
377377
```azurepowershell-interactive
378-
Remove-AzNetworkManagerGroup ng.Id
378+
Remove-AzNetworkManagerGroup -Name $ng.Name -ResourceGroupName $rg.Name -NetworkManagerName $networkManager.Name
379379
```
380380
381381
4. Delete the network manager instance with Remove-AzNetworkManager.
382382
383383
```azurepowershell-interactive
384-
Remove-AzNetworkManager $networkManager.Id
384+
Remove-AzNetworkManager -name $networkManager.Name -ResourceGroupName $rg.Name
385385
```
386386
387387
5. If you no longer need the resource created, delete the resource group with [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup).
388388
389389
```azurepowershell-interactive
390-
Remove-AzResourceGroup -Name $rg.Name
390+
Remove-AzResourceGroup -Name $rg.Name -Force
391391
```
392392
393393
## Next steps

0 commit comments

Comments
 (0)