Skip to content

Commit 6b79e34

Browse files
authored
Update node-access.md
1 parent 8d97278 commit 6b79e34

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

articles/aks/node-access.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,28 @@ kubectl delete pod node-debugger-aks-nodepool1-12345678-vmss000000-bkmmx
170170
### Prerequisites
171171
* [Azure CLI][install-azure-cli] and the `aks-preview` 0.5.111 or later CLI extension installed.
172172

173+
### Limitation
174+
* Updating SSH key is supported for VMSS AKS clusters.
175+
173176
Use `az aks update` to update new SSH key on AKS cluster. Note that the SSH key of all nodepools will be updated.
174177

175178
```azurecli
176179
az aks update --name myAKSCluster --resource-group MyResourceGroup --ssh-key-value <new SSH key value>
177180
```
178181

182+
Example:
183+
You can attach the new SSH key value directly to `--ssh-key-value`.
184+
185+
```azurecli
186+
az aks update --name myAKSCluster --resource-group MyResourceGroup --ssh-key-value 'ssh-rsa AAAAB3Nza-xxx'
187+
```
188+
189+
Attaching SSH key file is also supported.
190+
191+
```azurecli
192+
az aks update --name myAKSCluster --resource-group MyResourceGroup --ssh-key-value .ssh/id_rsa.pub
193+
```
194+
179195
> [!IMPORTANT]
180196
> During this operation, all VMSS instances will be upgraded and re-imaged to fit the new SSH key.
181197

0 commit comments

Comments
 (0)