Skip to content

Commit 370e790

Browse files
committed
Fix again
1 parent 630c4a4 commit 370e790

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

scenarios/AksOpenAiTerraform/README.md

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ ms.author: ariaamini
88
ms.custom: innovation-engine, linux-related-content
99
---
1010

11-
## Provision Resources with Terraform (~5 minutes)
12-
Run terraform to provision all the Azure resources required to setup your new OpenAI website.
11+
## Authenticate
12+
Create a new service principal and pass it to Terraform so it can manage Azure resources on your behalf.
1313
```bash
14-
# Authenticate
14+
export SERVICE_PRINCIPAL=$(az ad sp create-for-rbac --name "ExecutableDocs" --role="Contributor" --scopes="/subscriptions/$SUBSCRIPTION_ID")
15+
export ARM_CLIENT_ID=$(jq .appId <<< "$SERVICE_PRINCIPAL")
16+
export ARM_CLIENT_SECRET=$(jq .password <<< "$SERVICE_PRINCIPAL")
17+
export ARM_TENANT_ID=$(jq .tenant <<< "$SERVICE_PRINCIPAL")
1518
export ARM_SUBSCRIPTION_ID=$SUBSCRIPTION_ID
16-
az ad sp create-for-rbac --name "ExecutableDocs" --role="Contributor" --scopes="/subscriptions/$ARM_SUBSCRIPTION_ID"
17-
export ARM_CLIENT_ID=$(jq .appId <<< "$SP")
18-
export ARM_CLIENT_SECRET=$(jq .password <<< "$SP")
19-
export ARM_TENANT_ID=$(jq .tenant <<< "$SP")
19+
```
2020

21+
## Provision Resources with Terraform (~5 minutes)
22+
Run terraform to provision all the Azure resources required to setup your new OpenAI website.
23+
```bash
2124
# Terraform parses TF_VAR_* as vars (Ex: TF_VAR_name -> name)
2225
export TF_VAR_location=$REGION
2326
export TF_VAR_kubernetes_version="1.30.9"

0 commit comments

Comments
 (0)