Skip to content

Commit 4bf4ef5

Browse files
Merge pull request #231918 from asudbring/vnet-old-review
Review of old article for virtual network freshness azure powershell samples main article and 3 scripts
2 parents bdb233a + fdd2037 commit 4bf4ef5

4 files changed

+21
-49
lines changed

articles/networking/powershell-samples.md

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,23 @@
11
---
22
title: Azure PowerShell Samples - Networking
33
description: Learn about Azure PowerShell samples for networking, including a sample for creating a virtual network for multi-tier applications.
4-
services: virtual-network
5-
documentationcenter: virtual-network
6-
author: mbender-ms
7-
manager: kumudD
8-
9-
tags:
10-
ms.assetid:
4+
author: asudbring
115
ms.service: virtual-network
126
ms.topic: article
13-
ms.tgt_pltfrm:
14-
ms.workload: infrastructure
15-
ms.date: 05/24/2017
16-
ms.author: mbender
17-
7+
ms.date: 03/23/2023
8+
ms.author: allensu
189
---
1910
# Azure PowerShell Samples for networking
2011

21-
The following table includes links to scripts built using Azure PowerShell.
12+
The following table includes links to scripts for Azure PowerShell.
2213

2314
| Script | Description |
2415
|-|-|
2516
|**Connectivity between Azure resources**||
2617
| [Create a virtual network for multi-tier applications](./scripts/virtual-network-powershell-sample-multi-tier-application.md?toc=%2fazure%2fnetworking%2ftoc.json) | Creates a virtual network with front-end and back-end subnets. Traffic to the front-end subnet is limited to HTTP, while traffic to the back-end subnet is limited to SQL, port 1433. |
2718
| [Peer two virtual networks](./scripts/virtual-network-powershell-sample-peer-two-virtual-networks.md?toc=%2fazure%2fnetworking%2ftoc.json) | Creates and connects two virtual networks in the same region. |
2819
| [Route traffic through a network virtual appliance](./scripts/virtual-network-powershell-sample-route-traffic-through-nva.md?toc=%2fazure%2fnetworking%2ftoc.json) | Creates a virtual network with front-end and back-end subnets and a VM that is able to route traffic between the two subnets. |
29-
| [Filter inbound and outbound VM network traffic](./scripts/virtual-network-powershell-filter-network-traffic.md?toc=%2fazure%2fnetworking%2ftoc.json) | Creates a virtual network with front-end and back-end subnets. Inbound network traffic to the front-end subnet is limited to HTTP and HTTPS.. Outbound traffic to the Internet from the back-end subnet is not permitted. |
20+
| [Filter inbound and outbound VM network traffic](./scripts/virtual-network-powershell-filter-network-traffic.md?toc=%2fazure%2fnetworking%2ftoc.json) | Creates a virtual network with front-end and back-end subnets. Inbound network traffic to the front-end subnet is limited to HTTP and HTTPS. Outbound traffic to the Internet from the back-end subnet isn't permitted. |
3021
|**Load balancing and traffic direction**||
3122
| [Load balance traffic to VMs for high availability](./scripts/load-balancer-windows-powershell-sample-nlb.md?toc=%2fazure%2fnetworking%2ftoc.json) | Creates several virtual machines in a highly available and load balanced configuration. |
3223
| [Direct traffic across multiple regions for high application availability](./scripts/traffic-manager-powershell-websites-high-availability.md?toc=%2fazure%2fnetworking%2ftoc.json) | Creates two app service plans, two web apps, a traffic manager profile, and two traffic manager endpoints. |

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

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,24 @@
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
@@ -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)

articles/networking/scripts/virtual-network-powershell-sample-multi-tier-application.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
11
---
22
title: Azure PowerShell script sample - Create a network for multi-tier applications
33
description: Azure PowerShell script sample - Create a virtual network for multi-tier applications.
4-
services: virtual-network
5-
documentationcenter: virtual-network
6-
author: mbender-ms
7-
manager: kumudD
4+
author: asudbring
85
ms.service: virtual-network
9-
ms.devlang: powershell
106
ms.topic: article
11-
ms.tgt_pltfrm:
12-
ms.workload: infrastructure
13-
ms.date: 05/16/2017
14-
ms.author: mbender
7+
ms.date: 03/23/2023
8+
ms.author: allensu
159
ms.custom: devx-track-azurepowershell
1610

1711
---
1812

1913
# Create a network for multi-tier applications
2014

21-
This script sample creates a virtual network with front-end and back-end subnets. Traffic to the front-end subnet is limited to HTTP and SSH, while traffic to the back-end subnet is limited to MySQL, port 3306. After running the script, you will have two virtual machines, one in each subnet that you can deploy web server and MySQL software to.
15+
This script sample creates a virtual network with front-end and back-end subnets. Traffic to the front-end subnet is limited to HTTP and SSH, while traffic to the back-end subnet is limited to MySQL, port 3306. After running the script, you'll have two virtual machines, one in each subnet that you can deploy web server and MySQL software to.
2216

2317
If needed, install the Azure PowerShell using the instruction found in the [Azure PowerShell guide](/powershell/azure/), and then run `Connect-AzAccount` to create a connection with Azure.
2418

@@ -35,7 +29,7 @@ If needed, install the Azure PowerShell using the instruction found in the [Azur
3529
Run the following command to remove the resource group, VM, and all related resources.
3630

3731
```powershell
38-
Remove-AzResourceGroup -Name myResourceGroup
32+
Remove-AzResourceGroup -Name $rgName
3933
```
4034

4135
## Script explanation
@@ -58,4 +52,4 @@ This script uses the following commands to create a resource group, virtual netw
5852

5953
For more information on the Azure PowerShell, see [Azure PowerShell documentation](/powershell/azure/).
6054

61-
Additional networking PowerShell script samples can be found in the [Azure Networking Overview documentation](../powershell-samples.md?toc=%2fazure%2fnetworking%2ftoc.json).
55+
More networking PowerShell script samples can be found in the [Azure Networking Overview documentation](../powershell-samples.md?toc=%2fazure%2fnetworking%2ftoc.json).

articles/networking/scripts/virtual-network-powershell-sample-route-traffic-through-nva.md

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,12 @@
11
---
22
title: Azure PowerShell script sample - Route traffic through a network virtual appliance
33
description: Azure PowerShell script sample - Route traffic through a firewall network virtual appliance.
4-
services: virtual-network
5-
documentationcenter: virtual-network
6-
author: mbender-ms
7-
manager: kumudD
4+
author: asudbring
85
ms.service: virtual-network
9-
ms.devlang: powershell
106
ms.topic: article
11-
ms.tgt_pltfrm:
12-
ms.workload: infrastructure
13-
ms.date: 05/16/2017
14-
ms.author: mbender
7+
ms.date: 03/23/2023
8+
ms.author: allensu
159
ms.custom: devx-track-azurepowershell
16-
1710
---
1811

1912
# Route traffic through a network virtual appliance
@@ -60,4 +53,4 @@ This script uses the following commands to create a resource group, virtual netw
6053

6154
For more information on the Azure PowerShell, see [Azure PowerShell documentation](/powershell/azure/).
6255

63-
Additional networking PowerShell script samples can be found in the [Azure Networking Overview documentation](../powershell-samples.md?toc=%2fazure%2fnetworking%2ftoc.json).
56+
More networking PowerShell script samples can be found in the [Azure Networking Overview documentation](../powershell-samples.md?toc=%2fazure%2fnetworking%2ftoc.json).

0 commit comments

Comments
 (0)