title | description | ms.topic | ms.date |
---|---|---|---|
azcmagent show CLI reference |
Syntax for the azcmagent show command line tool |
reference |
06/06/2023 |
Displays the current state of the Azure Connected Machine agent, including whether or not it's connected to Azure, the Azure resource information, and the status of dependent services.
Note
azcmagent show does not require administrator privileges
azcmagent show [property1] [property2] ... [propertyN] [flags]
Check the status of the agent.
azcmagent show
Check the status of the agent and save it in a JSON file in the current directory.
azcmagent show -j > "agent-status.json"
Show only the agent status and last heartbeat time (using display names)
azcmagent show "Agent Status" "Agent Last Heartbeat"
Show only the agent status and last heartbeat time (using JSON keys)
azcmagent show status lastHeartbeat
[property]
The name of a property to include in the output. If you want to show more than one property, separate them by spaces. You can use either the display name or the JSON key name to specify a property. For display names with spaces, enclose the property in quotes.
--os
Outputs additional information about the operating system.
[!INCLUDE common-flags]