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-terraform.md
+8-6Lines changed: 8 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ description: Learn how to create Kubernetes clusters using Terraform.
4
4
author: sethmanheim
5
5
ms.author: sethm
6
6
ms.topic: how-to
7
-
ms.date: 02/10/2025
7
+
ms.date: 02/26/2025
8
8
9
9
---
10
10
@@ -32,23 +32,25 @@ Before you begin, make sure you have the following prerequisites:
32
32
33
33
## Create an SSH key pair
34
34
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).
36
36
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:
39
39
40
40
```azurecli
41
-
az sshkey create --name "mySSHKey" --resource-group "myResourceGroup"
41
+
az sshkey create --name "mySSHKey" --resource-group $<resource_group_name>
42
42
```
43
43
44
-
or
44
+
or, use the `ssh-keygen` command:
45
45
46
46
```azurecli
47
47
ssh-keygen -t rsa -b 4096
48
48
```
49
49
50
50
1. Retrieve the value of your public key from Azure or from your local machine under **/.ssh/id_rsa.pub**.
51
51
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
+
52
54
## Sign in to Azure
53
55
54
56
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