REFERENCE

Withhold, retire or roll back

A version you promoted is causing trouble, and you need to stop it, take it off machines, or go back to the one before, without uninstalling more than you meant to.

UPDATED

A version can leave service five ways. They differ in what happens on endpoints that already have it, so pick by what you want to happen there.

You want Use What the feed does Endpoints that already have the app
To stop offering this version, and change nothing installed Withhold Serves it on no ring Nothing is uninstalled, and nothing installs this version
To offer a withheld version again Serve again Serves it on the rings it was promoted to Managed as before
To take this version off endpoints where nothing else keeps it Retire Every ring that served it goes back to pending Where a ring is left serving no version of the app, it is uninstalled, except where a group assigns the winget app to the endpoint: that endpoint keeps its version. Elsewhere nothing changes
To send the machines that installed this version back to the version before it Block this version Takes the version off a ring The machines that installed it go back to the version before it
To go back to what one ring served before Roll a ring back That ring serves its previous version again On that ring, endpoints without the newer version get the previous one. A winget endpoint that already has the newer version keeps it
To stop keeping a version as a ring’s rollback target Drop a rollback target Nothing changes Nothing changes

All of them are on a version’s package page, under Actions: Withhold or retire, Roll a ring back and Drop a rollback target. A Chocolatey or Scoop version row on the catalog list has its own Withhold… verb. Admins and catalog authors can use them. Withhold and Retire shipped in platform 0.236.1. Block this version is on a package’s page, under Rollout.

Withhold

Withhold stops serving the version on every ring at once. Its ring promotions stay as they were, so Serve again puts it back exactly where it was.

  • Nothing is uninstalled. An endpoint that has the app keeps it, at whatever version it has. Nothing installs the withheld version.
  • It holds the whole app. While any version of an app is withheld, no version of that app is uninstalled from any endpoint. Withhold acts on one version of one package manager: withholding Chocolatey 7zip does not touch winget 7zip.
  • It is never refused for an audit outage. Withhold is the brake, so it goes through even when its audit record cannot be written, and the console says when that happened. Serve again is refused, with nothing changed, if its record cannot be written.

When you are not sure yet, withhold first: it stops new installs of the version, uninstalls nothing, and Serve again puts it back where it was.

Retire

Retire takes the version out of the rings: every ring where it is active or armed goes back to pending. A ring where it is blocked stays blocked, with its rollback hold. Retiring a withheld version also clears its withhold.

Before anything moves, Retire shows what it will do:

  • the rings it moves back to pending, and the rings it leaves blocked;
  • the rings it leaves serving no version of the app, and the endpoints on those rings that manage the app;
  • the rings where the version is only the rollback target, which Retire drops and nothing else.

You confirm with a typed confirmation that names the package and version. Retire does not run if it cannot read who it affects, and nothing is retired if its audit record cannot be written.

What endpoints do afterwards:

  • On a ring left serving no version of the app, an endpoint where the agent installed it uninstalls it at its next check-in. An endpoint that one of its groups still assigns the app to keeps the version it has instead, and nothing updates it until a version is active on its ring again. For Chocolatey and Scoop that holds since platform 0.253.0, as Chocolatey and Scoop says.
  • On a ring that still serves another version, nothing is uninstalled.
  • While another version of the app is withheld, nothing is uninstalled anywhere, and the dialog names that version.

To bring a retired version back, promote it again.

Roll a ring back

A rollback works on one ring. When you promote a version into a ring, the version it replaces stays armed there as the ring’s rollback target. Rolling back makes that armed version active again, and the version you rolled back from becomes the armed one. It runs behind a typed confirmation and the emergency stop, like a promote.

  • Endpoints on that ring that do not have the newer version get the earlier one at their next check-in, inside their maintenance window. For a winget app, an endpoint that already installed the version you rolled back from keeps it: that version is now armed, not blocked, and the server downgrades an endpoint only when its installed version is blocked in the ring. Other rings keep serving what they serve. To stop the version everywhere, withhold it.
  • The ring needs a version armed to return to. If nothing is armed there, the package page says so and offers no rollback for that ring.
  • From a halt. A failed ring’s roll back on the halt queue ends the update flight and opens this rollback on that ring (since platform 0.241.0).

A detector that proposes a rollback when a ring starts failing is built and ships off, under Settings › Rollout & safety.

Block this version

On a package’s page, Rollout → “Block this version…” takes a version off a ring and sends the machines that installed it back to the version before it. The dialog shows how many machines go back and how, any CVE record on the version they go back to, and a phrase to type; a second phrase is asked when that version has a CVE record or is a major version lower. The package’s ring strip then says who blocked the version and when. Admins and catalog authors can block a version. Chocolatey machines go back at their next check-in, inside their maintenance window.

Drop a rollback target

Drop a rollback target moves an armed version back to pending on one ring, so a rollback there can no longer return to it. Nothing is installed or uninstalled, because an armed version serves no endpoint. It takes a typed confirmation. Before the version’s soak time has passed and its successor has cleared the ring’s dwell, it asks for a different phrase and a reason, which the audit record keeps.

Where this stops

  • Withhold holds every version of the app. While one version is withheld, no endpoint uninstalls the app, whichever version it runs.
  • Retire has no undo button. It uninstalls where nothing else serves or assigns the app; bringing the version back means promoting it again, which installs it again.
  • One ring per rollback, and only to the version armed there.
  • Endpoints act at check-in. Each change is on the server at once, but an endpoint uninstalls or goes back at its next check-in, inside its maintenance window. An endpoint that is off changes nothing until it checks in.
  • Automatic rollback proposals ship off. Nothing rolls a ring back unless someone does.