Skip to content

Commit ebcfb8d

Browse files
committed
updated agent manage article
1 parent 10fb17a commit ebcfb8d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

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

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ This parameter specifies a resource in Azure Resource Manager representing the m
134134
135135
A certificate corresponding to the System-Assigned Identity of the machine is then downloaded and stored locally. Once this step is completed, the Azure Connected Machine Metadata Service and Guest Configuration Agent begin synchronizing with Azure Arc for servers (preview).
136136
137+
To connect using a service principal, run the following command:
138+
139+
`azcmagent connect --service-principal-id <serviceprincipalAppID> --service-principal-secret <serviceprincipalPassword> --tenant-id <tenantID> --subscription-id <subscriptionID> --resource-group <ResourceGroupName> --location <resourceLocation>`
140+
141+
To connect using an access token, run the following command:
142+
143+
`azcmagent connect --access-token <> --subscription-id <subscriptionID> --resource-group <ResourceGroupName> --location <resourceLocation>`
144+
145+
To connect with your elevated logged-on credentials (interactive), run the following command:
146+
147+
`azcmagent connect --tenant-id <TenantID> --subscription-id <subscriptionID> --resource-group <ResourceGroupName> --location <resourceLocation>`
148+
137149
### Disconnect
138150
139151
This parameter specifies a resource in Azure Resource Manager representing the machine is deleted in Azure. It does not delete the agent from the machine, this must be done as a separate step. After the machine is disconnected, if you want to re-register it with Azure Arc for servers (preview), use `azcmagent connect` so a new resource is created for it in Azure.
@@ -150,6 +162,9 @@ To disconnect with your elevated logged-on credentials (interactive), run the fo
150162
151163
`azcmagent disconnect --tenant-id <tenantID>`
152164
165+
### Reconnect
166+
167+
153168
## Remove the agent
154169
155170
Perform one of the following methods to uninstall the Windows or Linux Connected Machine agent from the machine. Removing the agent does not unregister the machine with Arc for servers (preview), this is a separate process you perform when you no longer need to manage the machine in Azure.

0 commit comments

Comments
 (0)