File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
scenarios/AksOpenAiTerraform Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,8 @@ terraform -chdir=terraform apply -auto-approve
27
27
In order to use the kubectl to run commands on the newly created cluster, you must first login.
28
28
``` bash
29
29
RESOURCE_GROUP=$( terraform -chdir=terraform output -raw resource_group_name)
30
- az aks get-credentials --admin --name AksCluster --resource-group $RESOURCE_GROUP --subscription $SUBSCRIPTION_ID
30
+ AKS_CLUSTER_NAME=$( terraform -chdir=terraform output -raw aks_cluster_name)
31
+ az aks get-credentials --admin --name $AKS_CLUSTER_NAME --resource-group $RESOURCE_GROUP --subscription $SUBSCRIPTION_ID
31
32
```
32
33
33
34
# Install Helm Charts
Original file line number Diff line number Diff line change @@ -2,6 +2,10 @@ output "resource_group_name" {
2
2
value = azurerm_resource_group. main . name
3
3
}
4
4
5
+ output "aks_cluster_name" {
6
+ value = azurerm_kubernetes_cluster. main . name
7
+ }
8
+
5
9
output "workload_identity_client_id" {
6
10
value = azurerm_user_assigned_identity. workload . client_id
7
11
}
You can’t perform that action at this time.
0 commit comments