Azure CLI Samples for networking

The following table includes links to bash scripts built using the Azure CLI.

Script Description
Connectivity between Azure resources
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.
Load balancing and traffic direction
Load balance multiple websites on VMs Creates two VMs with multiple IP configurations, joined to an Azure Availability Set, accessible through an Azure Load Balancer.
Direct traffic across multiple regions for high application availability Creates two app service plans, two web apps, a traffic manager profile, and two traffic manager endpoints.