Shri
Shri

Reputation: 149

Downgrade the Service Fabric Application version

When I'm deploying the Service Fabric Application with new version, the complete application is getting replaced with new version in service fabric cluster. And it is working fine as expected in upgrade scenario. But, When I deploy the application with downgraded version, application is not getting replaced rather it is again creating an application with older version.

After the application deployment, I have two different versions of same application in service fabric cluster.

How we can downgrade the application to older version with application deployment. Does we need to change settings/parameters for cluster or in power shell command. Service Fabric cluster with two versions after deployment of older version image

Thanks.

Upvotes: 2

Views: 2035

Answers (1)

jimpaine
jimpaine

Reputation: 887

This is a view of the Service Fabric Image store, which shows the current versions available, below this you should be able to see the actual version that is being used within the cluster, see below, versions 1.0.0 and 1.0.1 are currently in the image store but version 1.0.0 is the version being used.

enter image description here

You can confirm this by looking at your nodes as well.

enter image description here

EDIT:

To remove the unwanted versions from the cluster run the following in PowerShell, obvious replace with your application name and version.


> Unregister-ServiceFabricApplicationType -ApplicationTypeName DowngradeDemoType -ApplicationTypeVersion 1.0.1

Upvotes: 1

Related Questions