我在 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
能否了解相关详情?例如。创建了哪些资源、名称和时间?
最佳答案
否,根据 the schema 。但您始终可以使用 Azure Powershell 任务来实现这一目标,例如:
New-AzResourceGroupDeployment -Verbose ...
所以基本上将 -Verbose
开关添加到 New-AzResourceGroupDeployment
cmdlet。很确定这是您能得到的最接近的结果
关于azure - 是否可以在 Azure DevOps 中显示 ARM 部署的进度?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54983761/