Skip to content

Commit 0e56a21

Browse files
committed
Create README template
1 parent 7e072c4 commit 0e56a21

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

scenarios/AksOpenAiTerraform/README.md

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

11+
<!-- TODO: PARAMETERIZE REGION AND SUB IDS -->
12+
1113
## Install AKS extension
1214

1315
Run commands below to set up AKS extensions for Azure.
1416

1517
```bash
16-
# ./terraform/register-preview-features.sh
17-
echo "HI"
18-
```
18+
./terraform/register-preview-features.sh
19+
```
20+
21+
## Set up service principal
22+
23+
A Service Principal is an application within Azure Active Directory with the authentication tokens Terraform needs to perform actions on your behalf.
24+
25+
```bash
26+
# TODO: fix
27+
# az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/$ARM_SUBSCRIPTION_ID"
28+
```
29+
30+
## Setup Infra
31+
32+
```bash
33+
export ARM_SUBSCRIPTION_ID="0c8875c7-e423-4caa-827a-1f0350bd8dd3"
34+
# For debugging in powershell
35+
# $env:ARM_SUBSCRIPTION_ID = "0c8875c7-e423-4caa-827a-1f0350bd8dd3"
36+
37+
terraform apply
38+
```
39+
40+
## Set up environment
41+
42+
```bash
43+
export ARM_CLIENT_ID=""
44+
export ARM_CLIENT_SECRET=""
45+
export ARM_SUBSCRIPTION_ID=""
46+
export ARM_TENANT_ID=""
47+
```

0 commit comments

Comments
 (0)