基本上在"dnsNameLabel"
为 azure 容器实例添加了 arm 模板的值之后,我收到了以下消息:
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"
}
]
},
...
PS 我正在使用 VSTS 的 Azure 资源组部署任务进行部署。