适用于虚拟网络的 Azure PowerShell 示例Azure PowerShell samples for virtual network

下表包含 Azure PowerShell 脚本的链接:The following table includes links to Azure Powershell scripts:

为多层应用程序创建虚拟网络Create a virtual network for multi-tier applications 创建包含前端和后端子网的虚拟网络。Creates a virtual network with front-end and back-end subnets. 传入前端子网的流量仅限 HTTP,而传入后端子网的流量限于 SQL、端口 1433。Traffic to the front-end subnet is limited to HTTP, while traffic to the back-end subnet is limited to SQL, port 1433.
两个对等虚拟网络Peer two virtual networks 在同一区域中创建并连接两个虚拟网络。Creates and connects two virtual networks in the same region.
通过网络虚拟设备的路由流量Route traffic through a network virtual appliance 创建包含前端和后端子网的虚拟网络,以及可在这两个子网之间路由流量的 VM。Creates a virtual network with front-end and back-end subnets and a VM that is able to route traffic between the two subnets.
筛选入站和出站 VM 网络流量Filter inbound and outbound VM network traffic 创建包含前端和后端子网的虚拟网络。Creates a virtual network with front-end and back-end subnets. 前端子网的入站网络流量仅限于 HTTP 和 HTTPS。Inbound network traffic to the front-end subnet is limited to HTTP and HTTPS. 不允许从后端子网到 Internet 的出站流量。Outbound traffic to the internet from the back-end subnet is not permitted.