[英]Running az cli command in Azure DevOps
我想自動將文件傳輸到我的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
,但是我不想添加--acount-key
。 當我嘗試通過使用az storage account keys list
檢索帳戶密鑰時,得到:
請運行“ az登錄”以設置帳戶。
我正在使用Azure PowerShell(Preview)任務版本4。
如何用生成的東西代替當前的帳戶密鑰?
運行Azure Powershell任務將使用Connect-AzAccount
身份驗證
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.