How do I update my azure virtual machine scale sets from Redhat 8.4 to 8.10 and How to take the backup f virtual machine scale sets and restore proceedure

Abhishek _ 0 Reputation points
2024-08-13T06:57:59.4033333+00:00

How do I update my azure virtual machine scale sets from Redhat 8.4 to 8.10 and How to take the backup and snapshots of virtual machine scale sets and
if backup and snapshot can be taken for virtual machine scale sets how to restore the scale sets from backup

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

1 answer

Sort by: Most helpful
  1. deherman-MSFT 37,411 Reputation points Microsoft Employee
    2024-08-13T20:14:45.8633333+00:00

    @Abhishek _If you use Azure platform images, you can update the image by modifying the imageReference. Examples from the documentation here:

    Update-AzVmss -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet" -ImageReferenceVersion 16.04.201801090 az vmss update --resource-group myResourceGroup --name myScaleSet --set virtualMachineProfile.storageProfile.imageReference.version=16.04.201801090

    If you are using a custom image you will need to first update the OS to 8.10, see RHEL instructions. After updating the OS, create a new image. You can then update the VMSS to utilize this new image. 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:

    Update-AzVmss -ResourceGroupName "myResourceGroup" -VMScaleSetName "myScaleSet" -ImageReferenceId /subscriptions/{subscriptionID}/resourceGroups/myResourceGroup/providers/Microsoft.Compute/images/myNewImage

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

    Backups are made of the individual VM and not the VMSS itself. If you need to restore a VMSS you can create a new one and select one of the previous snapshots as the source.

    Hope this helps! Let me know if you have any questions or need further assistance.


    If you still have questions, please let us know in the "comments" and we would be happy to help you. Comment is the fastest way of notifying the experts.

    If the answer has been helpful, we appreciate hearing from you and would love to help others who may have the same question. Accepting answers helps increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you for helping to improve Microsoft Q&A!

    User's image


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.