Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
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 |
Clear a configuration property's value and reset it to its default state.
azcmagent config clear [property] [flags]
Clear the proxy server URL property.
azcmagent config clear proxy.url
Common flags available for all commands
--config
Takes in a path to a JSON or YAML file containing inputs to the command. The configuration file should contain a series of key-value pairs where the key matches an available command line option. For example, to pass in the --verbose
flag, the configuration file would look like:
{
"verbose": true
}
If a command line option is found in both the command invocation and a configuration file, the value specified on the command line will take precedence.
-h
, --help
Get help for the current command, including its syntax and command line options.
-j
, --json
Output the command result in the JSON format.
--log-stderr
Redirect error and verbose messages to the standard error (stderr) stream. By default, all output is sent to the standard output (stdout) stream.
--no-color
Disable color output for terminals that do not support ANSI colors.
-v
, --verbose
Show more detailed logging information while the command executes. Useful for troubleshooting issues when running a command.
Get a configuration property's value.
azcmagent config get [property] [flags]
Get the agent mode.
azcmagent config get config.mode
Common flags available for all commands
--config
Takes in a path to a JSON or YAML file containing inputs to the command. The configuration file should contain a series of key-value pairs where the key matches an available command line option. For example, to pass in the --verbose
flag, the configuration file would look like:
{
"verbose": true
}
If a command line option is found in both the command invocation and a configuration file, the value specified on the command line will take precedence.
-h
, --help
Get help for the current command, including its syntax and command line options.
-j
, --json
Output the command result in the JSON format.
--log-stderr
Redirect error and verbose messages to the standard error (stderr) stream. By default, all output is sent to the standard output (stdout) stream.
--no-color
Disable color output for terminals that do not support ANSI colors.
-v
, --verbose
Show more detailed logging information while the command executes. Useful for troubleshooting issues when running a command.
Describes available configuration properties and supported values. When run without specifying a specific property, the command describes all available properties their supported values.
azcmagent config info [property] [flags]
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
Common flags available for all commands
--config
Takes in a path to a JSON or YAML file containing inputs to the command. The configuration file should contain a series of key-value pairs where the key matches an available command line option. For example, to pass in the --verbose
flag, the configuration file would look like:
{
"verbose": true
}
If a command line option is found in both the command invocation and a configuration file, the value specified on the command line will take precedence.
-h
, --help
Get help for the current command, including its syntax and command line options.
-j
, --json
Output the command result in the JSON format.
--log-stderr
Redirect error and verbose messages to the standard error (stderr) stream. By default, all output is sent to the standard output (stdout) stream.
--no-color
Disable color output for terminals that do not support ANSI colors.
-v
, --verbose
Show more detailed logging information while the command executes. Useful for troubleshooting issues when running a command.
Lists all configuration properties and their current values
azcmagent config list [flags]
List the current agent configuration.
azcmagent config list
Common flags available for all commands
--config
Takes in a path to a JSON or YAML file containing inputs to the command. The configuration file should contain a series of key-value pairs where the key matches an available command line option. For example, to pass in the --verbose
flag, the configuration file would look like:
{
"verbose": true
}
If a command line option is found in both the command invocation and a configuration file, the value specified on the command line will take precedence.
-h
, --help
Get help for the current command, including its syntax and command line options.
-j
, --json
Output the command result in the JSON format.
--log-stderr
Redirect error and verbose messages to the standard error (stderr) stream. By default, all output is sent to the standard output (stdout) stream.
--no-color
Disable color output for terminals that do not support ANSI colors.
-v
, --verbose
Show more detailed logging information while the command executes. Useful for troubleshooting issues when running a command.
Set a value for a configuration property.
azcmagent config set [property] [value] [flags]
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
-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.
Common flags available for all commands
--config
Takes in a path to a JSON or YAML file containing inputs to the command. The configuration file should contain a series of key-value pairs where the key matches an available command line option. For example, to pass in the --verbose
flag, the configuration file would look like:
{
"verbose": true
}
If a command line option is found in both the command invocation and a configuration file, the value specified on the command line will take precedence.
-h
, --help
Get help for the current command, including its syntax and command line options.
-j
, --json
Output the command result in the JSON format.
--log-stderr
Redirect error and verbose messages to the standard error (stderr) stream. By default, all output is sent to the standard output (stdout) stream.
--no-color
Disable color output for terminals that do not support ANSI colors.
-v
, --verbose
Show more detailed logging information while the command executes. Useful for troubleshooting issues when running a command.