Skip to content

Commit d4467a2

Browse files
committed
Fix output
1 parent 20b5073 commit d4467a2

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

scenarios/AksOpenAiTerraform/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ terraform -chdir=terraform apply -auto-approve
2727
In order to use the kubectl to run commands on the newly created cluster, you must first login.
2828
```bash
2929
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
3132
```
3233

3334
# Install Helm Charts

scenarios/AksOpenAiTerraform/terraform/outputs.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ output "resource_group_name" {
22
value = azurerm_resource_group.main.name
33
}
44

5+
output "aks_cluster_name" {
6+
value = azurerm_kubernetes_cluster.main.name
7+
}
8+
59
output "workload_identity_client_id" {
610
value = azurerm_user_assigned_identity.workload.client_id
711
}

0 commit comments

Comments
 (0)