Search code examples
azureazure-vm-scale-set

Azure VMSS without a public ip


I am trying to create a azure virtual machine scale set (VMSS) without a public ip for rolling upgrade policy (zero downtime). All the examples I find requires a configuration with a public IP. Even the wizard on azure forces to create a public ip. Can a VMSS with rolling upgrade be created without a public ip?

I can create a manual upgrade_policy VMSS without a loadbalancer or healthprobe without public ips. But I am unable to create a 'Rolling' upgrade_policy vmss without public ip.


Solution

  • Q: Can a VMSS be created without a public ip? if so how?

    Why not? When you create the VMSS in the Azure portal like the screenshot below, you do not need to select to use a load balancer, then it will create a VMSS without any public IP.

    enter image description here

    Update:

    Take a look at the screenshot below:

    Rolling upgrade policy

    enter image description here

    VMSS configuration

    enter image description here

    As you see, the VMSS still does not have the public IP, but the rolling upgrade policy is set as you want. You just need to set the monitor application health extension:

    enter image description here