【发布时间】:2019-07-05 03:34:00
【问题描述】:
我想自动将文件传输到我的 Azure 存储中。我正在使用以下脚本。
az storage account keys list -g ****V2 -n *****estx
az storage blob upload-batch --source $(System.DefaultWorkingDirectory)/_ClientWeb-Build-CI/ShellArtifact/out/build --destination `$web --account-key *****agnqUDzwNe/gOIAzsQ== --account-name *****estx
这可行,但我不想添加--acount-key。当我尝试使用 az storage account keys list 检索帐户密钥时,我得到:
请运行“az login”来设置帐户。
我正在使用 Azure PowerShell(预览版)任务版本 4。
如何用生成的内容替换我当前的帐户密钥?
【问题讨论】:
-
使用 az cli 任务而不是 powershell 任务。
标签: azure azure-devops