@@ -170,11 +170,11 @@ When you choose a name for your service principal, make sure that the name is un
170
170
1. Give the service principal Contributor and User Access Administrator permissions.
171
171
172
172
```cloudshell-interactive
173
- export subscriptionId ="<subscriptionId>"
173
+ export ARM_SUBSCRIPTION_ID ="<subscriptionId>"
174
174
export control_plane_env_code="MGMT"
175
175
176
176
az ad sp create-for-rbac --role="Contributor" \
177
- --scopes="/subscriptions/${subscriptionId}" \
177
+ --scopes="/subscriptions/${ARM_SUBSCRIPTION_ID}" \
178
178
--name="${control_plane_env_code}-Deployment-Account"
179
179
```
180
180
@@ -207,7 +207,7 @@ When you choose a name for your service principal, make sure that the name is un
207
207
208
208
az role assignment create --assignee ${appId} \
209
209
--role "User Access Administrator" \
210
- --scope /subscriptions/${subscriptionId }
210
+ --scope /subscriptions/${ARM_SUBSCRIPTION_ID }
211
211
```
212
212
213
213
If you don't assign the User Access Administrator role to the service principal, you can't assign permissions by using the automation.
@@ -308,27 +308,27 @@ The sample SAP library configuration file `MGMT-NOEU-SAP_LIBRARY.tfvars` is in t
308
308
309
309
```bash
310
310
311
- export subscriptionId ="<subscriptionId>"
312
- export spn_id ="<appId >"
313
- export spn_secret ="<password>"
314
- export tenant_id ="<tenantId >"
315
- export env_code="MGMT"
316
- export vnet_code="DEP00"
317
- export region_code="<region_code>"
311
+ export ARM_SUBSCRIPTION_ID ="<subscriptionId>"
312
+ export ARM_CLIENT_ID ="<appID >"
313
+ export ARM_CLIENT_SECRET ="<password>"
314
+ export ARM_TENANT_ID ="<tenant >"
315
+ export env_code="MGMT"
316
+ export vnet_code="DEP00"
317
+ export region_code="<region_code>"
318
318
319
319
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
320
320
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
321
- export ARM_SUBSCRIPTION_ID="${subscriptionId}"
321
+
322
322
323
323
cd $CONFIG_REPO_PATH
324
324
325
325
${DEPLOYMENT_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
326
326
--deployer_parameter_file DEPLOYER/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars \
327
327
--library_parameter_file LIBRARY/${env_code}-${region_code}-SAP_LIBRARY/${env_code}-${region_code}-SAP_LIBRARY.tfvars \
328
- --subscription "${subscriptionId}" \
329
- --spn_id "${spn_id}" \
330
- --spn_secret "${spn_secret}" \
331
- --tenant_id "${tenant_id}" \
328
+ --subscription "${ARM_SUBSCRIPTION_ID}" \
329
+ --spn_id "${ARM_CLIENT_ID}" \
330
+ --spn_secret "${ARM_CLIENT_SECRET}" \
331
+ --tenant_id "${ARM_TENANT_ID}" \
332
332
--auto-approve
333
333
```
334
334
@@ -837,14 +837,14 @@ Before you begin, sign in to your Azure account. Then, check that you're in the
837
837
Go to the ` DEV-NOEU-SAP01-X00` subfolder inside the ` SYSTEM` folder. Then, run this command:
838
838
839
839
` ` ` bash
840
- export sap_env_code=" DEV"
841
- export region_code=" NOEU"
842
- export vnet_code= " SAP01 "
840
+ export sap_env_code=" DEV"
841
+ export region_code=" NOEU"
842
+ export sap_vnet_code= " SAP02 "
843
843
844
- cd ~ /Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/${sap_env_code} -${region_code} -${vnet_code } -X00
844
+ cd ~ /Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/${sap_env_code} -${region_code} -${sap_vnet_code } -X00
845
845
846
846
${DEPLOYMENT_REPO_PATH} /deploy/scripts/remover.sh \
847
- --parameterfile " ${sap_env_code} -${region_code} -${vnet_code } -X00.tfvars" \
847
+ --parameterfile " ${sap_env_code} -${region_code} -${sap_vnet_code } -X00.tfvars" \
848
848
--type sap_system
849
849
` ` `
850
850
@@ -854,14 +854,14 @@ Go to the `DEV-XXXX-SAP01-INFRASTRUCTURE` subfolder inside the `LANDSCAPE` folde
854
854
855
855
` ` ` bash
856
856
857
- export sap_env_code=" DEV"
858
- export region_code=" NOEU"
859
- export vnet_code =" SAP01"
857
+ export sap_env_code=" DEV"
858
+ export region_code=" NOEU"
859
+ export sap_vnet_code =" SAP01"
860
860
861
- cd ~ /Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/${sap_env_code} -${region_code} -${vnet_code } -INFRASTRUCTURE
861
+ cd ~ /Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/${sap_env_code} -${region_code} -${sap_vnet_code } -INFRASTRUCTURE
862
862
863
863
${DEPLOYMENT_REPO_PATH} /deploy/scripts/remover.sh \
864
- --parameterfile ${sap_env_code} -${region_code} -${vnet_code } -INFRASTRUCTURE.tfvars \
864
+ --parameterfile ${sap_env_code} -${region_code} -${sap_vnet_code } -INFRASTRUCTURE.tfvars \
865
865
--type sap_landscape
866
866
` ` `
867
867
0 commit comments