Skip to content

Commit 040b9f8

Browse files
Merge pull request #230220 from johnmarco/jm-device-code-flag
Add device code flag to agent connect procedure
2 parents 7a12636 + afbe6be commit 040b9f8

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

articles/azure-arc/servers/manage-agent.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Managing the Azure Arc-enabled servers agent
33
description: This article describes the different management tasks that you will typically perform during the lifecycle of the Azure Connected Machine agent.
4-
ms.date: 10/12/2022
4+
ms.date: 03/10/2023
55
ms.topic: conceptual
66
---
77

@@ -59,6 +59,10 @@ To connect with your elevated logged-on credentials (interactive), run the follo
5959

6060
`azcmagent connect --tenant-id <TenantID> --subscription-id <subscriptionID> --resource-group <ResourceGroupName> --location <resourceLocation>`
6161

62+
To connect using a device code (and avoid having to sign in through a browser), use the `--use-device-code` flag:
63+
64+
`azcmagent connect --use-device-code --tenant-id <TenantID> --subscription-id <subscriptionID> --resource-group <ResourceGroupName> --location <resourceLocation>`
65+
6266
### disconnect
6367

6468
This parameter specifies a resource in Azure Resource Manager to delete from Azure Arc. Running this parameter doesn't remove the agent from the machine; you must uninstall the agent separately. After the machine is disconnected, you can re-register it with Azure Arc-enabled servers by using `azcmagent connect` so a new resource is created for it in Azure.

0 commit comments

Comments
 (0)