diff --git a/azure/templates/marketplace-ha/mainTemplate.json b/azure/templates/marketplace-ha/mainTemplate.json index b267a808..0f2399c5 100644 --- a/azure/templates/marketplace-ha/mainTemplate.json +++ b/azure/templates/marketplace-ha/mainTemplate.json @@ -633,7 +633,7 @@ "name": "[variables('ipPrefixNewName')]", "location": "[variables('location')]", "properties": { - "prefixLength": "30", + "prefixLength": "[if(greater(variables('VIPs_Number'), 5), '28', if(greater(variables('VIPs_Number'), 1), '29', '30'))]", "publicIPAddressVersion": "IPv4" }, "sku": {