Skip to content

Commit 751b2f7

Browse files
committed
added delete messages
1 parent a7a56b2 commit 751b2f7

File tree

1 file changed

+16
-4
lines changed

1 file changed

+16
-4
lines changed

includes/virtual-wan-nva-hub-faq.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,26 @@ Note that you cannot delete a NVA that is the next hop resource for a Routing Po
4545

4646
If the Network Virtual Appliance resource was deployed via partner orchestration software, please reference partner documentation to delete the Network Virtual Appliance.
4747

48-
Alternatively, you can run the following Powershell command to delete your Network Virtual Appliance.
48+
Alternatively, you can run the following Powershell command to delete your Network Virtual Appliance.
4949

50+
1. Find the Azure resource group of the NVA you want to delete. The Azure resource group is usually **different** than the resource group the Virtual WAN hub is deployed in. Ensure the Virtual Hub property of the NVA resource corresponds to the NVA you want to delete. The following example assumes that all NVAs in your subscription have distinct names. If there are multiple NVAs with the same name, make sure you collect the information associated with the NVA you want to delete.
51+
52+
```azurepowershell-interactive
53+
$nva = Get-AzNetworkVirtualAppliance -Name <NVA name>
54+
$nva.VirtualHub
55+
```
56+
2. Delete the NVA.
5057
```azurepowershell-interactive
51-
Remove-AzNetworkVirtualAppliance -Name <NVA name> -ResourceGroupName <resource group name>
58+
Remove-AzNetworkVirtualAppliance -Name $nva.Name -ResourceGroupName $nva.ResourceGroupName
5259
```
5360

54-
The same command can also be run from CLI.
61+
The same series of steps can be executed from Azure CLI.
5562

63+
1. Find the Azure resource group of the NVA you wante to delete. The Azure resource group is usually **different** than the resource group the Virtual WAN hub is deployed in. Ensure the Virtual Hub property of the NVA resource corresponds to the NVA you want to delete.
64+
```azurecli-interactive
65+
az network virtual-appliance list
66+
```
67+
2. Delete the NVA
5668
```azurecli-interactive
57-
az network virtual-appliance delete --subscription <subscription name> --resource-group <resource group name> --name <Network Virtual Appliance name>
69+
az network virtual-appliance delete --subscription <subscription name> --resource-group <resource group name> --name <Network Virtual Appliance name>
5870
```

0 commit comments

Comments
 (0)