az storage blob upload-batch -d "$web" -s
When I run this command I encounter an error " argument –source/-s: expected one argument "
What would I add here? For the source how can I get the path-to-directory ?
I have tried this command "az storage blob upload-batch -d "$web" -s /home/cloud/index.html"
2
Answers
I agree with @Jayendran, You can use this command:
az storage blob upload-batch -d mycontainer --account-name mystorageaccount --account-key 00000000 -s <path-to-directory>
make sure to use you are mentioning the file path of the file in quote
like this `"/home/cloud/index.html"
az storage blob upload-batch
command is used to upload multiple files to Azure blob storage.Command:
You need to mention the path up to the directory only in the source parameter.
Output:
In my environment, the above command was executed and uploaded multiple files to the Azure blob storage.
Portal:
If you need to upload a particular blob, you can simply use the below command.
Command and output:
Portal: