[英]Is it possible to show progress for ARM deployment in Azure DevOps?
我在 Azure DevOps 中有一個管道。 在構建和測試之后,我創建了 Azure 資源以便在那里部署應用程序。
我為此使用了Azure 資源組部署任務。 它有效,但在日志中我只看到這個(對於我創建的所有資源):
******************************************************************************
Starting: Create Azure Resources
******************************************************************************
==============================================================================
Task : Azure Resource Group Deployment
Description : Deploy an Azure resource manager (ARM) template to a resource group. You can also start, stop, delete, deallocate all Virtual Machines (VM) in a resource group
Version : 2.147.2
Author : Microsoft Corporation
Help : [More Information](https://aka.ms/argtaskreadme)
==============================================================================
Checking if the following resource group exists: awesomeApp42.
Resource group exists: true.
Creating deployment parameters.
The detected encoding for file 'D:\a\1\s\arm-template.json' is 'utf-8'
Starting Deployment.
Deployment name is awesomeApp42.
Successfully deployed the template.
##[section]Finishing: Create Azure Resources
是否有可能獲得任何詳細信息? 例如,創建了哪些資源、名稱和時間?
不,根據架構。 但是您始終可以使用 Azure Powershell 任務來實現這一點,例如:
New-AzResourceGroupDeployment -Verbose ...
所以基本上將-Verbose
開關添加到您的New-AzResourceGroupDeployment
cmdlet。 很確定這是你能得到的最接近的
一種選擇是使用 Azure 門戶獨立於腳本輸出查看部署詳細信息:
打開部署所在資源組的頁面。(一種方法是在門戶搜索欄中鍵入“資源組”。)
在資源組頁面上,單擊設置組中的部署。
單擊您的部署,然后針對感興趣的操作單擊操作詳細信息。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.