File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
articles/azure-arc/servers Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -20,19 +20,23 @@ azcmagent connect [authentication] --subscription-id [subscription] --resource-g
20
20
Connect a server using the default login method (interactive browser or device code).
21
21
22
22
```
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
24
28
```
25
29
26
30
Connect a server using a service principal.
27
31
28
32
```
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"
30
34
```
31
35
32
36
Connect a server using a private endpoint and device code login method.
33
37
34
38
```
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"
36
40
```
37
41
38
42
## Authentication options
You can’t perform that action at this time.
0 commit comments