publici-p for VMSS

Learner 1 Reputation point
2021-09-24T11:03:42.94+00:00

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.
405 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SRIJIT-BOSE-MSFT 4,336 Reputation points Microsoft Employee
    2021-09-24T15:52:08.747+00:00

    @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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.