Edit

Share via


azcmagent config

Configure settings for the Azure connected machine agent. Configurations are stored locally and are unique to each machine. Available configuration properties vary by agent version. Use azcmagent config info to see all available configuration properties and supported values for the currently installed agent.

Commands

Command Purpose
azcmagent config clear Clear a configuration property's value
azcmagent config get Gets a configuration property's value
azcmagent config info Describes all available configuration properties and supported values
azcmagent config list Lists all configuration properties and values
azcmagent config set Set a value for a configuration property

azcmagent config clear

Clear a configuration property's value and reset it to its default state.

Usage

azcmagent config clear [property] [flags]

Examples

Clear the proxy server URL property:

azcmagent config clear proxy.url

Flags

This command supports the flags described in Common flags.

azcmagent config get

Get a configuration property's value.

Usage

azcmagent config get [property] [flags]

Examples

Get the agent mode:

azcmagent config get config.mode

Flags

This command supports the flags described in Common flags.

azcmagent config info

Describes available configuration properties and supported values. When run without specifying a specific property, the command describes all available properties their supported values.

Usage

azcmagent config info [property] [flags]

Examples

Describe all available configuration properties and supported values:

azcmagent config info

Learn more about the extensions allowlist property and its supported values:

azcmagent config info extensions.allowlist

Flags

This command supports the flags described in Common flags.

azcmagent config list

Lists all configuration properties and their current values

Usage

azcmagent config list [flags]

Examples

List the current agent configuration:

azcmagent config list

Flags

This command supports the flags described in Common flags.

azcmagent config set

Set a value for a configuration property.

Usage

azcmagent config set [property] [value] [flags]

Examples

Configure the agent to use a proxy server:

azcmagent config set proxy.url "http://proxy.contoso.corp:8080"

Append an extension to the extension allowlist:

azcmagent config set extensions.allowlist "Microsoft.Azure.Monitor/AzureMonitorWindowsAgent" --add

Disable all remote access to a machine:

azcmagent config set incomingconnections.enabled false

Flags

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

-a, --add

Append the value to the list of existing values. If not specified, the default behavior is to replace the list of existing values. This flag is only supported for configuration properties that support more than one value. Can't be used with the --remove flag.

-r, --remove

Remove the specified value from the list, retaining all other values. If not specified, the default behavior is to replace the list of existing values. This flag is only supported for configuration properties that support more than one value. Can't be used in conjunction with the --add flag.