Making image to be used by scaleset

Varma 1,140 Reputation points
2024-03-19T14:15:25.14+00:00

I have image in compute gallery and I want to update that image to scaleset , what is the way to do it, I want that image to be used by scale set, Please suggest how we can achive that

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,146 questions
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. Jackson Martins 9,646 Reputation points MVP
    2024-03-19T14:45:17.03+00:00

    Hi @Varma

    You would use the az vmss update command to change the image reference in your scale set model.

    For example:

    az vmss update \
      --resource-group myResourceGroup \
      --name myScaleSet \
      --set virtualMachineProfile.storageProfile.imageReference.id="/subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Compute/galleries/<galleryName>/images/<imageName>/versions/<imageVersion>"
    

    Just make sure the image you want to use is already created and available in your Compute Gallery.

    References:
    https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-upgrade-scale-set

    https://learn.microsoft.com/en-us/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-automatic-upgrade

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--


0 additional answers

Sort by: Most helpful