Azure Service Fabric stuck in uninstall state

I had a deployment in my services cluster, but this is wrong; I tried to uninstall the application and for some reason the uninstall never seemed, and now the application is stuck in the uninstall state, while all my deployments remain. I can’t uninstall or update the application, as I get the status of “uninstall”

Is there a way to update the status of the application so that I can continue to delete it (for now)?

+6
source share
1 answer

Most likely, you will need to use the power shell and uninstall the application in this way, I had this problem when you start working with tags.

For instructions on connecting to a cluster using powershell, click here .

$nodes = Get-ServiceFabricNode foreach ($node in $nodes) { $replicas = Get-ServiceFabricDeployedReplica -NodeName $node.NodeName -ApplicationName "fabric:/AppNameHere" foreach ($replica in $replicas) { Remove-ServiceFabricReplica -ForceRemove -NodeName $node.NodeName -PartitionId $replica.PartitionId -ReplicaOrInstanceId $replica.ReplicaOrInstanceId } } 

The exceptions that are stuck, in my experience, are often due to the fact that the application does not comply with cancellation tokens. What application did you deploy?

+1
source

All Articles