【发布时间】:2018-07-03 15:10:21
【问题描述】:
基本上在为我的 azure 容器实例的 arm 模板添加 "dnsNameLabel" 值后,我收到了以下消息:
2018-07-03T14:31:14.8518944Z ##[error]At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-debug for usage details.
2018-07-03T14:31:14.8571875Z ##[error]Details:
2018-07-03T14:31:14.8616789Z ##[error]BadRequest: {
"error": {
"code": "DnsNameLabelNotSupported",
"message": "DNS name label for container group is not supported before version '2018-02-01-preview'."
}
}
摘自 arm-template.json
...
"osType": "[variables('osType')]",
"ipAddress": {
"type": "Public",
"dnsNameLabel": "rabbitmq",
"ports": [
{
"protocol": "tcp",
"port": "15672"
}
]
},
...
附:我正在使用 VSTS 的 Azure 资源组部署任务进行部署。
【问题讨论】:
-
代理名为 Hosted Linux Preview。我试图查找版本,但看不到任何用版本描述它的属性。
-
是的,尝试使用最新的步骤版本,您是否使用资源组部署步骤进行部署?
-
是的,我正在使用 Azure 资源组部署任务进行部署。并且选择了它的第 2 版,似乎是最新的。
-
尝试 azure powershell task 最新版本并进行相同的部署
标签: azure-pipelines-build-task arm-template azure-container-registry azure-container-instances