Skip to content

Upgrade Standalone

This guide covers routine patch/minor upgrades for the standalone collector.

  • New standalone package/binary compatible with your OS
  • Access to current collector host
  • Access to current config.yaml, license file, and collector state database
  • Maintenance window long enough for one restart

Back up before any change:

  • config.yaml
  • license file referenced by license.filepath
  • state.db (and state.db-shm / state.db-wal if present)

Example (Linux):

Terminal window
cp ./config.yaml ./backup/config.yaml.bak
cp /etc/ms-teams-observability-agent/license.json ./backup/license.json.bak
cp ./state.db* ./backup/
  1. Replace old binary/package with the new Standalone patch/minor version.
  2. Restart collector service/process.
  3. Validate configuration.
  4. Test connectivity.
  5. Confirm healthy operation.

Replace the executable with the new patch/minor release from your standard distribution channel.

Terminal window
sudo ms-teams-agent service restart --instance default
sudo ms-teams-agent service status --instance default
Terminal window
ms-teams-agent validate --config ./config.yaml

4) Test authentication and output connectivity

Section titled “4) Test authentication and output connectivity”
Terminal window
ms-teams-agent test-connection --config ./config.yaml
  • Collector logs show regular successful cycles
  • ms-teams-agent state show returns expected state
  • Data arrives in your configured backend

For operational checks and troubleshooting, see Runbook and Installation.

If validation fails after upgrade:

  1. Stop the upgraded collector.
  2. Restore previous binary/package.
  3. Restore backed up config.yaml, license, and state.db if needed.
  4. Start collector again and re-check health.