Skip to content

Commit 266c6e1

Browse files
committed
add cleanup block and link to full script
1 parent 41d1ee3 commit 266c6e1

File tree

2 files changed

+24
-4
lines changed

2 files changed

+24
-4
lines changed

articles/container-instances/container-instances-egress-ip-address.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Configure static outbound IP
33
description: Configure Azure firewall and user-defined routes for Azure Container Instances workloads that use the firewall's public IP address for ingress and egress
44
ms.topic: article
5-
ms.date: 07/16/2020
5+
ms.date: 05/03/2022
66
---
77

88
# Configure a single public IP address for outbound and inbound traffic to a container group
@@ -26,6 +26,9 @@ You then validate ingress and egress from example container groups through the f
2626

2727
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](../../includes/cli-launch-cloud-shell-sign-in.md)]
2828

29+
> [!NOTE]
30+
> To download the complete script, go to [full script](https://github.com/Azure-Samples/azure-cli-samples/blob/master/container-instances/egress-ip-address.sh).
31+
2932
## Get started
3033

3134
This tutorial makes use of a randomized variable. If you are using an existing resource group, modify the value of this variable appropriately.
@@ -165,14 +168,20 @@ Output is similar to:
165168
<html><head><title>Current IP Check</title></head><body>Current IP Address: 52.142.18.133</body></html>
166169
```
167170

171+
## Clean up resources
172+
173+
When no longer needed, you can use [az group delete](/cli/azure/group) to remove the resource group and all related resources as follows. The `--no-wait` parameter returns control to the prompt without waiting for the operation to complete. The `--yes` parameter confirms that you wish to delete the resources without an additional prompt to do so.
174+
175+
```azurecli-interactive
176+
az group delete --name $resourceGroup --yes --no-wait
177+
```
178+
168179
## Next steps
169180

170181
In this article, you set up container groups in a virtual network behind an Azure firewall. You configured a user-defined route and NAT and application rules on the firewall. By using this configuration, you set up a single, static IP address for ingress and egress from Azure Container Instances.
171182

172183
For more information about managing traffic and protecting Azure resources, see the [Azure Firewall](../firewall/index.yml) documentation.
173184

174-
175-
176185
[az-group-create]: /cli/azure/group#az_group_create
177186
[az-container-create]: /cli/azure/container#az_container_create
178187
[az-network-vnet-subnet-create]: /cli/azure/network/vnet/subnet#az_network_vnet_subnet_create

articles/container-instances/container-instances-nat-gateway.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.topic: conceptual
66
ms.service: container-instances
77
services: container-instances
88
ms.author: macolso
9-
ms.date: 02/28/2022
9+
ms.date: 05/03/2022
1010
---
1111

1212
# Configure a NAT gateway for static IP address for outbound traffic from a container group
@@ -31,6 +31,9 @@ You then validate egress from example container groups through the NAT gateway.
3131

3232
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](../../includes/cli-launch-cloud-shell-sign-in.md)]
3333

34+
> [!NOTE]
35+
> To download the complete script, go to [full script](https://github.com/Azure-Samples/azure-cli-samples/blob/master/container-instances/nat-gateway.sh).
36+
3437
## Get started
3538

3639
This tutorial makes use of a randomized variable. If you are using an existing resource group, modify the value of this variable appropriately.
@@ -100,6 +103,14 @@ This IP address should match the public IP address created in the first step of
100103

101104
:::code language="azurecli" source="~/azure_cli_scripts/container-instances/nat-gateway.sh" id="echo":::
102105

106+
## Clean up resources
107+
108+
When no longer needed, you can use [az group delete](/cli/azure/group) to remove the resource group and all related resources as follows. The `--no-wait` parameter returns control to the prompt without waiting for the operation to complete. The `--yes` parameter confirms that you wish to delete the resources without an additional prompt to do so.
109+
110+
```azurecli-interactive
111+
az group delete --name $resourceGroup --yes --no-wait
112+
```
113+
103114
## Next steps
104115

105116
In this article, you set up container groups in a virtual network behind an Azure NAT gateway. By using this configuration, you set up a single, static IP address egress from Azure Container Instances container groups.

0 commit comments

Comments
 (0)