Skip to content

Commit 904e855

Browse files
committed
tested scripts and acrolinx fixes
1 parent 3f4e32d commit 904e855

File tree

2 files changed

+7
-14
lines changed

2 files changed

+7
-14
lines changed

articles/networking/scripts/virtual-network-cli-sample-peer-two-virtual-networks.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ This script creates and connects two virtual networks in the same region through
1717

1818
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
1919

20-
2120
## Sample script
2221

2322
[!code-azurecli-interactive[main](../../../cli_scripts/virtual-network/peer-two-virtual-networks/peer-two-virtual-networks.sh "Peer two networks")]

articles/networking/scripts/virtual-network-filter-network-traffic.md

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,32 @@
11
---
2-
title: Azure CLI script sample - Filter VM network traffic | Microsoft Docs
2+
title: Azure CLI script sample - Filter VM network traffic
33
description: Use an Azure CLI script to filter inbound and outbound virtual machine (VM) network traffic with front-end and back-end subnets.
4-
services: virtual-network
5-
documentationcenter: virtual-network
6-
author: mbender-ms
4+
author: asudbring
75
ms.service: virtual-network
8-
ms.devlang: azurecli
96
ms.topic: article
10-
ms.tgt_pltfrm:
11-
ms.workload: infrastructure
12-
ms.date: 07/07/2017
13-
ms.author: mbender
7+
ms.date: 03/23/2023
8+
ms.author: allensu
149

1510
---
1611

1712
# Use an Azure CLI script to filter inbound and outbound VM network traffic
1813

19-
This script sample creates a virtual network with front-end and back-end subnets. Inbound network traffic to the front-end subnet is limited to HTTP, HTTPS and SSH, while outbound traffic to the Internet from the back-end subnet is not permitted. After running the script, you will have one virtual machine with two NICs. Each NIC is connected to a different subnet.
14+
This script sample creates a virtual network with front-end and back-end subnets. Inbound network traffic to the front-end subnet is limited to HTTP, HTTPS and SSH, while outbound traffic to the Internet from the back-end subnet isn't permitted. After running the script, you'll have one virtual machine with two NICs. Each NIC is connected to a different subnet.
2015

2116
[!INCLUDE [sample-cli-install](../../../includes/sample-cli-install.md)]
2217

2318
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2419

2520
## Sample script
2621

27-
2822
[!code-azurecli-interactive[main](../../../cli_scripts/virtual-network/filter-network-traffic/filter-network-traffic.sh "Filter VM network traffic")]
2923

3024
## Clean up deployment
3125

3226
Run the following command to remove the resource group, VM, and all related resources.
3327

3428
```azurecli
35-
az group delete --name MyResourceGroup --yes
29+
az group delete --name $resourceGroup --yes
3630
```
3731

3832
## Script explanation
@@ -56,4 +50,4 @@ This script uses the following commands to create a resource group, virtual netw
5650

5751
For more information on the Azure CLI, see [Azure CLI documentation](/cli/azure).
5852

59-
Additional networking CLI script samples can be found in the [Azure Networking Overview documentation](../cli-samples.md)
53+
More networking CLI script samples can be found in the [Azure Networking Overview documentation](../cli-samples.md)

0 commit comments

Comments
 (0)