Skip to content

Commit 7880ef8

Browse files
author
Kimmo Forss
committed
Control plane deployment updates
1 parent 2d5f801 commit 7880ef8

File tree

1 file changed

+62
-47
lines changed

1 file changed

+62
-47
lines changed

articles/sap/automation/deploy-control-plane.md

Lines changed: 62 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -43,62 +43,23 @@ Optionally, assign the following permissions to the service principal:
4343
az role assignment create --assignee <appId> --role "User Access Administrator" --scope /subscriptions/<subscriptionID>/resourceGroups/<resourceGroupName>
4444
```
4545

46-
## Prepare the web app
47-
This step is optional. If you want a browser-based UX to help the configuration of SAP workload zones and systems, run the following commands before you deploy the control plane.
48-
49-
# [Linux](#tab/linux)
50-
51-
```bash
52-
echo '[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"e1fe6dd8-ba31-4d61-89e7-88639da4683d","type":"Scope"}]}]' >> manifest.json
5346

54-
region_code=WEEU
55-
56-
export TF_VAR_app_registration_app_id=$(az ad app create \
57-
--display-name ${region_code}-webapp-registration \
58-
--enable-id-token-issuance true \
59-
--sign-in-audience AzureADMyOrg \
60-
--required-resource-access @manifest.json \
61-
--query "appId" | tr -d '"')
62-
63-
export TF_VAR_webapp_client_secret=$(az ad app credential reset \
64-
--id $TF_VAR_app_registration_app_id --append \
65-
--query "password" | tr -d '"')
66-
67-
export TF_VAR_use_webapp=true
68-
rm manifest.json
69-
70-
```
71-
# [Windows](#tab/windows)
72-
73-
```powershell
47+
## Deploy the control plane
7448

75-
Add-Content -Path manifest.json -Value '[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"e1fe6dd8-ba31-4d61-89e7-88639da4683d","type":"Scope"}]}]'
49+
All the artifacts that are required to deploy the control plane are located in GitHub repositories.
7650

77-
$region_code="WEEU"
51+
Prepare for the control plane deployment by cloning the repositories using the following commands:
7852

79-
$env:TF_VAR_app_registration_app_id = (az ad app create `
80-
--display-name $region_code-webapp-registration `
81-
--required-resource-accesses ./manifest.json `
82-
--query "appId").Replace('"',"")
8353

84-
$env:TF_VAR_webapp_client_secret=(az ad app credential reset `
85-
--id $env:TF_VAR_app_registration_app_id --append `
86-
--query "password").Replace('"',"")
54+
```bash
55+
mkdir -p ~/Azure_SAP_Automated_Deployment; cd $_
8756

88-
$env:TF_VAR_use_webapp="true"
57+
git clone https://github.com/Azure/sap-automation.git sap-automation
8958

90-
del manifest.json
59+
git clone https://github.com/Azure/sap-automation-samples.git samples
9160

9261
```
9362

94-
# [Azure DevOps](#tab/devops)
95-
96-
Currently, it isn't possible to perform this action from Azure DevOps.
97-
98-
---
99-
100-
## Deploy the control plane
101-
10263
The sample deployer configuration file `MGMT-WEEU-DEP00-INFRASTRUCTURE.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/Terraform/WORKSPACES/DEPLOYER/MGMT-WEEU-DEP00-INFRASTRUCTURE` folder.
10364

10465
The sample SAP library configuration file `MGMT-WEEU-SAP_LIBRARY.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/Terraform/WORKSPACES/LIBRARY/MGMT-WEEU-SAP_LIBRARY` folder.
@@ -119,7 +80,7 @@ export ARM_CLIENT_SECRET="<password>"
11980
export ARM_TENANT_ID="<tenantId>"
12081
export env_code="MGMT"
12182
export region_code="WEEU"
122-
export vnet_code="DEP01"
83+
export vnet_code="DEP00"
12384

12485
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
12586
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
@@ -251,6 +212,60 @@ cd sap-automation/deploy/scripts
251212

252213
The script installs Terraform and Ansible and configures the deployer.
253214

215+
## Prepare the web app
216+
This step is optional. If you want a browser-based UX to help the configuration of SAP workload zones and systems, run the following commands before you deploy the control plane.
217+
218+
# [Linux](#tab/linux)
219+
220+
```bash
221+
echo '[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"e1fe6dd8-ba31-4d61-89e7-88639da4683d","type":"Scope"}]}]' >> manifest.json
222+
223+
region_code=WEEU
224+
225+
export TF_VAR_app_registration_app_id=$(az ad app create \
226+
--display-name ${region_code}-webapp-registration \
227+
--enable-id-token-issuance true \
228+
--sign-in-audience AzureADMyOrg \
229+
--required-resource-access @manifest.json \
230+
--query "appId" | tr -d '"')
231+
232+
export TF_VAR_webapp_client_secret=$(az ad app credential reset \
233+
--id $TF_VAR_app_registration_app_id --append \
234+
--query "password" | tr -d '"')
235+
236+
export TF_VAR_use_webapp=true
237+
rm manifest.json
238+
239+
```
240+
# [Windows](#tab/windows)
241+
242+
```powershell
243+
244+
Add-Content -Path manifest.json -Value '[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"e1fe6dd8-ba31-4d61-89e7-88639da4683d","type":"Scope"}]}]'
245+
246+
$region_code="WEEU"
247+
248+
$env:TF_VAR_app_registration_app_id = (az ad app create `
249+
--display-name $region_code-webapp-registration `
250+
--required-resource-accesses ./manifest.json `
251+
--query "appId").Replace('"',"")
252+
253+
$env:TF_VAR_webapp_client_secret=(az ad app credential reset `
254+
--id $env:TF_VAR_app_registration_app_id --append `
255+
--query "password").Replace('"',"")
256+
257+
$env:TF_VAR_use_webapp="true"
258+
259+
del manifest.json
260+
261+
```
262+
263+
# [Azure DevOps](#tab/devops)
264+
265+
Currently, it isn't possible to perform this action from Azure DevOps.
266+
267+
---
268+
254269
## Next step
255270

256271
> [!div class="nextstepaction"]

0 commit comments

Comments
 (0)