Chr*_*Den 9 azure-resource-manager azure-devops azure-pipelines
我正在尝试在 VSTS 管道中部署 Azure ARM 脚本。
我在构建步骤中“发布”了工件并在发布步骤中下载了工件。日志似乎表明它找到了ARM脚本(经过多次反复试验。这里找到的规定方式似乎根本不起作用)。
但是我收到错误:找不到与模板文件模式匹配的任何文件
顺便说一句,即使找不到文件,我也会收到此错误(这是有道理的..但当它确实找到文件时不会)。当我在 Azure 门户中手动部署时,ARM 脚本会正确部署。
我在发布管道中使用Azure 资源组部署步骤。
我不确定还有哪些其他信息可以帮助解决此问题,但请求并希望我可以将其提供给您。
谢谢
2018-12-14T18:32:06.6009951Z ##[section]Starting: Azure Deployment:Create Or Update Resource Group action on ChrisGroup
2018-12-14T18:32:06.6015952Z
==============================================================================
2018-12-14T18:32:06.6016124Z Task : Azure Resource Group
Deployment
2018-12-14T18:32:06.6016287Z 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
2018-12-14T18:32:06.6016444Z Version : 2.141.4
2018-12-14T18:32:06.6016526Z Author : Microsoft Corporation
2018-12-14T18:32:06.6016655Z Help : [More Information] (https://aka.ms/argtaskreadme)
2018-12-14T18:32:06.6016801Z
==============================================================================
2018-12-14T18:32:06.9610677Z Checking if the following resource group exists: ChrisGroup.
2018-12-14T18:32:07.2734470Z Resource group exists: true.
2018-12-14T18:32:07.2736899Z Creating deployment parameters.
2018-12-14T18:32:07.2809876Z The detected encoding for file 'D:\a\r1\a\IAC\ARM.json' is 'utf-8'
2018-12-14T18:32:07.3021166Z ##[error]Error: Could not find any file matching the template file pattern
2018-12-14T18:32:07.3030720Z ##[section]Finishing: Azure Deployment:Create Or Update Resource Group action on ChrisGroup
Run Code Online (Sandbox Code Playgroud)
按要求:
在模板参数字段中,我将 -dailyreports_name '$(IACWeb)' -dailyreportsapi_name '$(IACAPI)'
和 OMG ......它应该是一个变量文件的路径。啊
一旦我输入了覆盖模板参数,它就可以工作了。
微软应该可能将标签改写为“模板参数文件”
| 归档时间: |
|
| 查看次数: |
10834 次 |
| 最近记录: |