Azure Import Export - jasper-zanjani/azure GitHub Wiki

Notes

Import/Export service allows the physical shipment of disks to Azure for import. This data must be placed into blob or file storage.

  1. Procure 2.5-inch SATA or 3.5-inch HDD disks. SAS is not acceptable.
  2. Connect the disks to a Windows machine.
  3. Create a volume and encrypt it using BitLocker
  4. Install Azure Import/Export tool on the disks. This requires a Windows computer with .NET Framework and BitLocker. There are two versions:
    • Version 1 is recommended for blob storage
    • Version 2 is recommended for Files storage.

BlobList

Various flags in WAImportExport.exe allow an XML-format "blob list" file to be used to specify files, or as output.

Export all blobs in the storage account

<?xml version="1.0" encoding="utf-8"?>  
<BlobList>
<BlobPath>/</BlobPath>
</BlobList>

Export all blobs in the root container

<?xml version="1.0" encoding="utf-8"?>  
<BlobList>  
<BlobPath>/$root</BlobPath>
</BlobList>

Export blob "logo.bmp" in the root container

<?xml version="1.0" encoding="utf-8"?>  
<BlobList>  
<BlobPath>$root/logo.bmp</BlobPath>
</BlobList>

Export all blobs in any container that begins with "book"

<?xml version="1.0" encoding="utf-8"?>  
<BlobList>  
<BlobPath>/book</BlobPath>
</BlobList>

Export all blobs in container "music"

<?xml version="1.0" encoding="utf-8"?>  
<BlobList>  
<BlobPath>/music/</BlobPath>
</BlobList>

Export all blobs in container "music" that begin with prefix "love"

<?xml version="1.0" encoding="utf-8"?>  
<BlobList>  
<BlobPath>/music/love</BlobPath>
</BlobList>

WAImportExport.exe

Options |

  • /r:<RepairFile> is required

Tasks

Export data

Export data (Portal)

  1. From All Services open Import/Export Jobs
  2. Open Create Import/Export Job
  3. Select Basics tab
  4. Choose Export From Azure, specifying job name and resource group to contain the job
  5. Select Job Details tab
  6. Select which storage account to export from and choose blobs to export.
  7. Select Return Shipping Info
  8. Specify carrier information and address for disks to be shipped to
  9. Select Summary tab
  10. Click OK

Import data

Import data

  1. Install Azure Import/Export tool
  2. Prepare drives and copy data to drives. Specify destination storage account key, BitLocker key (available from Portal), and log directory, among other parameters, in the first session
WAImportExport.exe PrepImport /j:JournalFile /id:SessionId /logdir:LogDirectory /t:SourceDriveLetter /srcdir/SourceFolder /dstdir:DestinationPath
  1. Create an import job through the Portal

Create an import job (Portal)

  1. From All Services open Import/Export Jobs
  2. Open Create Import/Export Job
  3. Select Basics tab
  4. Select Import into Azure, specifying job name and resource group to contain the job
  5. Select Job Details tab
  6. Choose journal file created with the Import/Export Tool
  7. Select Return Shipping Info
  8. Specify carrier information and return address
  9. Select Summary tab
  10. Click OK
  11. Physically ship disks to Microsoft

Check disks required for selected blobs

WAImportExport.exe PreviewExport /sn:<Storage account name> /sk:<Storage account key> /ExportBlobListFile:<Path to XML blob list file> /DriveSize:<Size of drives used>
⚠️ **GitHub.com Fallback** ⚠️