@kokioji
Welcome to Microsoft Q&A and thank you for posting your question here!!
To attach network interface that have a public IP address, by default there will be allocated public-ip address to VM. You can create a scale set with configurable virtual machine domain names using below information as a sample JSON code:
"networkProfile": {
"networkInterfaceConfigurations": [
{
"name": "nic1",
"properties": {
"primary": true,
"ipConfigurations": [
{
"name": "ip1",
"properties": {
"subnet": {
"id": "[concat('/subscriptions/', subscription().subscriptionId,'/resourceGroups/', resourceGroup().name, '/providers/Microsoft.Network/virtualNetworks/', variables('vnetName'), '/subnets/subnet1')]"
},
"publicIPAddressconfiguration": {
"name": "publicip",
"properties": {
"idleTimeoutInMinutes": 10,
"dnsSettings": {
"domainNameLabel": "[parameters('vmssDnsName')]"
}
}
}
}
}
]
}
}
Also, you can create a scale set with public IP per virtual machine with following JSON sample code.
"publicIpAddressConfiguration": {
"name": "pub1",
"sku": {
"name": "Standard"
},
"properties": {
"idleTimeoutInMinutes": 15
}
}
Likewise, you can configure multiple IP address per NIC.
Have a good success in your configurations and let me know if this information help you or you need more details.
Cheers,
Sina