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
@@ -36,163 +36,38 @@ Before you begin, make sure you have the following prerequisites:
36
36
37
37
To create an SSH key pair (same as Azure AKS), use the following procedure:
38
38
39
-
1.[Open a Cloud Shell session](https://shell.azure.com) in your browser.
40
-
1. Create an SSH key pair using the `az sshkey create` Azure CLI command or the `ssh-keygen` command:
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`:
41
41
42
42
```azurecli
43
-
# Create an SSH key pair using Azure CLI
44
-
az sshkey create --name "mySSHKey" --resource-group "myResourceGroup"
43
+
az sshkey create --name <Public_SSH_Key> --resource-group <Resource_Group_Name>
45
44
```
46
45
47
-
Or, create an SSH key pair using `ssh-keygen`:
46
+
Or, create a local SSH key pair using `ssh-keygen`:
48
47
49
48
```bash
50
49
ssh-keygen -t rsa -b 4096
51
50
```
52
51
53
-
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).
54
-
55
-
## Update and review the Bicep scripts
56
-
57
-
This section shows the Bicep parameter and template files. These files are also available in an [Azure Quickstart template](https://github.com/Azure/azure-quickstart-templates).
58
-
59
-
### Bicep parameter file: aksarc.bicepparam
60
-
61
-
```bicep
62
-
using 'main.bicep'
63
-
param aksClusterName = 'aksarc-bicep-new'
64
-
param aksControlPlaneIP = 'x.x.x.x'
65
-
param sshPublicKey = 'ssh_public_key'
66
-
param hciLogicalNetworkName = 'lnet_name'
67
-
param hciCustomLocationName = 'cl_name'
68
-
param aksNodePoolOSType = 'Linux'
69
-
param aksNodePoolNodeCount = 1
70
-
```
71
-
72
-
### Bicep template file: main.bicep
73
-
74
-
```bicep
75
-
@description('The name of AKS Arc cluster resource')
76
-
param aksClusterName string
77
-
param location string = 'eastus'
78
-
79
-
// Default to 1 node CP
80
-
@description('The name of AKS Arc cluster control plane IP, provide this parameter during deployment')
The **Microsoft.HybridContainerService/provisionedClusterInstances** resource is defined in the Bicep file. If you want to explore more properties, [see the API reference](/azure/templates/microsoft.hybridcontainerservice/provisionedclusterinstances?pivots=deployment-language-bicep).
182
-
183
-
## Deploy the Bicep file
184
-
185
-
1. Save the Bicep file as **main.bicep** to your local computer.
186
-
1. Update the parameters defined in **aksarc.bicepparam** and save it to your local computer.
187
-
1. Deploy the Bicep file using Azure CLI:
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).
53
+
54
+
## Download and update the Bicep scripts
55
+
56
+
Download these two files from the [AKSArc GitHub repo](https://github.com/Azure/aksArc/tree/main/deploymentTemplates) for your Bicep deployment: **main.bicep** and **aksarc.bicepparam**. Update the parameters from **aksarc.bicepparam** as needed, and make sure all the default values from **main.bicep** are correct.
57
+
58
+
The **Microsoft.HybridContainerService/provisionedClusterInstances** resource type is defined in **main.bicep**. If you want to customize more properties for cluster creation, see the [**provisionedClusterInstances** API Reference](/azure/templates/microsoft.hybridcontainerservice/provisionedclusterinstances?pivots=deployment-language-bicep).
59
+
60
+
## Deploy the Bicep templates
61
+
62
+
Create a Bicep deployment using Azure CLI:
188
63
189
64
```azurecli
190
-
az deployment group create --name BicepDeployment --resource-group myResourceGroupName --template-file main.bicep –-parameters aksarc.bicepparam
65
+
az deployment group create --name BicepDeployment --resource-group <Resource_Group_Name> --parameters aksarc.bicepparam
191
66
```
192
67
193
-
## Validate the Bicep deployment and connect to the cluster
68
+
## Validate the deployment and connect to the cluster
194
69
195
-
You can now connect to your Kubernetes cluster by running the `az connectedk8s proxy` command from your development machine. You can also use **kubectl** to see the node and pod status. Follow the same steps as described in [Connect to the Kubernetes cluster](aks-create-clusters-cli.md#connect-to-the-kubernetes-cluster).
70
+
You can now connect to your Kubernetes cluster by running `az connectedk8s proxy` command from your development machine. You can also use **kubectl** to see the node and pod status. Follow the same steps as described in [Connect to the Kubernetes cluster](aks-create-clusters-cli.md#connect-to-the-kubernetes-cluster).
0 commit comments