Reputation: 3536
I have an app with several service. Once I deleted a service and created it again from Service Fabric Explorer. As I can see, there is no way to set Move Cost
value from dialog of creation.
Then I decided to upgrade the app from Visual Studio and it ended with “Default service descriptions must not be modified as part of upgrade”.
I figured out the difference between descriptions and tried to add DefaultMoveCost
in ApplicationManafest.xml, DefaultServices section. But upgrade failed again saying There is an error in XML document (0, 0).
.
Upvotes: 2
Views: 534
Reputation: 856
You need to use the Update-ServiceFabricService CmdLet. Change the Service Description is not allowed as part of an upgrade. https://learn.microsoft.com/en-us/powershell/servicefabric/vlatest/Update-ServiceFabricService?redirectedfrom=msdn
Also see here for discussion around default services vs. services created through APIs. Why isn't it possible to change placement constraints in an upgrade?
Upvotes: 2