Azure Import Export - jasper-zanjani/azure GitHub Wiki
Import/Export service allows the physical shipment of disks to Azure for import. This data must be placed into blob or file storage.
- Procure 2.5-inch SATA or 3.5-inch HDD disks. SAS is not acceptable.
- Connect the disks to a Windows machine.
- Create a volume and encrypt it using BitLocker
- 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.
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>
Options |
-
/r:<RepairFile>
is required
Export data (Portal)
- From All Services open Import/Export Jobs
- Open Create Import/Export Job
- Select Basics tab
- Choose Export From Azure, specifying job name and resource group to contain the job
- Select Job Details tab
- Select which storage account to export from and choose blobs to export.
- Select Return Shipping Info
- Specify carrier information and address for disks to be shipped to
- Select Summary tab
- Click OK
Import data
- Install Azure Import/Export tool
- 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
- Create an import job through the Portal
Create an import job (Portal)
- From All Services open Import/Export Jobs
- Open Create Import/Export Job
- Select Basics tab
- Select Import into Azure, specifying job name and resource group to contain the job
- Select Job Details tab
- Choose journal file created with the Import/Export Tool
- Select Return Shipping Info
- Specify carrier information and return address
- Select Summary tab
- Click OK
- Physically ship disks to Microsoft
WAImportExport.exe PreviewExport /sn:<Storage account name> /sk:<Storage account key> /ExportBlobListFile:<Path to XML blob list file> /DriveSize:<Size of drives used>