Skip to content

Commit 0cab934

Browse files
committed
Undo
1 parent d23df95 commit 0cab934

File tree

1 file changed

+3
-11
lines changed

1 file changed

+3
-11
lines changed

scenarios/AksOpenAiTerraform/README.md

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

11-
## Authenticate (~1 minute)
12-
Create a new service principal and pass it to Terraform so it can manage Azure resources on your behalf.
13-
```bash
14-
export SERVICE_PRINCIPAL=$(az ad sp create-for-rbac --name "ExecutableDocs" --role="Contributor" --scopes="/subscriptions/$SUBSCRIPTION_ID")
15-
export ARM_CLIENT_ID=$(jq -r .appId <<< "$SERVICE_PRINCIPAL")
16-
export ARM_CLIENT_SECRET=$(jq -r .password <<< "$SERVICE_PRINCIPAL")
17-
export ARM_TENANT_ID=$(jq -r .tenant <<< "$SERVICE_PRINCIPAL")
18-
export ARM_SUBSCRIPTION_ID=$SUBSCRIPTION_ID
19-
```
20-
2111
## Provision Resources with Terraform (~5 minutes)
2212
Run terraform to provision all the Azure resources required to setup your new OpenAI website.
2313
```bash
2414
# Terraform parses TF_VAR_* as vars (Ex: TF_VAR_name -> name)
25-
export TF_VAR_location=$REGION
15+
export TF_VAR_location="westus3"
2616
export TF_VAR_kubernetes_version="1.30.9"
2717
export TF_VAR_model_name="gpt-4o-mini"
2818
export TF_VAR_model_version="2024-07-18"
19+
# Terraform consumes sub id as $ARM_SUBSCRIPTION_ID
20+
export ARM_SUBSCRIPTION_ID=$SUBSCRIPTION_ID
2921
# Run Terraform
3022
terraform -chdir=terraform init
3123
terraform -chdir=terraform apply -auto-approve

0 commit comments

Comments
 (0)