Search code examples
azureazcopy

How to specify source location in azcopy for a folder under root of my website


I have a website on azure. Let's say the website url on azure is https://example.com There is a folder under root i.e. ~/imgs for this website to store images uploaded by users.

Can I use https://example.com/imgs instead of C:\myDirectory in command below?

I looked up the docs for azcopy v10 online (https://learn.microsoft.com/en-us/azure/storage/common/storage-use-azcopy-blobs), but could not find any example where source location is specified using a web url.

azcopy copy 'C:\myDirectory' 'https://mystorageaccount.dfs.core.windows.net/mycontainer' --recursive

Solution

  • Can I use https://example.com/imgs instead of C:\myDirectory in command below?

    Simple answer is No. azcopy utility does not have support for enumerating contents of a folder on a remote web server.