Skip to content

Commit 1d98aa8

Browse files
author
Kimmo Forss
committed
control plane updates
1 parent a89ad34 commit 1d98aa8

File tree

2 files changed

+33
-27
lines changed

2 files changed

+33
-27
lines changed

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

Lines changed: 32 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ It's currently not possible to perform this action from Azure DevOps.
100100

101101
## Deploy the control plane
102102

103-
The sample Deployer configuration file `MGMT-WEEU-DEP00-INFRASTRUCTURE.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/WORKSPACES/DEPLOYER/MGMT-WEEU-DEP00-INFRASTRUCTURE` folder.
103+
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.
104104

105-
The sample SAP Library configuration file `MGMT-WEEU-SAP_LIBRARY.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/WORKSPACES/LIBRARY/MGMT-WEEU-SAP_LIBRARY` folder.
105+
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.
106106

107107
Running the following command creates the Deployer, the SAP Library and adds the Service Principal details to the deployment key vault. If you followed the web app setup in the step above, this command will also create the infrastructure to host the application.
108108

@@ -115,32 +115,38 @@ Run the following command to deploy the control plane:
115115
```bash
116116

117117
az logout
118-
az login
119-
cd ~/Azure_SAP_Automated_Deployment/samples/WORKSPACES
120-
121-
export subscriptionId="<subscriptionId>"
122-
export spn_id="<appId>"
123-
export spn_secret="<password>"
124-
export tenant_id="<tenantId>"
125-
export env_code="MGMT"
126-
export region_code="WEEU"
127-
128-
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
129-
export ARM_SUBSCRIPTION_ID="${subscriptionId}"
130-
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/samples/Terraform/WORKSPACES"
131-
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
132-
133-
134-
${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
135-
--deployer_parameter_file DEPLOYER/${env_code}-${region_code}-DEP00-INFRASTRUCTURE/${env_code}-${region_code}-DEP00-INFRASTRUCTURE.tfvars \
136-
--library_parameter_file "LIBRARY/${env_code}-${region_code}-SAP_LIBRARY/${env_code}-${region_code}-SAP_LIBRARY.tfvars" \
137-
--subscription "${subscriptionId}" \
138-
--spn_id "${spn_id}" \
139-
--spn_secret "${spn_secret}" \
140-
--tenant_id "${tenant_id}" \
141-
--auto-approve
118+
cd ~/Azure_SAP_Automated_Deployment
119+
cp -Rp samples/Terraform/WORKSPACES config
120+
cd config/WORKSPACES
121+
122+
export subscriptionId="<subscriptionId>"
123+
export spn_id="<appId>"
124+
export spn_secret="<password>"
125+
export tenant_id="<tenantId>"
126+
export env_code="MGMT"
127+
export region_code="WEEU"
128+
export vnet_code="WEEU"
129+
130+
az login --service-principal -u $spn_id -p=$spn_secret --tenant $tenant_id
131+
132+
133+
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
134+
export ARM_SUBSCRIPTION_ID="${subscriptionId}"
135+
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/config/WORKSPACES"
136+
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
137+
138+
139+
sudo ${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
140+
--deployer_parameter_file "${CONFIG_REPO_PATH}/DEPLOYER/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars" \
141+
--library_parameter_file "${CONFIG_REPO_PATH}/LIBRARY/${env_code}-${region_code}-SAP_LIBRARY/${env_code}-${region_code}-SAP_LIBRARY.tfvars" \
142+
--subscription "${subscriptionId}" \
143+
--spn_id "${spn_id}" \
144+
--spn_secret "${spn_secret}" \
145+
--tenant_id "${tenant_id}" \
146+
--auto-approve
142147
```
143148

149+
144150
# [Windows](#tab/windows)
145151

146152
You can't perform this action from Windows

articles/sap/automation/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The ~/Azure_SAP_Automated_Deployment/samples folder contains a set of sample con
8080
```bash
8181
cd ~/Azure_SAP_Automated_Deployment
8282

83-
cp -Rp samples/Terraform/WORKSPACES config/WORKSPACES
83+
cp -Rp samples/Terraform/WORKSPACES config
8484
```
8585

8686

0 commit comments

Comments
 (0)