Skip to content

Commit faf7755

Browse files
committed
edit pass: two-sap-automation-articles
1 parent b23d5ed commit faf7755

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

articles/sap/automation/tutorial.md

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -228,31 +228,30 @@ Replace LAB with your environment, as necessary.
228228
229229
```bash
230230
export env_code="LAB"
231-
232-
231+
232+
233233
echo '[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"e1fe6dd8-ba31-4d61-89e7-88639da4683d","type":"Scope"}]}]' >> manifest.json
234-
234+
235235
export TF_VAR_app_registration_app_id=$(az ad app create \
236236
--display-name ${env_code}-webapp-registration \
237237
--enable-id-token-issuance true \
238238
--sign-in-audience AzureADMyOrg \
239239
--required-resource-access @manifest.json \
240240
--query "appId" --output tsv )
241-
241+
242+
#remove the placeholder manifest.jsonrm manifest.json
243+
242244
export TF_VAR_webapp_client_secret=$(az ad app credential reset \
243245
--id $TF_VAR_app_registration_app_id --append \
244246
--query "password" --output tsv )
245-
247+
246248
export TF_use_webapp=true
247-
248-
249+
250+
249251
echo "App registration ID: ${TF_VAR_app_registration_app_id}"
250252
echo "App registration password: ${TF_VAR_webapp_client_secret}"
251253
```
252254

253-
rm manifest.json
254-
```
255-
256255
>[!NOTE]
257256
>Ensure that you're logged on by using a user account that has the required permissions to create application registrations. For more information about app registrations, see [Create an app registration](/cli/azure/ad/app#az-ad-app-create).
258257
>

0 commit comments

Comments
 (0)