On Linux qemu-nbd can be used to access disk images in different formats as if they were block devices. For example, to mount a VHD file run To unmount and disconnect the nbd device run
Currently the Fedora projects provides cloud images as qcow2 and raw disk files. Microsoft’s Azure however only supports VHD files. Fortunately qemu-img can convert between those formats: Note that the subformat options fixed and force_size are required for Azure to be able to use the disk image since Azure only supports fixed sized disks.