How to copy disk into storage account as blob block?

Gregorio Montaño 246 Reputation points
2022-11-04T02:57:11.777+00:00

Hi,

I want to create a backup of a disk as a Block Blob (not a Page blob) then Archive this blob.
Currently, the steps I do are:

  1. Export Disk by downloading the VHD file
  2. Upload the VHD file as a block blob into the storage account

I used this instead of Recovery Services Vault for our "Decommissioned Disks" as it is way much cheaper.

Is there a way to directly upload the blob directly to storage account without downloading the VHD file? Something like the command below or similar:
azcopy cp <SAS URI from the export disk> <URL for storage account>

Thanks for any inputs.

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,822 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,547 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Andreas Baumgarten 99,551 Reputation points MVP
    2022-11-04T07:24:08.483+00:00

    Hi @Gregorio Montaño ,

    maybe this is helpful to get started: https://learn.microsoft.com/en-us/azure/virtual-machines/scripts/copy-managed-disks-vhd-to-storage-account

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Andreas Baumgarten

    0 comments No comments

  2. Gregorio Montaño 246 Reputation points
    2022-11-17T06:17:42.337+00:00

    Thank you for sharing links @Andreas Baumgarten .
    I was able to make it work using ./azcopy cp --blob-type BlockBlob

    Regards,

    0 comments No comments