publici-p for VMSS

Learner 1 Reputation point

When i create a VMSS using existing LB it can't create public-ip for intances in the VMSS. how do i create public-ip for instances in VMSS to access it?

Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
363 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SRIJIT-BOSE-MSFT 4,331 Reputation points Microsoft Employee

    @Learner , Thank you for your question.

    To create a scale set that assigns a public IP address to each virtual machine with the CLI, add the --public-ip-per-vm parameter to the az vmss create command.

    To create a scale set using an Azure template, make sure the API version of the Microsoft.Compute/virtualMachineScaleSets resource is at least 2017-03-30, and add a publicIpAddressConfiguration JSON property to the scale set ipConfigurations section. For example:

    "publicIpAddressConfiguration": {  
        "name": "pub1",  
        "properties": {  
          "idleTimeoutInMinutes": 15  

    Example template: vmss-public-ip-linux

    For more information please check out this section.

    Hope this helps.

    Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.

    0 comments No comments