Deploy a Linux VMSS wth primary/secondary architecture

Azure Public Test Date Azure Public Test Result

Azure US Gov Last Test Date Azure US Gov Last Test Result

Best Practice Check Cred Scan Check

Deploy To Azure Deploy To Azure US Gov



This template allows you to deploy a VM Scale Set of Linux VMs and create a new virtual network at the same time. These VMs have a custom script extension for customization and are behind a load balancer with NAT rules for SSH connections. This allows to specify the master node number and data node number, adapt to any primary / secondary architecture

Using new features

To enable Accelerated Networking feature ( SR-IOV ) which is a free feature, using the following example :

In network profile of VMSS , set "enableAcceleratedNetworking" to true, to have more information, please go to

If availability zone is available in your region, adding the following in your template to improve the availability of your VMSS :

      "zones": [

Note that your Load Balancer should be STANDARD tier as well as your public IP ( if you're using it ), check here to know more about it :

More information at

Tags: Microsoft.Network/virtualNetworks, Microsoft.Network/publicIPAddresses, Microsoft.Network/loadBalancers, Microsoft.Compute/virtualMachineScaleSets, Microsoft.Compute/virtualMachines/extensions, CustomScriptForLinux