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:
- Update the scale set template: Modify the template definition to include the new image version. In the
imageReference
of the scale setstorageProfile
, specify theid
of theMicrosoft.Compute/images
resource for the image version 1.0.4. - 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. - 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.