Skip to content

Commit 1268afc

Browse files
author
Kimmo Forss
committed
Whitespace
1 parent 962bcc4 commit 1268afc

File tree

1 file changed

+30
-29
lines changed

1 file changed

+30
-29
lines changed

articles/sap/automation/tutorial.md

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ A valid SAP user account (SAP-User or S-User account) with software download pri
147147
git clone https://github.com/Azure/sap-automation-samples.git samples
148148
149149
cp -Rp samples/Terraform/WORKSPACES ~/Azure_SAP_Automated_Deployment/WORKSPACES
150-
150+
151151
```
152152
153153
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,
263263
264264
# deployer_count defines how many deployer VMs will be deployed
265265
deployer_count = 1
266-
266+
267267
# use_service_endpoint defines that the management subnets have service endpoints enabled
268268
use_service_endpoint = true
269269
@@ -272,7 +272,7 @@ If you don't assign the User Access Administrator role to the service principal,
272272
273273
# enable_firewall_for_keyvaults_and_storage defines that the storage accounts and key vaults have firewall enabled
274274
enable_firewall_for_keyvaults_and_storage = false
275-
275+
276276
```
277277
278278
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
322322
323323
cd $CONFIG_REPO_PATH
324324
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}" \
332332
--auto-approve
333333
```
334334
@@ -617,24 +617,25 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
617617
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.
618618

619619
```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+
627628
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
628629
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
629630
630631
${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/set_secrets.sh \
631632
--environment "${env_code}" \
632633
--region "${region_code}" \
633634
--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}"
638639
```
639640

640641
## Prepare the workload zone deployment
@@ -672,29 +673,29 @@ Use the [install_workloadzone](bash/install-workloadzone.md) script to deploy th
672673
export sap_env_code="DEV"
673674
export region_code="<region_code>"
674675
export key_vault="<vaultID>"
675-
676+
676677
export deployer_vnet_code="DEP01"
677678
export vnet_code="SAP02"
678-
679+
679680
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
680681
export ARM_CLIENT_ID="<appId>"
681682
export ARM_CLIENT_SECRET="<password>"
682683
export ARM_TENANT_ID="<tenantId>"
683-
684+
684685
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/${sap_env_code}-${region_code}-SAP01-INFRASTRUCTURE
685-
686+
686687
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
687688
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
688-
689+
689690
az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
690-
691+
691692
cd "${CONFIG_REPO_PATH}/LANDSCAPE/${sap_env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE"
692693
parameterFile="${sap_env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars"
693694
deployerState="${deployer_env_code}-${region_code}-${deployer_vnet_code}-INFRASTRUCTURE.terraform.tfstate"
694-
695+
695696
$SAP_AUTOMATION_REPO_PATH/deploy/scripts/install_workloadzone.sh \
696697
--parameterfile "${parameterFile}" \
697-
--deployer_environment "${deployer_env_code}" \
698+
--deployer_environment "${deployer_env_code}" \
698699
--deployer_tfstate_key "${deployerState}" \
699700
--keyvault "${key_vault}" \
700701
--storageaccountname "${tfstate_storage_account}" \

0 commit comments

Comments
 (0)