0

I created an azure-vm-scale-set through the portal and attached a single NIC. How can I add IP Configurations(secondery IP address)to that NIC?

alonabr11
  • 1
  • 1
  • 4

1 Answers1

0

You can add the IP configuration via the Azure CLI command to the NIC:

az vmss update --resource-group groupName --name vmssName --add virtualMachineProfile.networkProfile.networkInterfaceConfigurations[0].ipConfigurations '{"name": "config-2", "primary": false, "privateIpAddressVersion": "IPv4", "publicIpAddressConfiguration": null, "subnet": {"id": "resourceId", "resourceGroup": "groupName"}}'

Then upgrade all the instances, this will apply the new configuration to the instances. Then you need to manually update the network setting inside the instance following the steps Add IP addresses to a VM operating system.

Charles Xu
  • 29,862
  • 2
  • 22
  • 39