PowerShell to achive it:
1 | $clusterFQDN = "jackysf3.eastasia.cloudapp.azure.com" |
Service Fabric Rest API
1 | static async Task MainAsync() |
Make sure to add “Flags” parameter, without it you will get HTTP 200 and nothing change.
Flags indicating whether other properties are set. Each of the associated properties corresponds to a flag, specified below, which, if set, indicate that the property is specified. This property can be a combination of those flags obtained using bitwise ‘OR’ operator. For example, if the provided value is 6 then the flags for ReplicaRestartWaitDuration (2) and QuorumLossWaitDuration (4) are set.
For more information:
https://docs.microsoft.com/en-us/rest/api/servicefabric/sfclient-model-statefulserviceupdatedescription#flags
https://github.com/microsoft/service-fabric-client-dotnet
Enjoy. 2019-11-1 By Jacky