Can we copy a file to a vhd file using AZcopy


  • Can I copy a file in my local machine to a Vhd in a container, If please provide the syntax.
    Will this work or it will overwrite my VHD with the text file:

    AzCopy /Source:D:\Dsk\  /Destination:  /Pattern:abc.txt

    Datta Sai Krishna

    Saturday, November 7, 2015 5:19 AM


  • Hi,

    Please note that your command line above is incorrect because you cannot specify a blob/file as destination. AzCopy only accepts directory/container as the source & destination.

    AzCopy doesn't have the ability to edit file structure inside a VHD, instead it just regards a VHD as a Page Blob. Therefore, even if your command line is correct, it will just overwrite your VHD with the text file.

    Best Regards,

    Zhaoxing Lu

    Tuesday, November 10, 2015 1:35 AM

All replies