VSTS “Deploy Compose Application to Service Fabric” to an agent with SF SDK 2.8 or 3.0 fails

血红的双手。 提交于 2019-12-14 03:13:41

问题


I use Deploy Compose Application to Service Fabric to deploy containers with VSTS on Service Fabric . My build agent had Service Fabric SDK 2.7. As soon as I upgrade it to 2.8 or 3.0, the VSTS task breaks with

The ServiceDnsName for DefaultService 'xxx' is invalid


回答1:


I cloned vsts-tasks, debugged ServiceFabricCompose and found out that UI parameter Application Name is placed into New-ServiceFabricComposeDeployment -DeploymentName.

For old SDK 2.7 we had "fabric:/XYZ" in Application Name.

This format is not valid for SDK 2.8 + 3.0.

Changing to Application Name to "XYZ" solved the problem.



来源:https://stackoverflow.com/questions/49390147/vsts-deploy-compose-application-to-service-fabric-to-an-agent-with-sf-sdk-2-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!