多平台将文件从 Azure 管道复制到 Azure Blob 存储

Multi-platform copy files to Azure Blob storage from Azure pipelines

我想将构建结果从我的 Azure 发布管道复制到 Azure blob 存储。 目前我使用 AzureFileCopy@4,当我使用 Windows 代理构建时它工作正常。但它不支持 Linux 或 MacOS,因为我收到此错误:

##[error]The current operating system is not capable of running this task. That typically means the task was written for Windows only. For example, written for Windows Desktop PowerShell.

如何制作适用于多平台的 Blob 存储文件复制任务?

使用 Azure CLI 任务 运行“az storage blob”命令