虛擬網路的 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. 不允許從後端子網路傳輸至網際網路的輸出流量。Outbound traffic to the internet from the back-end subnet is not permitted.
設定具有 Basic Load Balancer 的 IPv4 + IPv6 雙重堆疊虛擬網路Configure IPv4 + IPv6 dual stack virtual network with Basic Load Balancer 部署包含兩個 VM 和一個具備 IPv4 與 IPv6 公用 IP 位址的 Azure Basic Load Balancer 的雙重堆疊 (IPv4 + IPv6) 虛擬網路。Deploys dual-stack (IPv4+IPv6) virtual network with two VMs and an Azure Basic Load Balancer with IPv4 and IPv6 public IP addresses.
設定具有 Standard Load Balancer 的 IPv4 + IPv6 雙重堆疊虛擬網路Configure IPv4 + IPv6 dual stack virtual network with Standard Load Balancer 部署包含兩個 VM 和一個具備 IPv4 與 IPv6 公用 IP 位址的 Azure Standard Load Balancer 的雙重堆疊 (IPv4 + IPv6) 虛擬網路。Deploys dual-stack (IPv4+IPv6) virtual network with two VMs and an Azure Standard Load Balancer with IPv4 and IPv6 public IP addresses.