You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: AKS-Arc/create-clusters-bicep.md
+12-9Lines changed: 12 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ title: Create Kubernetes clusters using Bicep
3
3
description: Learn how to create Kubernetes clusters in Azure Local using Bicep.
4
4
ms.topic: how-to
5
5
ms.custom: devx-track-azurecli
6
-
ms.date: 07/26/2024
6
+
ms.date: 02/26/2025
7
7
author: sethmanheim
8
8
ms.author: sethm
9
9
ms.reviewer: haojiehang
@@ -34,22 +34,25 @@ Before you begin, make sure you have the following prerequisites:
34
34
35
35
## Create an SSH key pair
36
36
37
-
To create an SSH key pair (same as Azure AKS), use the following procedure:
37
+
Create an SSH key pair in Azure and store the private key file for troubleshooting and log collection purposes. For detailed instructions, see [Create and store SSH keys with the Azure CLI](/azure/virtual-machines/ssh-keys-azure-cli) or in the [Azure portal](/azure/virtual-machines/ssh-keys-portal).
38
38
39
-
1.[Open a Cloud Shell session](https://shell.azure.com) in your browser or open a terminal on your local machine.
40
-
1. Create an SSH key pair using `az sshkey create`:
39
+
1.[Open a Cloud Shell session](https://shell.azure.com/) in your web browser or launch a terminal on your local machine.
40
+
1. Create an SSH key pair using the [az sshkey create](/cli/azure/sshkey#az-sshkey-create) command:
41
41
42
42
```azurecli
43
-
az sshkey create --name <Public_SSH_Key> --resource-group <Resource_Group_Name>
43
+
az sshkey create --name "mySSHKey" --resource-group $<resource_group_name>
44
44
```
45
45
46
-
Or, create a local SSH key pair using `ssh-keygen`:
46
+
or, use the `ssh-keygen` command:
47
47
48
-
```bash
49
-
ssh-keygen -t rsa -b 4096
48
+
```azurecli
49
+
ssh-keygen -t rsa -b 4096
50
50
```
51
51
52
-
It's recommended that you create an SSH key pair in Azure, as you can use it later for node access or troubleshooting. For more information about creating SSH keys, see [Create and manage SSH keys for authentication in Azure](/azure/virtual-machines/linux/create-ssh-keys-detailed) and [Restrict SSH Access](restrict-ssh-access.md).
52
+
1. Retrieve the value of your public key from Azure or from your local machine under **/.ssh/id_rsa.pub**.
53
+
54
+
For more options, you can either follow [Configure SSH keys for an AKS cluster](/azure/aks/aksarc/configure-ssh-keys) to create SSH keys, or use [Restrict SSH access](/azure/aks/aksarc/restrict-ssh-access) during cluster creation. To access nodes afterward, see [Connect to Windows or Linux worker nodes with SSH](/azure/aks/aksarc/ssh-connect-to-windows-and-linux-worker-nodes).
0 commit comments