Compartilhar via


Creating an Export Job

 

Creating an export job for the Microsoft Azure Import/Export service using the REST API involves the following steps:

  • Selecting the blobs to export.

  • Obtaining a shipping location.

  • Creating the export job.

  • Shipping your empty drives to Microsoft via a supported carrier service.

  • Updating the export job with the package information.

  • Receiving the drives back from Microsoft.

See Using the Windows Azure Import/Export Service to Transfer Data to Blob Storage for an overview of the Import/Export service and a tutorial that demonstrates how to use the Microsoft Azure classic portal to create and manage import and export jobs.

Selecting Blobs to Export

To create an export job, you will need to provide a list of blobs that you want to export from your storage account. There are a few ways to select blobs to be exported:

  • You can use a relative blob path to select a single blob and all of its snapshots.

  • You can use a relative blob path to select a single blob excluding its snapshots.

  • You can use a relative blob path and a snapshot time to select a single snapshot.

  • You can use a blob prefix to select all blobs and snapshots with the given prefix.

  • You can export all blobs and snapshots in the storage account.

For more information about specifying blobs to export, see the Put Job operation.

Obtaining Your Shipping Location

Before creating an export job, you need to obtain a shipping location name and address by calling the List Locations operation. List Locations will return a list of locations and their mailing addresses based on the location of your storage account. You can select a location from the returned list and ship your hard drives to that address. Note that List Locations may return only one possible shipping location.

Follow the steps below to obtain the shipping location:

  • Identify the name of the location of your storage account. This value can be found under the Location field on the storage account’s Dashboard in the classic portal or queried for by using the service management API operation Get Storage Account Properties.

  • Retrieve a list of locations that are available to process this storage account by calling the List Locations operation with the query parameter originlocation=<location-name>. The list returned will contain one or more locations to which you can ship your drives.

  • Select a location from the returned list and note its name and mailing address.

Note

For the preview release, List Locations will return one location, or none. If no locations are returned, the service is not yet available for your storage account.

Creating the Export Job

To create the export job, call the Put Job operation. You will need to provide the following information:

  • A name for the job.

  • The storage account name.

  • The storage account key.

  • The shipping location name, obtained in the previous step.

  • A job type (Export).

  • The return address where the drives should be sent after the export job has completed.

  • The list of blobs (or blob prefixes) to be exported.

Shipping Your Drives

Next, use the Azure Import/Export tool to determine the number of drives you need to send, based on the blobs you have selected to be exported and the drive size. See the Azure Import/Export Tool Reference for details.

Package the drives in a single package and ship them to the address obtained in the earlier step. Note the tracking number of your package for the next step.

Note

You must ship your drives via a supported carrier service, which will provide a tracking number for your package.

Updating the Export Job with Your Package Information

After you have your tracking number, call the Update Job Properties operation to updated the carrier name and tracking number for the job. You can optionally specify the number of drives, the return address, and the shipping date as well.

Receiving the Package

After your export job has been processed, your drives will be returned to you with your encrypted data. You can retrieve the BitLocker key for each of the drives by calling the Get Job operation. You can then unlock the drive using the key. The drive manifest file on each drive contains the list of files on the drive, as well as the original blob address for each file.

See Also

Using the Azure Import/Export Service REST API