Not sure if anyone has interest on this.
After reading the doc about Virtual Machine Scale set(VMSS) and I have tried to deploy the quickstart template. It runs pretty well. But I have a question: Do I have to deploy my app to every one of the instances?
For example, I want to deploy an IIS server hosting website. Do I have to deploy it to every VM auto scaled by VMSS? Or it is similar to Azure Web App service, which I only have to deploy once and the service will do it for me when auto scaling?
In that quickstart template, an installation script is triggered when deploying the template. Do I have to do the same?
"extensionProfile": {
"extensions": [
{
"name": "lapextension",
"properties": {
"publisher": "Microsoft.OSTCExtensions",
"type": "CustomScriptForLinux",
"typeHandlerVersion": "1.3",
"autoUpgradeMinorVersion": true,
"settings": {
"fileUris": [
"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vmss-lapstack-autoscale/install_lap.sh",
"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vmss-lapstack-autoscale/index.php",
"https://raw.githubusercontent.com/Azure/azure-quickstart-templates/master/201-vmss-lapstack-autoscale/do_work.php"
],
"commandToExecute": "bash install_lap.sh"
}
}
}