Skip to content

Commit d9c3283

Browse files
author
Kimmo Forss
committed
Move the lab to use sweden cental region
1 parent aafbcc2 commit d9c3283

File tree

1 file changed

+34
-31
lines changed

1 file changed

+34
-31
lines changed

articles/sap/automation/tutorial.md

Lines changed: 34 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ code .
285285
# The environment value is a mandatory field, it is used for partitioning the environments, for example, PROD and NP.
286286
environment = "LAB"
287287
# The location/region value is a mandatory field, it is used to control where the resources are deployed
288-
location = "westeurope"
288+
location = "swedencentral"
289289
290290
# management_network_address_space is the address space for management virtual network
291291
management_network_address_space = "10.10.20.0/25"
@@ -328,7 +328,7 @@ code .
328328
# The environment value is a mandatory field, it is used for partitioning the environments, for example, PROD and NP.
329329
environment = "LAB"
330330
# The location/region value is a mandatory field, it is used to control where the resources are deployed
331-
location = "westeurope"
331+
location = "swedencentral"
332332
333333
#Defines the DNS suffix for the resources
334334
dns_label = "lab.sdaf.contoso.net"
@@ -349,9 +349,9 @@ Use the [deploy_controlplane.sh](bash/deploy-controlplane.md) script to deploy t
349349
350350
The deployment goes through cycles of deploying the infrastructure, refreshing the state, and uploading the Terraform state files to the library storage account. All of these steps are packaged into a single deployment script. The script needs the location of the configuration file for the deployer and library, and some other parameters.
351351
352-
For example, choose **West Europe** as the deployment location, with the four-character name `WEEU`, as previously described. The sample deployer configuration file `LAB-WEEU-DEP05-INFRASTRUCTURE.tfvars` is in the `${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/DEPLOYER/LAB-WEEU-DEP05-INFRASTRUCTURE` folder.
352+
For example, choose **West Europe** as the deployment location, with the four-character name `SECE`, as previously described. The sample deployer configuration file `LAB-SECE-DEP05-INFRASTRUCTURE.tfvars` is in the `${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/DEPLOYER/LAB-SECE-DEP05-INFRASTRUCTURE` folder.
353353
354-
The sample SAP library configuration file `LAB-WEEU-SAP_LIBRARY.tfvars` is in the `${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/LIBRARY/LAB-WEEU-SAP_LIBRARY` folder.
354+
The sample SAP library configuration file `LAB-SECE-SAP_LIBRARY.tfvars` is in the `${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/LIBRARY/LAB-SECE-SAP_LIBRARY` folder.
355355
356356
Set the environment variables for the service principal:
357357
@@ -385,7 +385,7 @@ export TF_use_webapp=true
385385

386386
export env_code="LAB"
387387
export vnet_code="DEP05"
388-
export region_code="WEEU"
388+
export region_code="SECE"
389389

390390
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
391391
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
@@ -420,10 +420,10 @@ You need to note some values for upcoming steps. Look for this text block in the
420420
#########################################################################################
421421
# #
422422
# Please save these values: #
423-
# - Key Vault: LABWEEUDEP05user39B #
423+
# - Key Vault: LABSECEDEP05user39B #
424424
# - Deployer IP: x.x.x.x #
425-
# - Storage Account: mgmtnoeutfstate53e #
426-
# - Web Application Name: mgmt-noeu-sapdeployment39B #
425+
# - Storage Account: labsecetfstate53e #
426+
# - Web Application Name: lab-sece-sapdeployment39B #
427427
# - App registration Id: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx #
428428
# #
429429
#########################################################################################
@@ -589,10 +589,10 @@ export ARM_TENANT_ID="<tenantId>"
589589

590590
export env_code="LAB"
591591
export vnet_code="DEP05"
592-
export region_code="WEEU"
592+
export region_code="SECE"
593593

594594
terraform_state_storage_account=labweeutfstate###
595-
vault_name="LABWEEUDEP05user###"
595+
vault_name="LABSECEDEP05user###"
596596

597597
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
598598
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
@@ -621,7 +621,7 @@ You can deploy the web application using the following script:
621621
```bash
622622
export env_code="LAB"
623623
export vnet_code="DEP05"
624-
export region_code="WEEU"
624+
export region_code="SECE"
625625
export webapp_name="<webAppName>"
626626
export app_id="<appRegistrationId>"
627627
export webapp_id="<webAppId>"
@@ -651,20 +651,20 @@ az webapp restart --resource-group ${env_code}-${region_code}-${vnet_code}-INFRA
651651
1. Collect the following information in a text editor. This information was collected at the end of the "Deploy the control plane" phase.
652652

653653
1. The name of the Terraform state file storage account in the library resource group:
654-
- Following from the preceding example, the resource group is `LAB-WEEU-SAP_LIBRARY`.
655-
- The name of the storage account contains `mgmtnoeutfstate`.
654+
- Following from the preceding example, the resource group is `LAB-SECE-SAP_LIBRARY`.
655+
- The name of the storage account contains `labsecetfstate`.
656656

657657
1. The name of the key vault in the deployer resource group:
658-
- Following from the preceding example, the resource group is `LAB-WEEU-DEP05-INFRASTRUCTURE`.
659-
- The name of the key vault contains `LABWEEUDEP05user`.
658+
- Following from the preceding example, the resource group is `LAB-SECE-DEP05-INFRASTRUCTURE`.
659+
- The name of the key vault contains `LABSECEDEP05user`.
660660

661661
1. The public IP address of the deployer VM. Go to your deployer's resource group, open the deployer VM, and copy the public IP address.
662662

663663
1. You need to collect the following piece of information:
664664

665665
1. The name of the deployer state file is found under the library resource group:
666666
- Select **Library resource group** > **State storage account** > **Containers** > `tfstate`. Copy the name of the deployer state file.
667-
- Following from the preceding example, the name of the blob is `LAB-WEEU-DEP05-INFRASTRUCTURE.terraform.tfstate`.
667+
- Following from the preceding example, the name of the blob is `LAB-SECE-DEP05-INFRASTRUCTURE.terraform.tfstate`.
668668

669669
1. If necessary, register the Service Principal, for this tutorial this step is not needed.
670670

@@ -677,7 +677,7 @@ az webapp restart --resource-group ${env_code}-${region_code}-${vnet_code}-INFRA
677677
export ARM_TENANT_ID="<tenant>"
678678
export key_vault="<vaultName>"
679679
export env_code="LAB"
680-
export region_code="WEEU"
680+
export region_code="SECE"
681681

682682
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
683683
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
@@ -707,7 +707,7 @@ Use the [install_workloadzone](bash/install-workloadzone.md) script to deploy th
707707
1. On the deployer VM, go to the `Azure_SAP_Automated_Deployment` folder.
708708

709709
```bash
710-
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/LAB-WEEU-SAP04-INFRASTRUCTURE
710+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/LAB-SECE-SAP04-INFRASTRUCTURE
711711
```
712712

713713
1. Optionally, open the workload zone configuration file and, if needed, change the network logical name to match the network name.
@@ -729,7 +729,7 @@ export ARM_TENANT_ID="<tenantId>"
729729
```bash
730730
export deployer_env_code="LAB"
731731
export sap_env_code="LAB"
732-
export region_code="WEEU"
732+
export region_code="SECE"
733733
734734
export deployer_vnet_code="DEP05"
735735
export vnet_code="SAP04"
@@ -785,7 +785,7 @@ Deploy the SAP system.
785785
```bash
786786
787787
export sap_env_code="LAB"
788-
export region_code="WEEU"
788+
export region_code="SECE"
789789
export vnet_code="SAP04"
790790
export SID="L00"
791791
@@ -845,7 +845,7 @@ materials:
845845
- name: "Kernel Part I ; OS: Linux on x86_64 64bit ; DB: Database independent"
846846
```
847847

848-
For this example configuration, the resource group is `LAB-WEEU-DEP05-INFRASTRUCTURE`. The deployer key vault name contains `LABWEEUDEP05user` in the name. You use this information to configure your deployer's key vault secrets.
848+
For this example configuration, the resource group is `LAB-SECE-DEP05-INFRASTRUCTURE`. The deployer key vault name contains `LABSECEDEP05user` in the name. You use this information to configure your deployer's key vault secrets.
849849
850850
1. Connect to your deployer VM for the following steps. A copy of the repo is now there.
851851
@@ -916,13 +916,16 @@ The SAP application installation happens through Ansible playbooks.
916916
Go to the system deployment folder.
917917
918918
```bash
919-
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-WEEU-SAP04-L00/
919+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/LAB-SECE-SAP04-L00/
920920
```
921921
922922
Make sure you have the following files in the current folders: `sap-parameters.yaml` and `L00_host.yaml`.
923923
924924
For a standalone SAP S/4HANA system, there are eight playbooks to run in sequence. One way you can run the playbooks is to use the **Configuration** menu.
925925
926+
:::image type="content" source="./media/deployment-framework/automation-diagram-full.png" alt-text="Diagram that shows the SAP Deployment Automation Framework environment.":::
927+
928+
926929
Run the `configuration_menu` script.
927930
928931
```bash
@@ -991,28 +994,28 @@ Before you begin, sign in to your Azure account. Then, check that you're in the
991994

992995
### Remove the SAP infrastructure
993996

994-
Go to the `DEV-WEEU-SAP01-X00` subfolder inside the `SYSTEM` folder. Then, run this command:
997+
Go to the `LAB-SECE-SAP01-L00` subfolder inside the `SYSTEM` folder. Then, run this command:
995998

996999
```bash
997-
export sap_env_code="DEV"
998-
export region_code="WEEU"
1000+
export sap_env_code="LAB"
1001+
export region_code="SECE"
9991002
export sap_vnet_code="SAP04"
10001003
1001-
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/${sap_env_code}-${region_code}-${sap_vnet_code}-X00
1004+
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/${sap_env_code}-${region_code}-${sap_vnet_code}-L00
10021005
10031006
${DEPLOYMENT_REPO_PATH}/deploy/scripts/remover.sh \
1004-
--parameterfile "${sap_env_code}-${region_code}-${sap_vnet_code}-X00.tfvars" \
1007+
--parameterfile "${sap_env_code}-${region_code}-${sap_vnet_code}-L00.tfvars" \
10051008
--type sap_system
10061009
```
10071010

10081011
### Remove the SAP workload zone
10091012

1010-
Go to the `DEV-XXXX-SAP01-INFRASTRUCTURE` subfolder inside the `LANDSCAPE` folder. Then, run the following command:
1013+
Go to the `LAB-XXXX-SAP01-INFRASTRUCTURE` subfolder inside the `LANDSCAPE` folder. Then, run the following command:
10111014

10121015
```bash
10131016
1014-
export sap_env_code="DEV"
1015-
export region_code="WEEU"
1017+
export sap_env_code="LAB"
1018+
export region_code="SECE"
10161019
export sap_vnet_code="SAP01"
10171020
10181021
cd ${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/${sap_env_code}-${region_code}-${sap_vnet_code}-INFRASTRUCTURE
@@ -1042,7 +1045,7 @@ export ARM_SUBSCRIPTION_ID="<subscriptionId>"
10421045
Run the following command:
10431046

10441047
```bash
1045-
export region_code="WEEU"
1048+
export region_code="SECE"
10461049
export env_code="LAB"
10471050
export vnet_code="DEP05"
10481051

0 commit comments

Comments
 (0)