Skip to content

Commit b0f4bae

Browse files
Merge pull request #269990 from dramasamy/arc-for-server
Update howto-kubernetes-cluster-connect.md
2 parents 20e9d5d + f5d08f5 commit b0f4bae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

articles/operator-nexus/howto-kubernetes-cluster-connect.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ The `az ssh arc` command allows users to remotely access a cluster VM that has b
7878
SUBSCRIPTION_ID="<Subscription ID>"
7979
USER_NAME="azureuser"
8080
SSH_PRIVATE_KEY_FILE="<vm_ssh_id_rsa>"
81+
MANAGED_RESOURCE_GROUP=$(az networkcloud kubernetescluster show -n $CLUSTER_NAME -g $RESOURCE_GROUP --subscription $SUBSCRIPTION_ID --output tsv --query managedResourceGroupConfiguration.name)
8182
```
8283

8384
2. Get the available cluster node names.
@@ -98,7 +99,7 @@ The `az ssh arc` command allows users to remotely access a cluster VM that has b
9899

99100
```azurecli
100101
az ssh arc --subscription $SUBSCRIPTION_ID \
101-
--resource-group $RESOURCE_GROUP \
102+
--resource-group $MANAGED_RESOURCE_GROUP \
102103
--name <VM Name> \
103104
--local-user $USER_NAME \
104105
--private-key-file $SSH_PRIVATE_KEY_FILE

0 commit comments

Comments
 (0)