File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
scenarios/AksOpenAiTerraform Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -8,13 +8,13 @@ ms.author: ariaamini
8
8
ms.custom : innovation-engine, linux-related-content
9
9
---
10
10
11
- ## Authenticate
11
+ ## Authenticate ( ~ 1 minute)
12
12
Create a new service principal and pass it to Terraform so it can manage Azure resources on your behalf.
13
13
``` bash
14
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" )
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
18
export ARM_SUBSCRIPTION_ID=$SUBSCRIPTION_ID
19
19
```
20
20
You can’t perform that action at this time.
0 commit comments