@@ -33,7 +33,7 @@ In this quickstart, you deploy three virtual networks and use Azure Virtual Netw
33
33
34
34
To begin your configuration, sign in to your Azure account. Use the following examples to help you connect:
35
35
36
- Login to Azure
36
+ Sign in to Azure
37
37
38
38
``` azurepowershell
39
39
Connect-AzAccount
@@ -295,7 +295,7 @@ In this task, you create a connectivity configuration with the network group **n
295
295
1. Create a configuration group and add connectivity group item to it.
296
296
297
297
```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 = @()
299
299
$configGroup.Add($groupItem)
300
300
```
301
301
@@ -360,34 +360,34 @@ If you no longer need the Azure Virtual Network Manager, you need to make sure a
360
360
361
361
```azurepowershell-interactive
362
362
363
- Remove-AzNetworkManagerConnectivityConfiguration @ connectivityconfig.Id
363
+ Remove-AzNetworkManagerConnectivityConfiguration -Name $ connectivityconfig.Name -ResourceGroupName $rg.Name -NetworkManagerName $networkManager.Name
364
364
365
365
```
366
366
2. Remove the policy resources with Remove-AzPolicy*
367
367
368
368
```azurepowershell-interactive
369
369
370
- Remove-AzPolicyAssignment $policyAssignment.Id
371
- Remove-AzPolicyAssignment $policyDefinition.Id
370
+ Remove-AzPolicyAssignment -Name $policyAssignment.Name
371
+ Remove-AzPolicyAssignment -Name $policyDefinition.Name
372
372
373
373
```
374
374
375
375
3. Remove the network group with Remove-AzNetworkManagerGroup.
376
376
377
377
```azurepowershell-interactive
378
- Remove-AzNetworkManagerGroup ng.Id
378
+ Remove-AzNetworkManagerGroup -Name $ ng.Name -ResourceGroupName $rg.Name -NetworkManagerName $networkManager.Name
379
379
```
380
380
381
381
4. Delete the network manager instance with Remove-AzNetworkManager.
382
382
383
383
```azurepowershell-interactive
384
- Remove-AzNetworkManager $networkManager.Id
384
+ Remove-AzNetworkManager -name $networkManager.Name -ResourceGroupName $rg.Name
385
385
```
386
386
387
387
5. If you no longer need the resource created, delete the resource group with [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup).
388
388
389
389
```azurepowershell-interactive
390
- Remove-AzResourceGroup -Name $rg.Name
390
+ Remove-AzResourceGroup -Name $rg.Name -Force
391
391
```
392
392
393
393
## Next steps
0 commit comments