Creating VM and then updating with softwares and again creating VM image from updated one

sns 8,866 Reputation points
2023-09-12T15:56:40.1833333+00:00

I got requirement to node VM to build agent image:

Here is the requirement description:

Create a VM using the BuildAgent2 image from TESTComputeGallery in Parrticualr subscription.

This VM should be created in particualar subnet

download an install NVM as outlined here from one of the link

Create a new VM image version from the updated VM

My plan is below:

  1. Create VM using BuildAgent 2 from TEST computer gallery
  2. download and install NVM
  3. Creating an new VM image from updated VM

I Have 2 below questions from step1 and step2 from my above plan, Please clarify:

  1. I saw Buildagent2 image from TESTCOMPUTERGALLERY, how to choose this particular image while creating VM?
  2. Related to 3rd step how do we create new image from updated VM

Please suggest, Thank you.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
5,933 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Olga Osinskaya - MSFT 4,396 Reputation points Microsoft Employee
    2023-09-12T18:29:04.9766667+00:00

    Hello sns,

    Welcome to MS Q&A forum.

    Let me help to clarify your questions:

    "I saw Buildagent2 image from TESTCOMPUTERGALLERY, how to choose this particular image while creating VM?" - just navigate to the Image Blade and click "Create VM" or if you are using the blade "Create a VM" click "See all images" and choose the image what you need to use under the "Other Items" on the left side.

    User's image

    User's image

    "Related to 3rd step how do we create new image from updated VM" - kindly review these detailed steps (Create an image of a VM in the portal) on how you can create an image from the already updated VM for the future reuse.


    Hope above answers your question and concern. Let me know if you need additional assistance. If the answer was helpful, please accept it and complete the quality survey so that others can find a solution.

    Olga Os.