Skip to content

Commit 6a513e1

Browse files
Merge pull request #263260 from KimForss/main
Change the LAB templates
2 parents 660427e + 3eca43e commit 6a513e1

File tree

1 file changed

+39
-39
lines changed

1 file changed

+39
-39
lines changed

articles/sap/automation/tutorial.md

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ When you choose a name for your service principal, make sure that the name is un
172172
173173
```cloudshell-interactive
174174
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
175-
export control_plane_env_code="MGMT"
175+
export control_plane_env_code="LAB"
176176
177177
az ad sp create-for-rbac --role="Contributor" \
178178
--scopes="/subscriptions/${ARM_SUBSCRIPTION_ID}" \
@@ -226,10 +226,10 @@ As a part of the SAP automation framework control plane, you can optionally crea
226226
227227
If you would like to use the web app, you must first create an app registration for authentication purposes. Open the Azure Cloud Shell and execute the following commands:
228228
229-
Replace MGMT with your environment as necessary.
229+
Replace LAB with your environment as necessary.
230230
231231
```bash
232-
export env_code="MGMT"
232+
export env_code="LAB"
233233
234234
235235
echo '[{"resourceAppId":"00000003-0000-0000-c000-000000000000","resourceAccess":[{"id":"e1fe6dd8-ba31-4d61-89e7-88639da4683d","type":"Scope"}]}]' >> manifest.json
@@ -287,7 +287,7 @@ code .
287287
| Canada Central | CACE |
288288
| Central US | CEUS |
289289
| East US | EAUS |
290-
| North Europe | NOEU |
290+
| North Europe | WEEU |
291291
| South Africa North | SANO |
292292
| Southeast Asia | SOEA |
293293
| UK South | UKSO |
@@ -297,7 +297,7 @@ code .
297297

298298
```terraform
299299
# The environment value is a mandatory field, it is used for partitioning the environments, for example, PROD and NP.
300-
environment = "MGMT"
300+
environment = "LAB"
301301
# The location/region value is a mandatory field, it is used to control where the resources are deployed
302302
location = "westeurope"
303303
@@ -340,7 +340,7 @@ code .
340340
341341
```terraform
342342
# The environment value is a mandatory field, it is used for partitioning the environments, for example, PROD and NP.
343-
environment = "MGMT"
343+
environment = "LAB"
344344
# The location/region value is a mandatory field, it is used to control where the resources are deployed
345345
location = "westeurope"
346346
@@ -363,9 +363,9 @@ Use the [deploy_controlplane.sh](bash/deploy-controlplane.md) script to deploy t
363363
364364
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.
365365
366-
For example, choose **North Europe** as the deployment location, with the four-character name `NOEU`, as previously described. The sample deployer configuration file `MGMT-NOEU-DEP00-INFRASTRUCTURE.tfvars` is in the `~/Azure_SAP_Automated_Deployment/WORKSPACES/DEPLOYER/MGMT-NOEU-DEP00-INFRASTRUCTURE` folder.
366+
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 `~/Azure_SAP_Automated_Deployment/WORKSPACES/DEPLOYER/LAB-WEEU-DEP05-INFRASTRUCTURE` folder.
367367
368-
The sample SAP library configuration file `MGMT-NOEU-SAP_LIBRARY.tfvars` is in the `~/Azure_SAP_Automated_Deployment/WORKSPACES/LIBRARY/MGMT-NOEU-SAP_LIBRARY` folder.
368+
The sample SAP library configuration file `LAB-WEEU-SAP_LIBRARY.tfvars` is in the `~/Azure_SAP_Automated_Deployment/WORKSPACES/LIBRARY/LAB-WEEU-SAP_LIBRARY` folder.
369369
370370
Set the environment variables for the service principal:
371371
@@ -397,8 +397,8 @@ export TF_use_webapp=true
397397

398398
```bash
399399

400-
export env_code="MGMT"
401-
export vnet_code="DEP00"
400+
export env_code="LAB"
401+
export vnet_code="DEP05"
402402
export region_code="<region_code>"
403403

404404
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
@@ -431,7 +431,7 @@ You need to note some values for upcoming steps. Look for this text block in the
431431
#########################################################################################
432432
# #
433433
# Please save these values: #
434-
# - Key Vault: MGMTNOEUDEP00user39B #
434+
# - Key Vault: LABWEEUDEP05user39B #
435435
# - Deployer IP: x.x.x.x #
436436
# - Storage Account: mgmtnoeutfstate53e #
437437
# - Web Application Name: mgmt-noeu-sapdeployment39B #
@@ -442,7 +442,7 @@ You need to note some values for upcoming steps. Look for this text block in the
442442

443443
2. Go to the [Azure portal](https://portal.azure.com).
444444

445-
Select **Resource groups**. Look for new resource groups for the deployer infrastructure and library. For example, you might see `MGMT-[region]-DEP00-INFRASTRUCTURE` and `MGMT-[region]-SAP_LIBRARY`.
445+
Select **Resource groups**. Look for new resource groups for the deployer infrastructure and library. For example, you might see `LAB-[region]-DEP05-INFRASTRUCTURE` and `LAB-[region]-SAP_LIBRARY`.
446446

447447
The contents of the deployer and SAP library resource group are shown here.
448448

@@ -491,11 +491,11 @@ To connect to your deployer VM:
491491
492492
1. Select or search for **Key vaults**.
493493
494-
1. On the **Key vault** page, find the deployer key vault. The name starts with `MGMT[REGION]DEP00user`. Filter by **Resource group** or **Location**, if necessary.
494+
1. On the **Key vault** page, find the deployer key vault. The name starts with `LAB[REGION]DEP05user`. Filter by **Resource group** or **Location**, if necessary.
495495
496496
1. On the **Settings** section in the left pane, select **Secrets**.
497497
498-
1. Find and select the secret that contains **sshkey**. It might look like `MGMT-[REGION]-DEP00-sshkey`.
498+
1. Find and select the secret that contains **sshkey**. It might look like `LAB-[REGION]-DEP05-sshkey`.
499499
500500
1. On the secret's page, select the current version. Then, copy the **Secret value**.
501501
@@ -596,12 +596,12 @@ export ARM_TENANT_ID="<tenantId>"
596596

597597
```bash
598598

599-
export env_code="MGMT"
600-
export vnet_code="DEP00"
599+
export env_code="LAB"
600+
export vnet_code="DEP05"
601601
export region_code="<region_code>"
602602

603603
storage_accountname="mgmtneweeutfstate###"
604-
vault_name="MGMTNOEUDEP00user###"
604+
vault_name="LABWEEUDEP05user###"
605605

606606
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
607607
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
@@ -624,8 +624,8 @@ ${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
624624
You can deploy the web application using the following script:
625625

626626
```bash
627-
export env_code="MGMT"
628-
export vnet_code="DEP00"
627+
export env_code="LAB"
628+
export vnet_code="DEP05"
629629
export region_code="<region_code>"
630630
export webapp_name="<webAppName>"
631631
export app_id="<appRegistrationId>"
@@ -656,24 +656,24 @@ az webapp restart --resource-group ${env_code}-${region_code}-${vnet_code}-INFRA
656656
1. Collect the following information in a text editor. This information was collected at the end of the "Deploy the control plane" phase.
657657

658658
1. The name of the Terraform state file storage account in the library resource group:
659-
- Following from the preceding example, the resource group is `MGMT-NOEU-SAP_LIBRARY`.
659+
- Following from the preceding example, the resource group is `LAB-WEEU-SAP_LIBRARY`.
660660
- The name of the storage account contains `mgmtnoeutfstate`.
661661

662662
1. The name of the key vault in the deployer resource group:
663-
- Following from the preceding example, the resource group is `MGMT-NOEU-DEP00-INFRASTRUCTURE`.
664-
- The name of the key vault contains `MGMTNOEUDEP00user`.
663+
- Following from the preceding example, the resource group is `LAB-WEEU-DEP05-INFRASTRUCTURE`.
664+
- The name of the key vault contains `LABWEEUDEP05user`.
665665

666666
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.
667667

668668
1. You need to collect the following piece of information:
669669

670670
1. The name of the deployer state file is found under the library resource group:
671671
- Select **Library resource group** > **State storage account** > **Containers** > `tfstate`. Copy the name of the deployer state file.
672-
- Following from the preceding example, the name of the blob is `MGMT-NOEU-DEP00-INFRASTRUCTURE.terraform.tfstate`.
672+
- Following from the preceding example, the name of the blob is `LAB-WEEU-DEP05-INFRASTRUCTURE.terraform.tfstate`.
673673

674674
1. If necessary, register the Service Principal.
675675

676-
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.
676+
The first time an environment is instantiated, a Service Principal must be registered. In this tutorial, the control plane is in the `LAB` environment and the workload zone is in `DEV`. Therefore, a Service Principal must be registered for the `DEV` environment.
677677

678678
```bash
679679
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
@@ -714,7 +714,7 @@ Use the [install_workloadzone](bash/install-workloadzone.md) script to deploy th
714714
From the example region `northeurope`, the folder looks like:
715715

716716
```bash
717-
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/DEV-NOEU-SAP01-INFRASTRUCTURE
717+
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/DEV-WEEU-SAP01-INFRASTRUCTURE
718718
```
719719

720720
1. Optionally, open the workload zone configuration file and, if needed, change the network logical name to match the network name.
@@ -728,13 +728,13 @@ Use the [install_workloadzone](bash/install-workloadzone.md) script to deploy th
728728
```bash
729729
730730
export tfstate_storage_account="<storageaccountName>"
731-
export deployer_env_code="MGMT"
731+
export deployer_env_code="LAB"
732732
export sap_env_code="DEV"
733733
export region_code="<region_code>"
734734
export key_vault="<vaultName>"
735735
736-
export deployer_vnet_code="DEP01"
737-
export vnet_code="SAP02"
736+
export deployer_vnet_code="DEP05"
737+
export vnet_code="SAP04"
738738
739739
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
740740
export ARM_CLIENT_ID="<appId>"
@@ -807,10 +807,10 @@ ${DEPLOYMENT_REPO_PATH}/deploy/scripts/installer.sh \
807807
The deployment command for the `northeurope` example looks like:
808808

809809
```bash
810-
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-NOEU-SAP01-X00
810+
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X00
811811
812812
${DEPLOYMENT_REPO_PATH}/deploy/scripts/installer.sh \
813-
--parameterfile DEV-NOEU-SAP01-X00.tfvars \
813+
--parameterfile DEV-WEEU-SAP01-X00.tfvars \
814814
--type sap_system \
815815
--auto-approve
816816
```
@@ -861,7 +861,7 @@ materials:
861861
- name: "Kernel Part I ; OS: Linux on x86_64 64bit ; DB: Database independent"
862862
```
863863

864-
For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRUCTURE`. The deployer key vault name contains `MGMTNOEUDEP00user` in the name. You use this information to configure your deployer's key vault secrets.
864+
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.
865865
866866
1. Connect to your deployer VM for the following steps. A copy of the repo is now there.
867867
@@ -932,7 +932,7 @@ The SAP application installation happens through Ansible playbooks.
932932
Go to the system deployment folder.
933933
934934
```bash
935-
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-NOEU-SAP01-X00/
935+
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X00/
936936
```
937937
938938
Make sure you have the following files in the current folders: `sap-parameters.yaml` and `X00_host.yaml`.
@@ -1003,12 +1003,12 @@ Before you begin, sign in to your Azure account. Then, check that you're in the
10031003

10041004
### Remove the SAP infrastructure
10051005

1006-
Go to the `DEV-NOEU-SAP01-X00` subfolder inside the `SYSTEM` folder. Then, run this command:
1006+
Go to the `DEV-WEEU-SAP01-X00` subfolder inside the `SYSTEM` folder. Then, run this command:
10071007

10081008
```bash
10091009
export sap_env_code="DEV"
1010-
export region_code="NOEU"
1011-
export sap_vnet_code="SAP02"
1010+
export region_code="WEEU"
1011+
export sap_vnet_code="SAP04"
10121012
10131013
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/${sap_env_code}-${region_code}-${sap_vnet_code}-X00
10141014
@@ -1024,7 +1024,7 @@ Go to the `DEV-XXXX-SAP01-INFRASTRUCTURE` subfolder inside the `LANDSCAPE` folde
10241024
```bash
10251025
10261026
export sap_env_code="DEV"
1027-
export region_code="NOEU"
1027+
export region_code="WEEU"
10281028
export sap_vnet_code="SAP01"
10291029
10301030
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/LANDSCAPE/${sap_env_code}-${region_code}-${sap_vnet_code}-INFRASTRUCTURE
@@ -1054,9 +1054,9 @@ export ARM_SUBSCRIPTION_ID="<subscriptionId>"
10541054
Run the following command:
10551055

10561056
```bash
1057-
export region_code="NOEU"
1058-
export env_code="MGMT"
1059-
export vnet_code="DEP00"
1057+
export region_code="WEEU"
1058+
export env_code="LAB"
1059+
export vnet_code="DEP05"
10601060
10611061
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES
10621062
${DEPLOYMENT_REPO_PATH}/deploy/scripts/remove_controlplane.sh \

0 commit comments

Comments
 (0)