File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -170,12 +170,28 @@ kubectl delete pod node-debugger-aks-nodepool1-12345678-vmss000000-bkmmx
170
170
### Prerequisites
171
171
* [ Azure CLI] [ install-azure-cli ] and the ` aks-preview ` 0.5.111 or later CLI extension installed.
172
172
173
+ ### Limitation
174
+ * Updating SSH key is supported for VMSS AKS clusters.
175
+
173
176
Use ` az aks update ` to update new SSH key on AKS cluster. Note that the SSH key of all nodepools will be updated.
174
177
175
178
``` azurecli
176
179
az aks update --name myAKSCluster --resource-group MyResourceGroup --ssh-key-value <new SSH key value>
177
180
```
178
181
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
+
179
195
> [ !IMPORTANT]
180
196
> During this operation, all VMSS instances will be upgraded and re-imaged to fit the new SSH key.
181
197
You can’t perform that action at this time.
0 commit comments