Skip to content

Instantly share code, notes, and snippets.

@BadgerCode
Created August 14, 2019 09:29
Show Gist options
  • Save BadgerCode/71059646a7f21e974eb4b0115c80e21b to your computer and use it in GitHub Desktop.
Save BadgerCode/71059646a7f21e974eb4b0115c80e21b to your computer and use it in GitHub Desktop.
Updates a service fabric upgrade that is in progress to use new settings
$endpoint = "myclustername.uksouth.cloudapp.azure.com:19000"
$thumbprint = "a132bd464564ffffff1651f1311f51321"
Connect-serviceFabricCluster `
-ConnectionEndpoint $endpoint `
-KeepAliveIntervalInSec 10 `
-X509Credential `
-ServerCertThumbprint $thumbprint `
-FindType FindByThumbprint `
-FindValue $thumbprint `
-StoreLocation LocalMachine `
-StoreName My
Update-ServiceFabricApplicationUpgrade -ApplicationName fabric:/MyAppName -UpgradeMode Monitored -UpgradeTimeoutSec 180 -UpgradeDomainTimeoutSec 20 -HealthCheckRetryTimeoutSec 10 -HealthCheckStableDurationSec 10 -FailureAction Rollback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment