azure - 在 Shell 中使用 URI 将大文件从其他源复制到 Azure Blob

标签 azure azure-active-directory azure-functions

我需要使用 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/

相关文章:

c# - 在 ASP.NET Core 2.0 中使用 Azure Active Directory 身份验证从 Web 应用程序到 Web API

Azure API 管理 OAuth2 配置 - 创建授权服务和 ClientID/Secret

azure - Azure AD 应用程序客户端 key 的确切规范(允许/禁止的字符)是什么?

python - 当 "id"绑定(bind)点在 cosmosDB 集合中没有相应的项目时,用 python 编写的 Azure 函数有 500

c# - 我在 Azure Function Monitor 日志屏幕中看到条目。如何在 Application Insights 中找到它们?

c# - 如何使用 BlobTrigger 绑定(bind)到 Azure Function 中的 CloudBlockBlob?

c# - 如何从 Azure Blob 存储将文件下载到浏览器

powershell - Publish-AzureServiceProject 未更新云上的文件

azure - 在自定义政策中更改 azure ad b2c 的背景图像

azure - Microsoft Graph Powershell - Azure AD SAML 应用程序属性和声明未在门户中更新