none
Azure VM restore - availability set not "restored" RRS feed

  • Question

  • Hello everybody,

    I've been attending the MS20533c course but no material seems to mention it and the trainer doesn't know it.

    We've been backing up the VMs in order to understand the restore process. The VM I restored is a Windows VM member of an availability set together with other Vmachines of the same type.

    The VM, storage account and the resource group are all located in the same region: "West EU" but when I restore the VM, this is properly restored but it is not member of the availability set anymore.
    Now, I'd actually need the machine to be member of the availability set to have the Azure sla of 99,95% of availability respected but I am not able to do it, event trying to add it later in, the message reads:

    "The availability set can only be configured when creating a virtual machine. You must recreate the virtual machine to move it in or out of an availability set."

    Accordingly to this article I should be able to do it instead: https://azure.microsoft.com/en-us/documentation/articles/virtual-machines-windows-classic-configure-availability/

    it would be rwally sad not to be able to restore tha availability set settings especially when the VMs I'll be working on are production machines.

    Can you please explain how it actually works?

    many thanks for your help

    Stefano




    Thursday, July 21, 2016 8:02 AM

Answers

  • Hi,

    Thank you for posting here!

    To add an ARM VM to existing availability set option is not yet available in Azure portal.

    Please refer below link to Add an ARM VM to an Availability Set using PowerShell:

    https://gallery.technet.microsoft.com/Set-Azure-Resource-Manager-f7509ec4

    Regards,

    Vikranth S.

    Thursday, July 21, 2016 4:33 PM
  • Hi Stefano

    Today, portal restored VMs won't get restored to Availability Set present at the time of backup. Unfortunately you can't add a VM restored without Availability set to an availability set from portal too.

    here are the options:

    1. Use Azure Backup ARM PowerShell to restore disks and then you can use those disks to create a VM using PowerShell and during VM creation process you have the complete flexibility to choose the config you want.

    2. Restore from portal and use PowerShell as mentioned by Vikrant to add VM to availability set.

    Having said that, your feedback is taken and we will improve the experience.

     


    Regards, Trinadh [MSFT] This posting is provided AS IS with no warranties, and confers no rights. If you found the reply helpful, please MARK IT AS ANSWER. Looking for source of information for DPM? http://blogs.technet.com/b/dpm/ http://technet.microsoft.com/en-in/library/hh758173.aspx

    Thursday, July 21, 2016 5:42 PM

All replies

  • Hi,

    Thank you for posting here!

    To add an ARM VM to existing availability set option is not yet available in Azure portal.

    Please refer below link to Add an ARM VM to an Availability Set using PowerShell:

    https://gallery.technet.microsoft.com/Set-Azure-Resource-Manager-f7509ec4

    Regards,

    Vikranth S.

    Thursday, July 21, 2016 4:33 PM
  • Hi Stefano

    Today, portal restored VMs won't get restored to Availability Set present at the time of backup. Unfortunately you can't add a VM restored without Availability set to an availability set from portal too.

    here are the options:

    1. Use Azure Backup ARM PowerShell to restore disks and then you can use those disks to create a VM using PowerShell and during VM creation process you have the complete flexibility to choose the config you want.

    2. Restore from portal and use PowerShell as mentioned by Vikrant to add VM to availability set.

    Having said that, your feedback is taken and we will improve the experience.

     


    Regards, Trinadh [MSFT] This posting is provided AS IS with no warranties, and confers no rights. If you found the reply helpful, please MARK IT AS ANSWER. Looking for source of information for DPM? http://blogs.technet.com/b/dpm/ http://technet.microsoft.com/en-in/library/hh758173.aspx

    Thursday, July 21, 2016 5:42 PM
  • Hi Vikranth,

    thank you for your answer! I'm trying the script you suggested right now. In a couple of hours I might be able to tell you if it was successful.

    Many thanks for your help

    Monday, July 25, 2016 12:59 PM
  • Thank you Trinadhk,

    I'll let you know in a while if the script worked.

    many thanks

    Monday, July 25, 2016 1:00 PM
  • Thank you Trinadhk,

    I'll let you know in a while if the script worked.

    many thanks


    Did it work?
    Thursday, March 15, 2018 3:54 AM
  • Hi there, I'm trying to follow the powershelgl script but powershelgl says this script is not digitally signed and don't allowed me to proceed. Can anyone help me on it?

    Thanks!
    Tuesday, September 10, 2019 7:54 PM
  • This should help - https://docs.microsoft.com/en-us/azure/virtual-machines/windows/change-availability-set not the exact script but could be useful creating a script.
    Monday, September 16, 2019 12:17 PM
    Moderator