File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ The `az ssh arc` command allows users to remotely access a cluster VM that has b
78
78
SUBSCRIPTION_ID="<Subscription ID>"
79
79
USER_NAME="azureuser"
80
80
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)
81
82
```
82
83
83
84
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
98
99
99
100
```azurecli
100
101
az ssh arc --subscription $SUBSCRIPTION_ID \
101
- --resource-group $RESOURCE_GROUP \
102
+ --resource-group $MANAGED_RESOURCE_GROUP \
102
103
--name <VM Name> \
103
104
--local-user $USER_NAME \
104
105
--private-key-file $SSH_PRIVATE_KEY_FILE
You can’t perform that action at this time.
0 commit comments