@@ -147,7 +147,7 @@ A valid SAP user account (SAP-User or S-User account) with software download pri
147
147
git clone https://github.com/Azure/sap-automation-samples.git samples
148
148
149
149
cp -Rp samples/Terraform/WORKSPACES ~/Azure_SAP_Automated_Deployment/WORKSPACES
150
-
150
+
151
151
```
152
152
153
153
1. Optionally, validate the versions of Terraform and the Azure CLI available on your instance of Cloud Shell.
@@ -263,7 +263,7 @@ If you don't assign the User Access Administrator role to the service principal,
263
263
264
264
# deployer_count defines how many deployer VMs will be deployed
265
265
deployer_count = 1
266
-
266
+
267
267
# use_service_endpoint defines that the management subnets have service endpoints enabled
268
268
use_service_endpoint = true
269
269
@@ -272,7 +272,7 @@ If you don't assign the User Access Administrator role to the service principal,
272
272
273
273
# enable_firewall_for_keyvaults_and_storage defines that the storage accounts and key vaults have firewall enabled
274
274
enable_firewall_for_keyvaults_and_storage = false
275
-
275
+
276
276
```
277
277
278
278
Note the Terraform variable file locations for future edits during deployment.
@@ -322,13 +322,13 @@ The sample SAP library configuration file `MGMT-NOEU-SAP_LIBRARY.tfvars` is in t
322
322
323
323
cd $CONFIG_REPO_PATH
324
324
325
- ${DEPLOYMENT_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
326
- --deployer_parameter_file DEPLOYER/${env_code}-${region_code}-DEP00 -INFRASTRUCTURE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars \
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}" \
325
+ ${DEPLOYMENT_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
326
+ --deployer_parameter_file DEPLOYER/${env_code}-${region_code}-${vnet_code} -INFRASTRUCTURE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars \
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}" \
332
332
--auto-approve
333
333
```
334
334
@@ -617,24 +617,25 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
617
617
The first time an environment is instantiated, a Service Principal must be registered. In this tutorial, the control plane is in the ` MGMT` environment and the workload zone is in ` DEV` . Therefore, a Service Principal must be registered for the ` DEV` environment.
618
618
619
619
` ` ` bash
620
- export subscriptionId=" <subscriptionId>"
621
- export spn_id=" <appID>"
622
- export spn_secret=" <password>"
623
- export tenant_id=" <tenant>"
624
- export key_vault=" <vaultID>"
625
- export env_code=" DEV"
626
- export region_code=" <region_code>"
620
+ export ARM_SUBSCRIPTION_ID=" <subscriptionId>"
621
+ export ARM_CLIENT_ID=" <appID>"
622
+ export ARM_CLIENT_SECRET=" <password>"
623
+ export ARM_TENANT_ID=" <tenant>"
624
+ export key_vault=" <vaultName>"
625
+ export env_code=" DEV"
626
+ export region_code=" <region_code>"
627
+
627
628
export SAP_AUTOMATION_REPO_PATH=" ${HOME} /Azure_SAP_Automated_Deployment/sap-automation"
628
629
export CONFIG_REPO_PATH=" ${HOME} /Azure_SAP_Automated_Deployment/WORKSPACES"
629
630
630
631
${SAP_AUTOMATION_REPO_PATH} /deploy/scripts/set_secrets.sh \
631
632
--environment " ${env_code} " \
632
633
--region " ${region_code} " \
633
634
--vault " ${key_vault} " \
634
- --subscription " ${subscriptionId} " \
635
- --spn_id " ${spn_id} " \
636
- --spn_secret " ${spn_secret} " \
637
- --tenant_id " ${tenant_id } "
635
+ --subscription " ${ARM_SUBSCRIPTION_ID} " \
636
+ --spn_id " ${ARM_CLIENT_ID} " \
637
+ --spn_secret " ${ARM_CLIENT_SECRET} " \
638
+ --tenant_id " ${ARM_TENANT_ID } "
638
639
` ` `
639
640
640
641
# # Prepare the workload zone deployment
@@ -672,29 +673,29 @@ Use the [install_workloadzone](bash/install-workloadzone.md) script to deploy th
672
673
export sap_env_code=" DEV"
673
674
export region_code=" <region_code>"
674
675
export key_vault=" <vaultID>"
675
-
676
+
676
677
export deployer_vnet_code=" DEP01"
677
678
export vnet_code=" SAP02"
678
-
679
+
679
680
export ARM_SUBSCRIPTION_ID=" <subscriptionId>"
680
681
export ARM_CLIENT_ID=" <appId>"
681
682
export ARM_CLIENT_SECRET=" <password>"
682
683
export ARM_TENANT_ID=" <tenantId>"
683
-
684
+
684
685
cd ~ /Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/${sap_env_code} -${region_code} -SAP01-INFRASTRUCTURE
685
-
686
+
686
687
export CONFIG_REPO_PATH=" ${HOME} /Azure_SAP_Automated_Deployment/WORKSPACES"
687
688
export SAP_AUTOMATION_REPO_PATH=" ${HOME} /Azure_SAP_Automated_Deployment/sap-automation"
688
-
689
+
689
690
az login --service-principal -u " ${ARM_CLIENT_ID} " -p=" ${ARM_CLIENT_SECRET} " --tenant " ${ARM_TENANT_ID} "
690
-
691
+
691
692
cd " ${CONFIG_REPO_PATH} /LANDSCAPE/${sap_env_code} -${region_code} -${vnet_code} -INFRASTRUCTURE"
692
693
parameterFile=" ${sap_env_code} -${region_code} -${vnet_code} -INFRASTRUCTURE.tfvars"
693
694
deployerState=" ${deployer_env_code} -${region_code} -${deployer_vnet_code} -INFRASTRUCTURE.terraform.tfstate"
694
-
695
+
695
696
$SAP_AUTOMATION_REPO_PATH /deploy/scripts/install_workloadzone.sh \
696
697
--parameterfile " ${parameterFile} " \
697
- --deployer_environment " ${deployer_env_code} " \
698
+ --deployer_environment " ${deployer_env_code} " \
698
699
--deployer_tfstate_key " ${deployerState} " \
699
700
--keyvault " ${key_vault} " \
700
701
--storageaccountname " ${tfstate_storage_account} " \
0 commit comments