Skip to content

Commit ade8d89

Browse files
Merge pull request #17123 from leslielin-5/patch-33
Update create-clusters-terraform.md
2 parents d7b43bc + 2444d5f commit ade8d89

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

AKS-Arc/create-clusters-terraform.md

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Learn how to create Kubernetes clusters using Terraform.
44
author: sethmanheim
55
ms.author: sethm
66
ms.topic: how-to
7-
ms.date: 02/10/2025
7+
ms.date: 02/26/2025
88

99
---
1010

@@ -32,23 +32,25 @@ Before you begin, make sure you have the following prerequisites:
3232

3333
## Create an SSH key pair
3434

35-
To create an SSH key pair (same as Azure AKS), use the following procedure:
35+
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).
3636

37-
1. [Open a Cloud Shell session](https://shell.azure.com/) in your browser.
38-
1. Create an SSH key pair using the [az sshkey create](/cli/azure/sshkey#az-sshkey-create) command, [from the portal](/azure/virtual-machines/ssh-keys-portal), or the `ssh-keygen`command:
37+
1. [Open a Cloud Shell session](https://shell.azure.com/) in your web browser or launch a terminal on your local machine.
38+
1. Create an SSH key pair using the [az sshkey create](/cli/azure/sshkey#az-sshkey-create) command:
3939

4040
```azurecli
41-
az sshkey create --name "mySSHKey" --resource-group "myResourceGroup"
41+
az sshkey create --name "mySSHKey" --resource-group $<resource_group_name>
4242
```
4343

44-
or
44+
or, use the `ssh-keygen` command:
4545

4646
```azurecli
4747
ssh-keygen -t rsa -b 4096
4848
```
4949

5050
1. Retrieve the value of your public key from Azure or from your local machine under **/.ssh/id_rsa.pub**.
5151

52+
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).
53+
5254
## Sign in to Azure
5355

5456
Terraform only supports authenticating to Azure with the Azure CLI using [`az login`](/cli/azure/reference-index#az-login). Authenticating using Azure PowerShell isn't supported. Therefore, while you can use the Azure PowerShell module when doing your Terraform work, you must first [authenticate to Azure](/azure/developer/terraform/authenticate-to-azure):

0 commit comments

Comments
 (0)