|
1 | 1 | ---
|
2 | 2 | title: Create a VNet for multi-tier applications - Azure PowerShell script sample
|
3 | 3 | description: Create a virtual network for multi-tier applications - Azure PowerShell script sample.
|
4 |
| -services: virtual-network |
5 |
| -documentationcenter: virtual-network |
6 | 4 | author: asudbring
|
7 |
| -manager: twooley |
8 | 5 | ms.service: virtual-network
|
9 |
| -ms.devlang: powershell |
10 | 6 | ms.topic: sample
|
11 | 7 | ms.workload: infrastructure
|
12 |
| -ms.date: 12/13/2018 |
| 8 | +ms.date: 03/28/2023 |
13 | 9 | ms.author: allensu
|
14 | 10 | ms.custom: devx-track-azurepowershell
|
15 | 11 | ---
|
16 | 12 |
|
17 | 13 | # Create a network for multi-tier applications script sample
|
18 | 14 |
|
19 |
| -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. |
20 | 16 |
|
21 |
| -You can execute the script from the Azure [Cloud Shell](https://shell.azure.com/powershell), or from a local PowerShell installation. If you use PowerShell locally, this script requires the Azure PowerShell module version 1.0.0 or later. To find the installed version, run `Get-Module -ListAvailable Az`. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps). If you are running PowerShell locally, you also need to run `Connect-AzAccount` to create a connection with Azure. |
| 17 | +You can execute the script from the Azure [Cloud Shell](https://shell.azure.com/powershell), or from a local PowerShell installation. If you use PowerShell locally, this script requires the Azure PowerShell module version 1.0.0 or later. To find the installed version, run `Get-Module -ListAvailable Az`. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps). If you're running PowerShell locally, you also need to run `Connect-AzAccount` to create a connection with Azure. |
22 | 18 |
|
23 | 19 | [!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
|
24 | 20 |
|
25 | 21 | ## Sample script
|
26 | 22 |
|
27 | 23 | [!INCLUDE [updated-for-az](../../../includes/updated-for-az.md)]
|
28 | 24 |
|
29 |
| -<!-- gitHub issue https://github.com/MicrosoftDocs/azure-docs/issues/17748 --> |
30 |
| -A subnet ID is assigned after you have created a virtual network; specifically, using the New-AzVirtualNetwork cmdlet with the -Subnet option. If you configure the subnet using the New-AzVirtualNetworkSubnetConfig cmdlet before the call to New-AzVirtualNetwork, you won't see the subnet ID until after you call New-AzVirtualNetwork. |
| 25 | +A subnet ID is assigned after you've created a virtual network; specifically, using the New-AzVirtualNetwork cmdlet with the -Subnet option. If you configure the subnet using the New-AzVirtualNetworkSubnetConfig cmdlet before the call to New-AzVirtualNetwork, you won't see the subnet ID until after you call New-AzVirtualNetwork. |
31 | 26 |
|
32 | 27 | [!code-azurepowershell-interactive[main](../../../powershell_scripts/virtual-network/virtual-network-multi-tier-application/virtual-network-multi-tier-application.ps1 "Virtual network for multi-tier application")]
|
33 | 28 |
|
@@ -59,4 +54,4 @@ This script uses the following commands to create a resource group, virtual netw
|
59 | 54 |
|
60 | 55 | For more information on the Azure PowerShell, see [Azure PowerShell documentation](/powershell/azure/).
|
61 | 56 |
|
62 |
| -Additional virtual network PowerShell script samples can be found in [Virtual network PowerShell samples](../powershell-samples.md). |
| 57 | +More virtual network PowerShell script samples can be found in [Virtual network PowerShell samples](../powershell-samples.md). |
0 commit comments