QuestionQ186

VerifiedImplement and manage storage

You have an on-premises server that contains a folder named D:\Folder1.

You need to copy the contents of D:\Folder1 to the public container in an Azure Storage account named contosodata.

Which command should you run?

Explanation

To upload the contents of a local directory to Azure Blob Storage, AzCopy uses the azcopy copy command with the local folder as the source, the container URL as the destination, and --recursive to include all files and subfolders. Microsoft Learn documents azcopy copy '<local-directory-path>' 'https://<storage-account-name>.blob.core.windows.net/<container-name>' --recursive for uploading an entire directory. By contrast, az storage blob copy start and start-batch are blob-to-blob copy operations, not local-folder uploads.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!