Run a series of network connectivity checks to see if the agent can successfully communicate with required network endpoints. The command outputs a table showing connectivity test results for each required endpoint, including whether the agent used a private endpoint and/or proxy server.
azcmagent check [flags]
Check connectivity with the agent's currently configured cloud and region.
Check connectivity with the East US region using public endpoints.
azcmagent check --location "eastus"
Check connectivity with the Central India region using private endpoints.
azcmagent check --location "centralindia" --enable-pls-check
Specifies the Azure cloud instance. Must be used with the
--location flag. If the machine is already connected to Azure Arc, the default value is the cloud to which the agent is already connected. Otherwise, the default value is "AzureCloud".
- AzureCloud (public regions)
- AzureUSGovernment (Azure US Government regions)
- AzureChinaCloud (Microsoft Azure operated by 21Vianet regions)
The Azure region to check connectivity with. If the machine is already connected to Azure Arc, the current region is selected as the default.
Sample value: westeurope
Checks if supported Azure Arc endpoints resolve to private IP addresses. This flag should be used when you intend to connect the server to Azure using an Azure Arc private link scope.
Common flags available for all commands
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:
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.
Get help for the current command, including its syntax and command line options.
Output the command result in the JSON format.
Redirect error and verbose messages to the standard error (stderr) stream. By default, all output is sent to the standard output (stdout) stream.
Disable color output for terminals that do not support ANSI colors.
Show more detailed logging information while the command executes. Useful for troubleshooting issues when running a command.