Azure CLI samples for virtual network
The following table includes links to bash scripts with Azure CLI commands:
Script | Description |
---|---|
Create a virtual network for multi-tier applications | 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. |
Peer two virtual networks | Creates and connects two virtual networks in the same region. |
Route traffic through a network virtual appliance | Creates a virtual network with front-end and back-end subnets and a VM that is able to route traffic between the two subnets. |
Filter inbound and outbound VM network traffic | Creates a virtual network with front-end and back-end subnets. Inbound network traffic to the front-end subnet is limited to HTTP, HTTPS, and SSH. Outbound traffic to the internet from the back-end subnet is not permitted. |
Configure IPv4 + IPv6 dual stack virtual network with Basic Load Balancer | Deploys dual-stack (IPv4+IPv6) virtual network with two VMs and an Azure Basic Load Balancer with IPv4 and IPv6 public IP addresses. |
Configure IPv4 + IPv6 dual stack virtual network with Standard Load Balancer | Deploys dual-stack (IPv4+IPv6) virtual network with two VMs and an Azure Standard Load Balancer with IPv4 and IPv6 public IP addresses. |
Quickstart: Create and test a NAT gateway - Azure CLI | Create and validate a NAT gateway using a virtual machine. |
Feedback
Submit and view feedback for