Skip to content

Commit 0b91200

Browse files
authored
Merge pull request #114167 from pthoor/patch-3
Update azcmagent-connect.md
2 parents 6a28a0b + 8b07582 commit 0b91200

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

articles/azure-arc/servers/azcmagent-connect.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,19 +20,23 @@ azcmagent connect [authentication] --subscription-id [subscription] --resource-g
2020
Connect a server using the default login method (interactive browser or device code).
2121

2222
```
23-
azcmagent connect --subscription "Production" --resource-group "HybridServers" --location "eastus"
23+
azcmagent connect --subscription-id "Production" --resource-group "HybridServers" --location "eastus"
24+
```
25+
26+
```
27+
azcmagent connect --subscription-id "Production" --resource-group "HybridServers" --location "eastus" --use-device-code
2428
```
2529

2630
Connect a server using a service principal.
2731

2832
```
29-
azcmagent connect --subscription "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" --resource-group "HybridServers" --location "australiaeast" --service-principal-id "ID" --service-principal-secret "SECRET" --tenant-id "TENANT"
33+
azcmagent connect --subscription-id "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee" --resource-group "HybridServers" --location "australiaeast" --service-principal-id "ID" --service-principal-secret "SECRET" --tenant-id "TENANT"
3034
```
3135

3236
Connect a server using a private endpoint and device code login method.
3337

3438
```
35-
azcmagent connect --subscription "Production" --resource-group "HybridServers" --location "koreacentral" --use-device-code --private-link-scope "/subscriptions/.../Microsoft.HybridCompute/privateLinkScopes/ScopeName"
39+
azcmagent connect --subscription-id "Production" --resource-group "HybridServers" --location "koreacentral" --use-device-code --private-link-scope "/subscriptions/.../Microsoft.HybridCompute/privateLinkScopes/ScopeName"
3640
```
3741

3842
## Authentication options

0 commit comments

Comments
 (0)