azcmagent upgrade

Upgrades the Azure Connected Machine agent to the latest version, or to a specified version.

Note

This command is only supported for machines that are already running version 1.62 or later of the Azure Connected Machine agent. If your machine is running an older version, follow the manual upgrade instructions.

Usage

azcmagent upgrade [flags]

Examples

Upgrade the agent to the latest version:

azcmagent upgrade

Upgrade the agent to a specific version:

azcmagent upgrade --version 1.63

Flags

This command supports the flags described in Common flags and the flags listed in this section.

--version

Specifies a specific version to upgrade the agent to. If not provided, the agent is upgraded to the latest available version. Supported format is MAJOR.MINOR, for example 1.63.

Supported values:

--cloud

Specifies the Azure cloud instance. Only required when running the command on a disconnected machine.

Supported values:

  • AzureCloud
  • AzureChinaCloud

--background

Allows the upgrade process to run without popups. This is useful for running the command in a script. If not provided, the upgrade process displays popups to show progress.