VM scale set application update

Jalal Feghhi 21 Reputation points
2021-04-19T22:11:47.157+00:00

I just created a vm scale set and am not clear how to install my application. Before, I had only one vm, I would log into it, publish my app using VS, and then use IIS to release the app and go live. Now with the VMSS, should I do the same? Log into the first instance, build and release the app? If so, how do I apply the change to the other VMs? Any help will be appreciated. I did look into the shared image gallery, but my scale set has only a few instances and I am looking for a simple solution.

Thanks

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

Accepted answer
  1. Olga Os - MSFT 5,831 Reputation points Microsoft Employee
    2021-04-20T01:34:56.38+00:00

    Hello @Jalal Feghhi ,

    To run applications on virtual machine (VM) instances in a scale set, you first need to install the application components and required files. This article introduces ways to build a custom VM image for instances in a scale set, or automatically run install scripts on existing VM instances. You also can find how to manage application or OS updates across a scale set.

    There is another great resource to learn how to build a scalable application with virtual machine scale sets. There you could find exercise steps how to install and update applications in virtual machine scale sets.

    One more resource for you: "How to create a Virtual Machine Scale Set with Visual Studio". Once you've successfully deployed Virtual Machine Scale Sets through Visual Studio, you can further customize your project to suit your application requirements. For example, configure autoscale by adding an Insights resource. You could add infrastructure to your template, such as standalone virtual machines, or deploy applications using the custom script extension. Good example templates can be found in the Azure Quickstart Templates GitHub repository. Search for vmss.

    -------------------------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards,
    Olga

    0 comments No comments

0 additional answers

Sort by: Most helpful