generalizing the OS image to deploy to Azure VMSS

Amar-Azure-Practice 661 Reputation points
2022-02-22T17:37:05.123+00:00

Hi

I have a Azure VM , Configured IIS and deployed the ASP.net Web app on the IIS on the VM, we want to generalize the VM and get the golden image out of it and use this Golden image for VMSS deployment.

the golden image we extracted from VM will contains the app code that we deployed on the Azure VM?
If we use this Goldenimage file for VMSS, then no need to add additional deployment script to deploy the Asp.net web app?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,871 questions
{count} votes

Accepted answer
  1. srbhatta-MSFT 8,561 Reputation points Microsoft Employee
    2022-03-02T06:35:00.47+00:00

    Hello @Amar-Azure-Practice ,
    Thanks for reaching back.
    Based on your requirement, if you want to bring in new changes to the application frequently then you might want to use custom script extension to to deploy the updated version of your application to the VMSS instances.

    Hope this helps.

    Reference doc : tutorial-install-apps-cli

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

    Please don't forget to 179139-accept.png and 179181-upvote.png if you think my response was helpful.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Cristian SPIRIDON 4,476 Reputation points
    2022-02-23T09:39:28.887+00:00

    Hi @Amar-Azure-Practice ,

    Yes, it is possible to have a VM already installed with your application and then generalized for deployment in VMSS.

    More info about how to create it:
    https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/tutorial-use-custom-image-cli#create-and-configure-a-source-vm

    Hope this helps!

    0 comments No comments

  2. Amar-Azure-Practice 661 Reputation points
    2022-02-28T13:59:10.933+00:00

    Hi

    if we use the Images(Along with the application code), if we want to bring in any new changes to the application, How can we bring that.

    I have came across two options

    1. Using image file-- in this approach we generalize the base VM along with application code and use this Image file for the
      creation of the VMSS
                   2) Using custom extension script to deploy the application, we configure this custom extension script to deploy the application on the VMSS instances.
      

    please suggest me which is the easy and best option considering the application undergoes frequent changes.

    Thanks Advance for your answers


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.