是否可以在 Azure DevOps 中显示 ARM 部署的进度?
Is it possible to show progress for ARM deployment in Azure DevOps?
我在 Azure DevOps 中有一个管道。在构建和测试东西之后,我创建了 Azure Resources 以便在那里部署应用程序。
我为此使用 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\s\arm-template.json' is 'utf-8'
Starting Deployment.
Deployment name is awesomeApp42.
Successfully deployed the template.
##[section]Finishing: Create Azure Resources
是否有可能获得任何详细信息?例如。创建了哪些资源,名称和时间?
不,根据 the schema。但您始终可以使用 Azure Powershell 任务来实现这一点,例如:
New-AzResourceGroupDeployment -Verbose ...
所以基本上将 -Verbose
开关添加到您的 New-AzResourceGroupDeployment
cmdlet。很确定这是你能得到的最接近的
一种选择是使用 Azure 门户独立于脚本输出查看部署详细信息:
打开部署所在的资源组页面。(一种方法是在门户搜索栏中键入 "Resource Groups"。)
在“资源组”页面上,单击“设置”组中的部署。
单击您的部署,然后单击感兴趣的操作,操作详细信息。
我在 Azure DevOps 中有一个管道。在构建和测试东西之后,我创建了 Azure Resources 以便在那里部署应用程序。
我为此使用 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\s\arm-template.json' is 'utf-8'
Starting Deployment.
Deployment name is awesomeApp42.
Successfully deployed the template.
##[section]Finishing: Create Azure Resources
是否有可能获得任何详细信息?例如。创建了哪些资源,名称和时间?
不,根据 the schema。但您始终可以使用 Azure Powershell 任务来实现这一点,例如:
New-AzResourceGroupDeployment -Verbose ...
所以基本上将 -Verbose
开关添加到您的 New-AzResourceGroupDeployment
cmdlet。很确定这是你能得到的最接近的
一种选择是使用 Azure 门户独立于脚本输出查看部署详细信息:
打开部署所在的资源组页面。(一种方法是在门户搜索栏中键入 "Resource Groups"。)
在“资源组”页面上,单击“设置”组中的部署。
单击您的部署,然后单击感兴趣的操作,操作详细信息。