Skip to content

Commit 24bc658

Browse files
Merge pull request #17124 from leslielin-5/patch-34
Update create-clusters-bicep.md
2 parents ade8d89 + 050ef48 commit 24bc658

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

AKS-Arc/create-clusters-bicep.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Create Kubernetes clusters using Bicep
33
description: Learn how to create Kubernetes clusters in Azure Local using Bicep.
44
ms.topic: how-to
55
ms.custom: devx-track-azurecli
6-
ms.date: 07/26/2024
6+
ms.date: 02/26/2025
77
author: sethmanheim
88
ms.author: sethm
99
ms.reviewer: haojiehang
@@ -34,22 +34,25 @@ Before you begin, make sure you have the following prerequisites:
3434

3535
## Create an SSH key pair
3636

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).
3838

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:
4141

4242
```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>
4444
```
4545

46-
Or, create a local SSH key pair using `ssh-keygen`:
46+
or, use the `ssh-keygen` command:
4747

48-
```bash
49-
ssh-keygen -t rsa -b 4096
48+
```azurecli
49+
ssh-keygen -t rsa -b 4096
5050
```
5151

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).
55+
5356

5457
## Download and update the Bicep scripts
5558

0 commit comments

Comments
 (0)