@@ -574,9 +574,9 @@ export region_code="NOEU"
574
574
575
575
cd "~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-${region_code}-SAP01-X00"
576
576
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 \
580
580
--auto-approve
581
581
` ` `
582
582
@@ -668,22 +668,27 @@ Before you begin, log in to your Azure account. Then, check that you're in the c
668
668
Navigate to the `DEV-NOEU-SAP01-X00` subfolder inside the `SYSTEM` folder. Then, run this command :
669
669
670
670
` ` ` bash
671
- cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV- NOEU-SAP01-X00
671
+ export region_code=" NOEU"
672
672
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
676
678
` ` `
677
679
678
680
# ## Remove SAP workload zone
679
681
680
682
Navigate to the `DEV-XXXX-SAP01-INFRASTRUCTURE` subfolder inside the `LANDSCAPE` folder. Then, execute the following command.
681
683
682
684
` ` ` 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
684
689
685
690
${DEPLOYMENT_REPO_PATH}/deploy/scripts/remover.sh \
686
- --parameter_file DEV-NOEU -SAP01-INFRASTRUCTURE.tfvars \
691
+ --parameterfile DEV-${region_code} -SAP01-INFRASTRUCTURE.tfvars \
687
692
--type sap_landscape
688
693
` ` `
689
694
@@ -701,7 +706,6 @@ Export the following two environment variables.
701
706
702
707
` ` ` bash
703
708
export DEPLOYMENT_REPO_PATH="~/Azure_SAP_Automated_Deployment/sap-automation"
704
-
705
709
export ARM_SUBSCRIPTION_ID="<subscriptionID>"
706
710
` ` `
707
711
@@ -710,16 +714,12 @@ Run the following command.
710
714
` ` ` bash
711
715
export region_code="NOEU"
712
716
713
- export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
714
- export ARM_SUBSCRIPTION_ID="${subscriptionID}"
715
-
716
717
${DEPLOYMENT_REPO_PATH}/deploy/scripts/remove_region.sh \
717
718
--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
719
720
` ` `
720
721
721
- Verify that all resources are now cleaned up.
722
-
722
+ Verify that all resources are cleaned up.
723
723
724
724
# # Next steps
725
725
0 commit comments