Azure Networking Reference

Introduction

This reference provides detailed information about Azure networking services, their APIs, configuration options, and best practices.

Virtual Network (VNet)

A Virtual Network is the fundamental building block for private network connectivity in Azure. Use the following API to manage VNets:

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{vnetName}?api-version=2023-09-01
PropertyTypeDescription
addressSpaceArray<string>CIDR blocks for the VNet, e.g., 10.0.0.0/16.
subnetsArray<Subnet>List of subnets within the VNet.
dhcpOptionsDhcpOptionsCustom DNS server settings.

Load Balancer

Azure Load Balancer distributes inbound traffic across multiple virtual machines. Example request:

POST https://management.azure.com/subscriptions/{subId}/resourceGroups/{rg}/providers/Microsoft.Network/loadBalancers/{lbName}?api-version=2023-09-01

Key attributes include frontend IP configurations, backend address pools, and health probes.

VPN Gateway

VPN Gateway enables secure site-to-site connectivity. Use the following JSON schema for deployment:

{
  "location": "eastus",
  "properties": {
    "sku": { "name": "VpnGw1" },
    "gatewayType": "Vpn",
    "vpnType": "RouteBased",
    "ipConfigurations": [ { "name": "vnetGatewayConfig", "properties": { "subnet": { "id": "/subscriptions/.../subnets/GatewaySubnet" }, "publicIpAddress": { "id": "/subscriptions/.../publicIPAddresses/gatewayIP" } } } ]
  }
}