How to copy disk into storage account as blob block?

Gregorio Montaño 251 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.
3,524 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,186 questions
0 comments No comments
{count} votes

3 answers

Sort by: Most helpful
  1. David Haukeness 5 Reputation points
    2024-08-08T02:31:00.2633333+00:00

    I wrote a Powershell script to do this, hope this helps anyone in the future.

    https://github.com/haukened/AzCopyVHD

    1 person found this answer helpful.
    0 comments No comments

  2. Andreas Baumgarten 123.1K Reputation points MVP Volunteer Moderator
    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

  3. Gregorio Montaño 251 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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.