|
1 | 1 | ---
|
2 | 2 | title: Filter VM network traffic - Azure PowerShell script sample
|
3 | 3 | description: Filter inbound and outbound VM network traffic - 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 |
| -ms.workload: infrastructure |
12 |
| -ms.date: 03/20/2018 |
| 7 | +ms.date: 03/23/2023 |
13 | 8 | ms.author: allensu
|
14 | 9 | ms.custom: devx-track-azurepowershell
|
15 | 10 | ---
|
16 | 11 |
|
17 | 12 | # Filter inbound and outbound VM network traffic script sample
|
18 | 13 |
|
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, and HTTPS, while outbound traffic to the internet from the back-end subnet is not permitted. After running the script, you 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, and HTTPS, while outbound traffic to the internet from the back-end subnet isn't permitted. After running the script, you have one virtual machine with two NICs. Each NIC is connected to a different subnet. |
20 | 15 |
|
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-InstalledModule -Name 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. |
| 16 | +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-InstalledModule -Name 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 | 17 |
|
23 | 18 | [!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
|
24 | 19 |
|
@@ -58,4 +53,4 @@ This script uses the following commands to create a resource group, virtual netw
|
58 | 53 |
|
59 | 54 | For more information on the Azure PowerShell, see [Azure PowerShell documentation](/powershell/azure/).
|
60 | 55 |
|
61 |
| -Additional virtual network PowerShell script samples can be found in [Virtual network PowerShell samples](../powershell-samples.md). |
| 56 | +More virtual network PowerShell script samples can be found in [Virtual network PowerShell samples](../powershell-samples.md). |
0 commit comments