You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/networking/powershell-samples.md
+5-13Lines changed: 5 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,32 +1,24 @@
1
1
---
2
2
title: Azure PowerShell Samples - Networking
3
3
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
11
5
ms.service: virtual-network
12
6
ms.topic: article
13
-
ms.tgt_pltfrm:
14
-
ms.workload: infrastructure
15
-
ms.date: 05/24/2017
16
-
ms.author: mbender
7
+
ms.date: 03/23/2023
8
+
ms.author: asudbring
17
9
18
10
---
19
11
# Azure PowerShell Samples for networking
20
12
21
-
The following table includes links to scripts built using Azure PowerShell.
13
+
The following table includes links to scripts for Azure PowerShell.
22
14
23
15
| Script | Description |
24
16
|-|-|
25
17
|**Connectivity between Azure resources**||
26
18
|[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. |
27
19
|[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. |
28
20
|[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. |
21
+
|[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. |
30
22
|**Load balancing and traffic direction**||
31
23
|[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. |
32
24
|[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. |
Copy file name to clipboardExpand all lines: articles/networking/scripts/virtual-network-powershell-sample-multi-tier-application.md
+6-12Lines changed: 6 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,24 +1,18 @@
1
1
---
2
2
title: Azure PowerShell script sample - Create a network for multi-tier applications
3
3
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
8
5
ms.service: virtual-network
9
-
ms.devlang: powershell
10
6
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
15
9
ms.custom: devx-track-azurepowershell
16
10
17
11
---
18
12
19
13
# Create a network for multi-tier applications
20
14
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.
22
16
23
17
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.
24
18
@@ -35,7 +29,7 @@ If needed, install the Azure PowerShell using the instruction found in the [Azur
35
29
Run the following command to remove the resource group, VM, and all related resources.
36
30
37
31
```powershell
38
-
Remove-AzResourceGroup -Name myResourceGroup
32
+
Remove-AzResourceGroup -Name $rgName
39
33
```
40
34
41
35
## Script explanation
@@ -58,4 +52,4 @@ This script uses the following commands to create a resource group, virtual netw
58
52
59
53
For more information on the Azure PowerShell, see [Azure PowerShell documentation](/powershell/azure/).
60
54
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).
0 commit comments