Skip to content

Commit 984cb78

Browse files
authored
Update create-clusters-bicep.md
update SSH key content
1 parent 4e40c7a commit 984cb78

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

AKS-Arc/create-clusters-bicep.md

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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 later use. For detailed instructions, see **Create and manage 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 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 additional 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)