Skip to content

Commit aa66f48

Browse files
author
Kimmo Forss
committed
Add App registration
1 parent 270100a commit aa66f48

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

articles/sap/automation/tutorial.md

Lines changed: 42 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ A valid SAP user account (SAP-User or S-User account) with software download pri
158158
159159
To run the automation framework, update to the following versions:
160160
161-
- `az` version 2.4.0 or higher.
161+
- `az` version 2.5.0 or higher.
162162
- `terraform` version 1.5 or higher. [Upgrade by using the Terraform instructions](https://www.terraform.io/upgrade-guides/0-12.html), as necessary.
163163
164164
## Create a service principal
@@ -214,6 +214,47 @@ When you choose a name for your service principal, make sure that the name is un
214214
> [!IMPORTANT]
215215
> If you don't assign the User Access Administrator role to the service principal, you can't assign permissions by using the automation.
216216
217+
## Configure the Control Plane Web Application credentials
218+
219+
As a part of the SAP automation framework control plane, you can optionally create an interactive web application that assists you in creating the required configuration files and deploying SAP workload zones and systems using Azure Pipelines.
220+
221+
:::image type="content" source="./media/deployment-framework/webapp-front-page.png" alt-text="Web app front page":::
222+
223+
224+
### Create an app registration
225+
226+
If you would like to use the web app, you must first create an app registration for authentication purposes. Open the Azure Cloud Shell and execute the following commands:
227+
228+
Replace MGMT with your environment as necessary.
229+
```bash
230+
echo '[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"e1fe6dd8-ba31-4d61-89e7-88639da4683d","type":"Scope"}]}]' >> manifest.json
231+
232+
app_registration_app_id=$(az ad app create \
233+
--display-name MGMT-webapp-registration \
234+
--enable-id-token-issuance true \
235+
--sign-in-audience AzureADMyOrg \
236+
--required-resource-access @manifest.json \
237+
--query "appId" | tr -d '"')
238+
239+
webapp_client_secret=$(az ad app credential reset \
240+
--id $TF_VAR_app_registration_app_id --append \
241+
--query "password" | tr -d '"')
242+
243+
echo "App registration ID: ${app_registration_app_id}"
244+
echo "App registration password: ${webapp_client_secret}"
245+
246+
rm manifest.json
247+
```
248+
249+
1. Copy down the output details. Make sure to save the values for `appId`, `password`, and `Tenant`.
250+
251+
The output maps to the following parameters. You use these parameters in later steps, with automation commands.
252+
253+
| Parameter input name | Output name |
254+
| -------------------------|--------------------------------- |
255+
| `app_registration_app_id`| `App registration ID` |
256+
| `webapp_client_secret` | `App registration password` |
257+
217258
## View configuration files
218259

219260
1. Open Visual Studio Code from Cloud Shell.

0 commit comments

Comments
 (0)