I want to replace my blob storage with the ADLS Gen 2 functionality in Azure. Point is, I upload a batch of files in a build pipeline with the following command to a certain container in Blob:
az storage blob upload-batch \
--destination "storage-container-files" \
--account-name "accountname" \
--source "./files"
This works perfectly fine. Now I want to do the same thing but then to Gen2 datalake, for which I have to use the az storage blob ....
command. However I cannot find something similar to 'upload-batch', only single file upload commands. I would like not having to loop in the yaml or in a Python script.
Is there any simple way to batch upload like I could with blob?
CodePudding user response:
We don't have any cmdlet to upload a batch of file (set of files) for ADLS gen2 Account.
We have az storage fs file upload
cmdlet to upload a single file only.I would suggest you use
And successfully:
Refer to this:
Upload files or subdirectories to a directory in ADLS Gen2 file system.