backup in vm RRS feed

  • Question

  • can someone explain backup and recovery options in azure vm?i am new.

    thanks in advance.

    Friday, July 24, 2015 2:02 AM


  • Hi,

    Thanks for posting here.

    The options and tools to consider for backing up or recovering your Azure virtual machine (VM) depend on a few factors. Factors that affect your backup options include:

    • What the virtual machine runs. This means whether it runs Windows or Linux, as well as which applications it hosts.
    • The amount of downtime that’s acceptable. As of this writing, you need to back up and restore the system state and configuration of the VM and its data separately. You can back up the data of a virtual machine while it’s running, but backing up the system state requires the virtual machine to be stopped.

    Your options for recovery depend on what you backed up and how you did it.

    Keep in mind that Azure provides a certain level of protection built-in because of the redundancy it offers. The underlying virtual hard disks (.vhd files) used by the virtual machines are kept in Blob storage in an Azure storage account. Without additional configuration, data is protected by locally redundant storage, which maintains multiple replicas of data within a single region. If you configure geo-replication for the virtual machine, that geo-replication provides redundancy of your data across regions to help ensure access to your data in the event of a local disaster. Information about service-level agreements (SLAs) is available on the Azure Support site.

    For both Linux and Windows virtual machines, one option is to use Blob snapshots for the virtual machine data and use Export-AzureVM and Import-AzureVM to back up and restore the virtual machine configuration. However, the virtual machine must be stopped or shut down to use this option. It’s possible to use a script to automate the entire backup operation, including stopping and starting the virtual machine. For a description of this approach and link to a sample script, see Create Backups of Virtual Machines in Windows Azure by using PowerShell.

    For Windows virtual machines, the following options are also available:

    • Back up files and folders by using Azure Backup. To do this, you set up a backup vault, upload a certificate, and configure the backup agent in the guest OS. For instructions, see Configure Azure Backup to quickly and easily back-up Windows Server.
    • Back up files, folders and system state by using Windows Server Backup. To do this, you configure Windows Server Backup in the guest OS. Keep in mind that with this approach, the backup files reside within the virtual machine’s storage. To copy them out of the virtual machine, you could combine this with Azure Backup to create a backup set that has files, folders and system state stored outside of the virtual machine.

    Hopes the above information help!


    • Proposed as answer by Shreya Hajela Friday, July 24, 2015 4:44 AM
    • Marked as answer by Shreya Hajela Tuesday, July 28, 2015 7:01 AM
    Friday, July 24, 2015 4:44 AM