Using image in scale set present in another scale set and testing it

sns 9,241 Reputation points
2023-12-07T18:59:43.5433333+00:00

I have build image in build image gallery in Azure. I have scale set in Azure which is being used as self hosted agent which is using image 1.0.1 from image gallery in the azure. it has been there since 6 months and all builds are working fine with the image 1.0.1.

In Build image gallery there are 2 images 1.0.1 and 1.0.4 , and this image 1.0.4 newly created after necessart softwares installations are done.

1.04 image is newly created image

do I need to create separate scaleset? to test image 1.0.4

which option I should choose?

How to create new virtual machine scaleset with image (1.0.4) image present in the another scaleset?

Please clarify

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

1 answer

Sort by: Most helpful
  1. ekpathak 20 Reputation points Microsoft Employee
    2023-12-08T06:51:35.4666667+00:00

    Hello sns, Welcome to Microsoft Q&A and Thanks for posting your query here.

    To create a new virtual machine scale set with the image 1.0.4 from the build image gallery, you don't need to create a separate scale set. You can update the existing scale set to use the new image.

    Here are the steps to create a new virtual machine scale set with the image 1.0.4:

    1. Update the scale set template: Modify the template definition to include the new image version. In the imageReference of the scale set storageProfile, specify the id of the Microsoft.Compute/images resource for the image version 1.0.4.
    2. Update the scale set resource: In the scale set resource, add a dependsOn clause referring to the new image version to ensure that the image gets created before the scale set tries to deploy from it.
    3. Deploy the updated scale set template: Deploy the updated scale set template to create the new virtual machine scale set with the image 1.0.4.

    By following these steps, you can create a new virtual machine scale set using the image 1.0.4 from the build image gallery without the need to create a separate scale set.

    Please note that it's important to test the new image thoroughly before deploying it to production.

    Let us know if you have any further queries. I’m happy to assist you further.

    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.


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.