我需要使用 Shell/Cloud Shell 将大文件 (100 GB) 从其他源复制到 Azure Blob。我有来自互联网的文件 URI,但我不知道进程。由于 5GB 大小限制,我目前使用 wget 到 cloud shell 然后上传到 blob 的方法不起作用。我知道要下载到本地系统,然后上传到 blob,但我正在寻找一个强大的解决方案。
最佳答案
您实际上不必下载这个大文件并重新上传。您可以使用 Azure Copy Blob
功能从任何公开可用的 URL 创建 Blob。为此,您需要使用 az storage blob copy start
命令。
这是一个相同的示例:
az storage blob copy start --account-key <your-account-key> --account-name <your-storage-account-name> --destination-blob <your-blob-name> --destination-container <your-blob-container-name> --source-uri <URI of the large file>
关于azure - 在 Shell 中使用 URI 将大文件从其他源复制到 Azure Blob,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59208235/