Search code examples
azureblobazure-storageazure-blob-storageazure-virtual-machine

Mount a Blob Storage as Drive on VM


I need to somehow uploads files and access them on the VM, how can I do this?

Specifically, how can I get access to files I've uploaded as a blob from within the VM?

I tried to access a file that I've uploaded as a blob onto an Azure Virtual Machine, but I couldn't find it anywhere on VM.

Can I simply mount a blob storage as a drive on my VM?

I am trying to avoid the round trip time of getting it from the actual blob storage and downloading it to the VM.


Solution

  • You can't mount blob storage as a drive. If you have a VHD in blob storage you can mount that and attach it to a VM, but as far as I know you can't mount blob storage.

    (The one potential exception is with Azure's HDFS implementation which runs on a Linux machine and uses blob storage as the backing store for HDFS.)

    If you've uploaded a file to blob storage, you can simply use the Azure APIs to download the file.

    Get started with Azure Blob storage using .NET : Download Blobs

    There is an example on how to download the blob.