Azure Service Fabric deployment error: The port '-1' specified on your connection endpoint does not match the default Client Connection Endpoint

Azure Service Fabric deployment error: The port '-1' specified on your connection endpoint does not match the default Client Connection Endpoint

我在通过 Azure DevOps 部署时在详细日志中收到以下错误:

The port '-1' specified on your connection endpoint does not match the default Client Connection Endpoint of '19000'. This might have caused cluster communication failure.

我必须将管理终结点端口(默认情况下为 19000)放入发布管道中的 Service Fabric 连接:

tcp://clustername.westeurope.cloudapp.azure.com:19000

没有指定端口,你会得到上面的错误。