Skip to content

Commit 75ba08c

Browse files
authored
Merge pull request #232487 from asudbring/vnet-old-review
Review of powershell sample article and tested script for virtual network multi-tier application
2 parents f7bb718 + 6add408 commit 75ba08c

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

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

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,28 @@
11
---
22
title: Create a VNet for multi-tier applications - Azure PowerShell script sample
33
description: Create a virtual network for multi-tier applications - Azure PowerShell script sample.
4-
services: virtual-network
5-
documentationcenter: virtual-network
64
author: asudbring
7-
manager: twooley
85
ms.service: virtual-network
9-
ms.devlang: powershell
106
ms.topic: sample
117
ms.workload: infrastructure
12-
ms.date: 12/13/2018
8+
ms.date: 03/28/2023
139
ms.author: allensu
1410
ms.custom: devx-track-azurepowershell
1511
---
1612

1713
# Create a network for multi-tier applications script sample
1814

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.
2016

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.
2218

2319
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
2420

2521
## Sample script
2622

2723
[!INCLUDE [updated-for-az](../../../includes/updated-for-az.md)]
2824

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.
3126

3227
[!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")]
3328

@@ -59,4 +54,4 @@ This script uses the following commands to create a resource group, virtual netw
5954

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

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

Comments
 (0)