VMSS with Public IP Prefix

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

Bicep Version

Deploy To Azure Deploy To Azure US Gov Visualize

This template deploys a Virtual Machine Scale Set with Public IP Prefix.

Parameters + Tips

Make sure to replace the parameters with your own information. You can configure the VM SKU for the VMSS and the public IP prefix length as you desire. Be aware of naming conventions and restrictions - HTTP 400 and authentication errors encountered during deployment may be due to issues with your VMSS's name.

Deployed Resources


  • Public IP Prefix
  • Virtual Network
  • Public IP Address
  • Load Balancer


  • Virtual Machine Scale Set


You must have an existing resource group.

Deployment steps

You can click the "deploy to Azure" button at the beginning of this document or follow the instructions for command line deployment using the scripts in the root of this repo.

Tags: VMSS, public ip prefix, virtual machine scale set, Microsoft.Network/virtualNetworks, Microsoft.Network/publicIPPrefixes, Microsoft.Network/publicIPAddresses, Microsoft.Network/loadBalancers, Microsoft.Compute/virtualMachineScaleSets