Arm模板验证在Azure Devops版本中失败,可从powershell和test AzResourceGroupDeployment中运行

Arm模板验证在Azure Devops版本中失败,可从powershell和test AzResourceGroupDeployment中运行,azure,azure-devops,arm-template,Azure,Azure Devops,Arm Template,我有一个发布设置,我正试图通过Azure Devops发布管道发布。这是基于另一个版本,我已经克隆和工作良好 问题是模板未通过验证检查,无法继续。奇怪的是,我能够使用新的AzResourceGroupDeployment和测试AzResourceGroupDeployment成功地检查语法。它没有报告任何错误,并且一直部署良好 使用Azure Devops release返回的错误为: 2020-02-26T12:26:16.2632844Z ==========================

我有一个发布设置,我正试图通过Azure Devops发布管道发布。这是基于另一个版本,我已经克隆和工作良好

问题是模板未通过验证检查,无法继续。奇怪的是,我能够使用新的AzResourceGroupDeployment和测试AzResourceGroupDeployment成功地检查语法。它没有报告任何错误,并且一直部署良好

使用Azure Devops release返回的错误为:

2020-02-26T12:26:16.2632844Z ==============================================================================
2020-02-26T12:26:16.2633634Z Task         : ARM template deployment
2020-02-26T12:26:16.2634204Z Description  : Deploy an Azure Resource Manager (ARM) template to all the deployment scopes
2020-02-26T12:26:16.2634534Z Version      : 3.1.19
2020-02-26T12:26:16.2634945Z Author       : Microsoft Corporation
2020-02-26T12:26:16.2635504Z Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-resource-group-deployment
2020-02-26T12:26:16.2635948Z ==============================================================================
2020-02-26T12:26:16.8677026Z ARM Service Conection deployment scope - Subscription
2020-02-26T12:26:16.8760315Z Checking if the following resource group exists: myResourceGroup.
2020-02-26T12:26:17.2234188Z Resource group exists: true.
2020-02-26T12:26:17.2259290Z Creating deployment parameters.
2020-02-26T12:26:17.2558066Z The detected encoding for file 'd:\a\r1\a\_Azure-Infrastructure\myResourceGroup\deployment\azuredeploy.json' is 'utf-8'
2020-02-26T12:26:17.2561303Z The detected encoding for file 'd:\a\r1\a\_Azure-Infrastructure\myResourceGroup\deployment\param.dev.json' is 'utf-8'
2020-02-26T12:26:17.5304032Z Starting template validation.
2020-02-26T12:26:17.5304834Z Deployment name is Release-vstfs:///ReleaseManagement/Release/95
2020-02-26T12:26:17.5877973Z ##[warning]Validation errors were found in the Azure Resource Manager template. This can potentially cause template deployment to fail. Template validation failed. Error: {"message":"No HTTP resource was found that matches the request URI 'https://management.azure.com/subscriptions/mySubscription/resourcegroups/myResourceGroup/providers/Microsoft.Resources/deployments/Release-vstfs:/ReleaseManagement/Release/95/validate?api-version=2017-05-10'."}.. Please follow https://docs.microsoft.com/en-us/azure/azure-resource-manager/templates/template-syntax
2020-02-26T12:26:17.5890527Z Starting Deployment.
2020-02-26T12:26:17.5891348Z Deployment name is Release-vstfs:///ReleaseManagement/Release/95
2020-02-26T12:26:17.6289831Z There were errors in your deployment. Error code: undefined.
2020-02-26T12:26:17.6291819Z ##[error][object Object]
2020-02-26T12:26:17.6295387Z ##[error]Task failed while creating or updating the template deployment.
2020-02-26T12:26:17.6399260Z ##[section]Finishing: ARM Template deployment: Resource Group scope
​查看上面的日志,我不确定它是在验证错误上失败,还是在接近末尾的错误上失败,错误代码未定义

该任务来自另一个订阅,它列在任务的Azure资源管理器连接中,还列出了订阅和订阅中的资源组


有人知道我该如何工作,或者从哪里开始故障排除吗?

您的部署名称是:

Release-vstfs:/ReleaseManagement/Release/95
非常确定这是不允许的(
/
)。因此,您需要将部署名称设置为合理的名称


ps.
也可能不被允许

您的部署名称是:

Release-vstfs:/ReleaseManagement/Release/95
非常确定这是不允许的(
/
)。因此,您需要将部署名称设置为合理的名称


ps.
也可能不被允许

您是否查看了活动登录

所有部署尝试都记录在此处。特别是看看JSON窗格,真正的问题通常只显示在这里


否则,如果它没有到达Azure,您可以在Azure DevOps中再次检查服务连接吗?(特别是Azure中的相关用户权限)

您是否查看了活动登录

所有部署尝试都记录在此处。特别是看看JSON窗格,真正的问题通常只显示在这里


否则,如果它没有到达Azure,您可以在Azure DevOps中再次检查服务连接吗?(特别是Azure中的相关用户权限)

它甚至没有访问Azure门户并显示为部署它甚至没有访问Azure门户并显示为部署Brilliant,就是这样。现在工作!谢谢你,太棒了,就是这个。现在工作!非常感谢。