Skip to content

Commit 4093689

Browse files
authored
Merge pull request #180449 from KimForss/master
Update automation-tutorial.md
2 parents d649af2 + 1e87e3e commit 4093689

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

articles/virtual-machines/workloads/sap/automation-tutorial.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -574,9 +574,9 @@ export region_code="NOEU"
574574
575575
cd "~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-${region_code}-SAP01-X00"
576576
577-
${DEPLOYMENT_REPO_PATH}/deploy/scripts/installer.sh \
578-
--parameterfile "DEV-${region_code}-SAP01-X00.tfvars" \
579-
--type sap_system \
577+
${DEPLOYMENT_REPO_PATH}/deploy/scripts/installer.sh \
578+
--parameterfile "DEV-${region_code}-SAP01-X00.tfvars" \
579+
--type sap_system \
580580
--auto-approve
581581
```
582582

@@ -668,22 +668,27 @@ Before you begin, log in to your Azure account. Then, check that you're in the c
668668
Navigate to the `DEV-NOEU-SAP01-X00` subfolder inside the `SYSTEM` folder. Then, run this command:
669669

670670
```bash
671-
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-NOEU-SAP01-X00
671+
export region_code="NOEU"
672672
673-
${DEPLOYMENT_REPO_PATH}/deploy/scripts/remover.sh \
674-
--parameter_file DEV-NOEU-SAP01-X00.tfvars \
675-
--type sap_system
673+
cd "~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-${region_code}-SAP01-X00"
674+
675+
${DEPLOYMENT_REPO_PATH}/deploy/scripts/remover.sh \
676+
--parameterfile "DEV-${region_code}-SAP01-X00.tfvars" \
677+
--type sap_system
676678
```
677679

678680
### Remove SAP workload zone
679681

680682
Navigate to the `DEV-XXXX-SAP01-INFRASTRUCTURE` subfolder inside the `LANDSCAPE` folder. Then, execute the following command.
681683

682684
```bash
683-
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/DEV-NOEU-SAP01-INFRASTRUCTURE
685+
686+
export region_code="NOEU"
687+
688+
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/DEV-${region_code}-SAP01-INFRASTRUCTURE
684689
685690
${DEPLOYMENT_REPO_PATH}/deploy/scripts/remover.sh \
686-
--parameter_file DEV-NOEU-SAP01-INFRASTRUCTURE.tfvars \
691+
--parameterfile DEV-${region_code}-SAP01-INFRASTRUCTURE.tfvars \
687692
--type sap_landscape
688693
```
689694

@@ -701,7 +706,6 @@ Export the following two environment variables.
701706

702707
```bash
703708
export DEPLOYMENT_REPO_PATH="~/Azure_SAP_Automated_Deployment/sap-automation"
704-
705709
export ARM_SUBSCRIPTION_ID="<subscriptionID>"
706710
```
707711

@@ -710,16 +714,12 @@ Run the following command.
710714
```bash
711715
export region_code="NOEU"
712716
713-
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
714-
export ARM_SUBSCRIPTION_ID="${subscriptionID}"
715-
716717
${DEPLOYMENT_REPO_PATH}/deploy/scripts/remove_region.sh \
717718
--deployer_parameter_file DEPLOYER/MGMT-${region_code}-DEP00-INFRASTRUCTURE/MGMT-${region_code}-DEP00-INFRASTRUCTURE.tfvars \
718-
--library_parameter_file LIBRARY/MGMT-${region_code}-SAP_LIBRARY/MGMT-${region_code}-SAP_LIBRARY.tfvars \
719+
--library_parameter_file LIBRARY/MGMT-${region_code}-SAP_LIBRARY/MGMT-${region_code}-SAP_LIBRARY.tfvars
719720
```
720721

721-
Verify that all resources are now cleaned up.
722-
722+
Verify that all resources are cleaned up.
723723

724724
## Next steps
725725

0 commit comments

Comments
 (0)