The Azure Code Samples are currently available in English

Backup Azure Virtual Machine Disks with Incremental Snapshots

Michael Hauss tarafından
Son güncelleştirme tarihi: 7.06.2018
GitHub üzerinde düzenleyin

In this sample, we demonstrate the basics of how to maintain backups of virtual machine disks using snapshots. You can use this methodology when you choose not to use Azure Backup and Recovery Service, and wish to create a custom backup strategy for your virtual machine disks.

If you don't have a Microsoft Azure subscription you can get a FREE trial account here.

Running this sample

This sample can be run using either the Azure Storage Emulator that installs as part of the Azure SDK (In Windows only) - or by updating the storage connection strings in the app.config file.

To run the sample using the Storage Emulator (Azure SDK):

  1. Download and Install the Azure Storage Emulator here.
  2. Start the Azure Storage Emulator (once only) by pressing the Start button or the Windows key and searching for it by typing "Azure Storage Emulator". Select it from the list of applications to start it.
  3. Set breakpoints and run the project using F10.

To run the sample using the Storage Service

  1. Open the app.config file and comment out the connection string for the emulator (UseDevelopmentStorage=True) and uncomment the connection string for the storage service (AccountName=[]...)
  2. Create a two Storage Accounts through the Azure Portal (one primary, one for backup)
  3. Provide your [AccountName] and [AccountKey] in the App.Config file for each of the keys: "StorageConnectionString" and "BackupStorageConnectionString".
  4. Set breakpoints and run the project using F10.

More information

Şu kaynaktan daha fazla örnek: Michael Hauss