I wrote a Powershell script to do this, hope this helps anyone in the future.
How to copy disk into storage account as blob block?
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:
- Export Disk by downloading the VHD file
- 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 Blob Storage
3 answers
Sort by: Most helpful
-
-
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 -
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 BlockBlobRegards,