Can we attach custom image to existing virtual machine scaleset ( uniform )

sns 9,231 Reputation points
2023-08-02T07:51:26.7033333+00:00

Can we attach custom image to existing virtual machine scaleset , pLease note here scaleset here is uniform orchestration

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

1 answer

Sort by: Most helpful
  1. kobulloc-MSFT 26,131 Reputation points Microsoft Employee
    2023-08-02T17:22:01.57+00:00

    Hello, @sns !

    Can I use a custom image on an existing Uniform Orchestration Virtual Machine Scale Set?

    There are modifications that you can make to Uniform Orchestration Virtual Machine Scale Sets. It's possible to change the image that your scale set uses however there are some limitations with az vmss update (namely it only supports image upgrades that updates the minor version of an image, ex: Windows Server 1.0 to 1.1):

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

    Alternatively, you may want to change the image your scale set uses. For example, you may want to update or change a custom image used by your scale set. You can change the image your scale set uses by updating the image reference ID property. The image reference ID property is not part of a list, so you can directly modify this property with one of the following commands:

    az vmss update \
        --resource-group myResourceGroup \
        --name myScaleSet \
        --set virtualMachineProfile.storageProfile.imageReference.id=/subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myNewImage
    

    I hope this has been helpful! Your feedback is important so please take a moment to accept answers.

    If you still have questions, please let us know what is needed in the comments so the question can be answered. Thank you for helping to improve Microsoft Q&A!

    User's image