英文:
Upload all the contents of a directory to the storage account container
问题
I have the following structure
mf
├── dir1
│ └── file1
├── file1
├── file2
├── file3
├── file4
└── file5
Is it possible to upload only the content that is inside the mf folder by az cli commands to a storage account container?
英文:
I have the following structure
mf
├── dir1
│   └── file1
├── file1
├── file2
├── file3
├── file4
└── file5
Is it possible to upload only the content that is inside the mf folder by az cli commands to a storage account container?
答案1
得分: 1
以下是翻译好的部分:
我在我的环境中重现了并获得了如下的预期结果,并按照Microsoft文档进行了操作:
首先,我有:
然后使用了:
az storage blob upload-batch --destination "容器名称" --account-name "rithwik" --source "C:\Users\Downloads\mf"
上传后:
如果您想要与mf
相同的结构:
az storage blob upload-batch --destination "rithwik" --account-name "rithwik" --destination-path mf --source "C:\Users\Downloads\mf"
在Azure门户中:
在mf
内:
在dir1
内:
英文:
I have reproduced in my environment and got expected results as below and I followed Microsoft-Document:
Firstly, I have :
Then used :
az storage blob upload-batch --destination "name of container" --account-name "rithwik" --source "C:\Users\Downloads\mf"
After Uploading:
If you want it in same structure with mf :
az storage blob upload-batch --destination "rithwik" --account-name "rithwik" --destination-path mf --source "C:\Users\Downloads\mf"
In Azure Portal:
Inside mf:
Inside dir1:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论