Skip to content

Commit 86186cd

Browse files
committed
added clean up section tabs
1 parent d35dfc9 commit 86186cd

File tree

1 file changed

+56
-9
lines changed

1 file changed

+56
-9
lines changed

articles/virtual-network/quickstart-create-virtual-network.md

Lines changed: 56 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -618,8 +618,6 @@ The script creates the following resources:
618618

619619
- Two subnets: Segments of a virtual network's IP address range where you can place groups of isolated resources.
620620

621-
:::image type="content" source="./media/quick-create-bicep/virtual-network-bicep-resources.png" alt-text="Diagram of resources created in the virtual network quickstart." lightbox="./media/quick-create-bicep/virtual-network-bicep-resources.png":::
622-
623621
[!INCLUDE [About Terraform](~/azure-dev-docs-pr/articles/terraform/includes/abstract.md)]
624622

625623
## Implement the Terraform code
@@ -681,6 +679,10 @@ The script creates the following resources:
681679
--name $virtual_network_name
682680
```
683681

682+
## Troubleshoot Terraform on Azure
683+
684+
For information about troubleshooting Terraform, see [Troubleshoot common problems when using Terraform on Azure](/azure/developer/terraform/troubleshoot).
685+
684686
---
685687

686688
## Connect to a virtual machine
@@ -733,16 +735,61 @@ The script creates the following resources:
733735

734736
## Clean up resources
735737

738+
### [Portal](#tab/portal)
739+
740+
[!INCLUDE [portal-clean-up.md](~/reusable-content/ce-skilling/azure/includes/portal-clean-up.md)]
741+
742+
### [PowerShell](#tab/powershell)
743+
744+
When you finish with the virtual network and the VMs, use [Remove-AzResourceGroup](/powershell/module/az.resources/remove-azresourcegroup) to remove the resource group and all its resources:
745+
746+
```azurepowershell-interactive
747+
$rgParams = @{
748+
Name = 'test-rg'
749+
Force = $true
750+
}
751+
Remove-AzResourceGroup @rgParams
752+
```
753+
754+
### [CLI](#tab/cli)
736755

756+
When you finish with the virtual network and the VMs, use [az group delete](/cli/azure/group#az-group-delete) to remove the resource group and all its resources:
757+
758+
```azurecli-interactive
759+
az group delete \
760+
--name test-rg \
761+
--yes
762+
```
737763

738-
## Next step -or- Related content
764+
### [ARM](#tab/arm)
765+
766+
When you no longer need the resources that you created with the virtual network, delete the resource group. This action removes the virtual network and all the related resources.
767+
768+
To delete the resource group, call the `Remove-AzResourceGroup` cmdlet:
769+
770+
```azurepowershell-interactive
771+
Remove-AzResourceGroup -Name <your resource group name>
772+
```
773+
774+
### [Bicep](#tab/bicep)
775+
776+
1. In the Azure portal, on the **Resource groups** page, select the **TestRG** resource group.
777+
778+
1. At the top of the **TestRG** page, select **Delete resource group**.
779+
780+
1. On the **Delete a resource group** page, under **Enter resource group name to confirm deletion**, enter **TestRG**, and then select **Delete**.
781+
782+
1. Select **Delete** again.
783+
784+
### [Terraform](#tab/terraform)
785+
786+
[!INCLUDE [terraform-plan-destroy.md](~/azure-dev-docs-pr/articles/terraform/includes/terraform-plan-destroy.md)]
787+
788+
---
789+
## Related content
739790

740-
> [!div class="nextstepaction"]
741-
> [Next sequential article title](link.md)
791+
- [Filter network traffic](tutorial-filter-network-traffic.md)
742792

743-
-or-
793+
- [Learn more about using Terraform on Azure](/azure/terraform)
744794

745-
- [Related article title](link.md)
746-
- [Related article title](link.md)
747-
- [Related article title](link.md)
748795

0 commit comments

Comments
 (0)