Forum Discussion

godwin daniel's avatar
godwin daniel
Brass Contributor
Aug 22, 2018
Solved

How to Modify application hosted by virtual machine scale sets

This is a hypothetical question as I am just doing my prep for azure cert. Suppose I have a web application front end hosted  on a scale set, I set the minimum number of machines to 2 which gives me vm0 and vm1, which machine will I need to jump on make changes to the application frond end ? 

  • Also, it is recommended that the App deploy/Update is managed by Azure Custom Scriptr Extension. By updating the CSE url, all the VMs in the Scale Set will be automatically update to the latest according to update policy.

     

    https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-cli

2 Replies

  • Huiyu Wang's avatar
    Huiyu Wang
    Copper Contributor

    Also, it is recommended that the App deploy/Update is managed by Azure Custom Scriptr Extension. By updating the CSE url, all the VMs in the Scale Set will be automatically update to the latest according to update policy.

     

    https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-install-apps-cli

  • Huiyu Wang's avatar
    Huiyu Wang
    Copper Contributor

    Hi, the VMSS resource property upgradePolicy can be set to either the value manual or automatic. If automatic, when an operating system update is available all instances are updated at the same time,  which causes downtime. If the property is set to manual, it is up to you to programmatically step through and update each instance using PowerShell. Check the details below:

     

    https://docs.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set

     

    Henry

Resources