You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/workloads/sap/automation-configure-system.md
+4-7Lines changed: 4 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -296,13 +296,10 @@ Replace `<prefix>` with the name prefix of your environment, such as `DEV-WEEU-S
296
296
The fencing agent details must be stored in the workload zone key vault using a predefined naming convention. Replace `<prefix>` with the name prefix of your environment, such as `DEV-WEEU-SAP01`, `<workload_kv_name>` with the name of the key vault from the workload zone resource group and for the other values use the values recorded from the previous step and run the script.
297
297
298
298
299
-
```azurecli
300
-
301
-
```azurecli-interactive
302
-
az keyvault secret set --name "<prefix>-fencing-spn-id" --vault-name "<workload_kv_name>" --value "<appId>";
303
-
az keyvault secret set --name "<prefix>-fencing-spn-pwd" --vault-name "<workload_kv_name>" --value "<password>";
304
-
az keyvault secret set --name "<prefix>-fencing-spn-tenant" --vault-name "<workload_kv_name>" --value "<tenant>";
305
-
```
299
+
```azurecli-interactive
300
+
az keyvault secret set --name "<prefix>-fencing-spn-id" --vault-name "<workload_kv_name>" --value "<appId>";
301
+
az keyvault secret set --name "<prefix>-fencing-spn-pwd" --vault-name "<workload_kv_name>" --value "<password>";
302
+
az keyvault secret set --name "<prefix>-fencing-spn-tenant" --vault-name "<workload_kv_name>" --value "<tenant>";
title: SAP deployment automation framework DevOps hands-on lab
3
+
description: DevOps Hands-on lab for the SAP Deployment Automation Framework on Azure.
4
+
author: mimergel
5
+
ms.author: mimergel
6
+
ms.reviewer: kimforss
7
+
ms.date: 12/14/2021
8
+
ms.topic: tutorial
9
+
ms.service: virtual-machines-sap
10
+
---
11
+
12
+
# SAP Deployment Automation Framework DevOps - Hands-on lab
13
+
14
+
This tutorial shows how to perform the deployment activities of the [SAP deployment automation framework on Azure](automation-deployment-framework.md) using Azure DevOps Services.
15
+
16
+
You'll perform the following tasks during this lab:
17
+
18
+
> [!div class="checklist"]
19
+
> * Deploy the Control Plane (Deployer Infrastructure & Library)
20
+
> * Deploy the Workload Zone (Landscape, System)
21
+
> * Deploy the SAP Infrastructure
22
+
> * Install HANA Database
23
+
> * Install SCS server
24
+
> * Load HANA Database
25
+
> * Install Primary Application Server
26
+
> * Download the SAP software
27
+
> * Install SAP
28
+
29
+
## Prerequisites
30
+
31
+
- An Azure subscription. If you don't have an Azure subscription, you can [create a free account here](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
32
+
33
+
- A configured Azure DevOps instance, follow the steps here [Configure Azure DevOps Services for SAP Deployment Automation](automation-configure-devops.md)
34
+
35
+
- For the 'SAP software acquisition' and the 'Configuration and SAP installation' pipelines a configured self hosted agent, see [Configure a self-hosted agent for SAP Deployment Automation](automation-configure-devops.md#register-the-deployer-as-a-self-hosted-agent-for-azure-devops)
36
+
37
+
> [!Note]
38
+
> The free Azure account may not be sufficient to run the deployment.
39
+
40
+
## Overview
41
+
42
+
These steps reference and use the [default naming convention](automation-naming.md) for the automation framework. Example values are also used for naming throughout the configurations. In this tutorial, the following names are used:
43
+
- Azure DevOps project name is `SAP-Deployment`
44
+
- Azure DevOps repository name is `sap-automation`
45
+
- The control plane environment is named `MGMT`, in the region West Europe (`WEEU`) and installed in the virtual network `DEP00`, giving a deployer configuration name: `MGMT-WEEU-DEP00-INFRASTRUCTURE`
46
+
47
+
- The SAP workload zone has the environment name `DEV` and is in the same region as the control plane using the virtual network `SAP01`, giving the SAP workload zone configuration name: `DEV-WEEU-SAP01-INFRASTRUCTURE`
48
+
- The SAP System with SID `X00` will be installed in this SAP workload zone. The configuration name for the SAP System: `DEV-WEEU-SAP01-X00`
| Control Plane | MGMT-WEEU-DEP00-INFRASTRUCTURE | westeurope |
53
+
| Workload Zone | DEP-WEEU-SAP01-INFRASTRUCTURE | westeurope |
54
+
| SAP System | DEP-WEEU-SAP01-X00 | westeurope |
55
+
56
+
The deployed infrastructure is shown in the diagram below.
57
+
58
+
:::image type="content" source="media/automation-devops/automation-devops-tutorial-design.png" alt-text="Picture showing the DevOps tutorial infrastructure design":::
59
+
60
+
61
+
> [!Note]
62
+
> In this tutorial the X00 SAP system will be deployed with the following configuration:
63
+
> * Standalone deployment
64
+
> * HANA DB VM SKU: Standard_M32ts
65
+
> * ASCS VM SKU: Standard_D4s_v3
66
+
> * APP VM SKU: Standard_D4s_v3
67
+
68
+
## Deploy the Control Plane
69
+
70
+
The deployment will use the configuration defined in the Terraform variable files located in the 'samples/WORKSPACES/DEPLOYER/MGMT-WEEU-DEP00-INFRASTRUCTURE' and 'samples/WORKSPACES/LIBRARY/MGMT-WEEU-SAP_LIBRARY' folders.
71
+
72
+
Ensure that the 'Deployment_Configuration_Path' variable in the 'SDAF-General' variable group is set to 'samples/WORKSPACES'
73
+
74
+
Run the pipeline by selecting the _Deploy control plane_ pipeline from the Pipelines section. Enter 'MGMT-WEEU-DEP00-INFRASTRUCTURE' as the Deployer configuration name and 'MGMT-WEEU-SAP_LIBRARY' as the SAP Library configuration name.
75
+
76
+
:::image type="content" source="media/automation-devops/automation-run-pipeline.png" alt-text="Picture showing the DevOps tutorial run pipeline dialog":::
77
+
78
+
You can track the progress in the Azure DevOps portal. Once the deployment is complete, you can see the Control Plane details in the _Extensions_ tab.
79
+
80
+
:::image type="content" source="media/automation-devops/automation-run-pipeline-control-plane.png" alt-text="Picture showing the DevOps tutorial run pipeline results":::
81
+
82
+
## Deploy the Workload zone
83
+
84
+
The deployment will use the configuration defined in the Terraform variable file located in the 'samples/WORKSPACES/LANDSCAPE/DEV-WEEU-SAP01-INFRASTRUCTURE' folder.
85
+
86
+
Run the pipeline by selecting the _Deploy workload zone_ pipeline from the Pipelines section. Enter 'DEV-WEEU-SAP01-INFRASTRUCTURE' as the Workload zone configuration name and 'MGMT' as the Deployer Environment Name.
87
+
88
+
You can track the progress in the Azure DevOps portal. Once the deployment is complete, you can see the Workload Zone details in the _Extensions_ tab.
89
+
90
+
## Deploy the SAP System
91
+
92
+
The deployment will use the configuration defined in the Terraform variable file located in the 'samples/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X00' folder.
93
+
94
+
Run the pipeline by selecting the _SAP system deployment_ pipeline from the Pipelines section. Enter 'DEV-WEEU-SAP01-X00' as the SAP System configuration name.
95
+
96
+
You can track the progress in the Azure DevOps portal. Once the deployment is complete, you can see the SAP System details in the _Extensions_ tab.
97
+
98
+
## Download the SAP Software
99
+
100
+
Run the pipeline by selecting the _SAP software acquisition_ pipeline from the Pipelines section. Enter 'S41909SPS03_v0010ms' as the Name of Bill of Materials (BoM), 'MGMT' as the Control Plane Environment name: MGMT and 'WEEU' as the
101
+
Control Plane (SAP Library) location code.
102
+
103
+
You can track the progress in the Azure DevOps portal.
104
+
105
+
## Run the Configuration and SAP Installation pipeline
106
+
107
+
Run the pipeline by selecting the _Configuration and SAP installation_ pipeline from the Pipelines section. Enter 'DEV-WEEU-SAP01-X00' as the SAP System configuration name and 'S41909SPS03_v0010ms' as the Bill of Materials name.
108
+
109
+
Choose the playbooks to execute.
110
+
111
+
:::image type="content" source="media/automation-devops/automation-os-sap.png" alt-text="Picture showing the DevOps tutorial, OS and SAP configuration":::
112
+
113
+
You can track the progress in the Azure DevOps portal.
114
+
115
+
## Run the Repository update pipeline
116
+
117
+
Run the pipeline by selecting the _Repository updater_ pipeline from the Pipelines section. Enter 'https://github.com/Azure/sap-automation.git' as the Source repository and 'main' as the source branch to update from.
118
+
119
+
Only choose 'Force the update' if the update fails.
120
+
121
+
122
+
## Run the removal pipeline
123
+
124
+
Run the pipeline by selecting the _Deployment removal_ pipeline from the Pipelines section.
125
+
126
+
### SAP System removal
127
+
128
+
Enter 'DEV-WEEU-SAP01-X00' as the SAP System configuration name.
129
+
130
+
### SAP Workload Zone removal
131
+
132
+
Enter 'DEV-WEEU-SAP01-INFRASTRUCTURE' as the SAP workload zone configuration name.
133
+
134
+
### Control Plane removal
135
+
136
+
Enter 'MGMT-WEEU-DEP00-INFRASTRUCTURE' as the Deployer configuration name and 'MGMT-WEEU-SAP_LIBRARY' as the
137
+
SAP Library configuration name.
138
+
## Next step
139
+
140
+
> [!div class="nextstepaction"]
141
+
> [Configure Control Plane](automation-configure-control-plane.md)
This tutorial shows how to do enterprise scaling for deployments using the [SAP deployment automation framework on Azure](automation-deployment-framework.md). This example uses Azure Cloud Shell to deploy the control plane infrastructure. The deployer virtual machine (VM) creates the remaining infrastructure and SAP HANA configurations.
17
17
18
-
You will perform the following tasks during this lab:
18
+
You'll perform the following tasks during this lab:
19
19
20
20
> [!div class="checklist"]
21
21
> * Deploy the Control Plane (Deployer Infrastructure & Library)
@@ -51,7 +51,7 @@ The SAP on Azure deployment automation framework has two main components:
51
51
52
52
The following diagram shows the dependency between the control plane and the application plane.
53
53
54
-
:::image type="content" source="./media/automation-deployment-framework/control-plane-sap-infrastructure.png" alt-text="Dependency between the control plane and the application plane":::
The framework uses Terraform for infrastructure deployment, and Ansible for the operating system and application configuration. The following diagram shows the logical separation of the control plane and workload zone.
57
57
@@ -113,7 +113,7 @@ A valid SAP user account (SAP-User or S-User account) with software download pri
113
113
114
114
1. Go to [Azure Cloud Shell](https://shell.azure.com)
115
115
116
-
1.Log in to your Azure account.
116
+
1.Sign in your Azure account.
117
117
118
118
```cloudshell-interactive
119
119
az login
@@ -135,7 +135,7 @@ A valid SAP user account (SAP-User or S-User account) with software download pri
135
135
az account list --output=table | grep True
136
136
```
137
137
138
-
1. If required, change your active subscription.
138
+
1. If necessary, change your active subscription.
139
139
140
140
```cloudshell-interactive
141
141
az account set --subscription <Subscription ID>
@@ -147,6 +147,15 @@ A valid SAP user account (SAP-User or S-User account) with software download pri
147
147
az account list --query "[?isDefault].{Name: name, CloudName: cloudName, SubscriptionId: id, State: state, IsDefault: isDefault}" --output=table
148
148
```
149
149
150
+
1. Optionally remove all the deployment artifacts. Use when you want to remove all remnants of previous deployment artifacts.
1. Create the deployment folder and clone the repository.
151
160
152
161
```cloudshell-interactive
@@ -382,7 +391,7 @@ The sample SAP Library configuration file `MGMT-NOEU-SAP_LIBRARY.tfvars` is in t
382
391
383
392
## Connect to deployer VM
384
393
385
-
After preparing the region, the Terraform state file moves to a remote backend, `azurerm`. All secrets for connecting to the deployer VM are available in a key vault within the deployer's resource group.
394
+
After the control plane is deployed, the Terraform state is stored using a remote backend, `azurerm`. All secrets for connecting to the deployer VM are available in a key vault in the deployer's resource group.
386
395
387
396
Make sure you can connect to your deployer VM:
388
397
@@ -417,7 +426,7 @@ Make sure you can connect to your deployer VM:
417
426
418
427
## Get SAP software using the Bill of Materials (BOM)
419
428
420
-
The Automation Framework gives you tools to download software from SAP using the SAP Bill Of Materials (BOM). The software will be downloaded to the SAP library which acts as the archive for all media required to deploy SAP.
429
+
The Automation Framework gives you tools to download software from SAP using the SAP Bill Of Materials (BOM). The software will be downloaded to the SAP library, which acts as the archive for all media required to deploy SAP.
421
430
422
431
The SAP Bill of Materials (BOM) mimics the SAP maintenance planner. There are relevant product identifiers and a set of download URLs.
423
432
@@ -514,7 +523,7 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
514
523
515
524
```
516
525
517
-
1. Replace `<Deployer KeyVault Name>` with the name of the deployer resource group key vault
526
+
1. Replace `<Deployer KeyVault Name>` with the name of the deployer resource group Azure key vault
518
527
519
528
Your file should look similar to the following example configuration:
520
529
@@ -572,11 +581,11 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
572
581
573
582
1. Additionally, the following piece of information needs to be collected.
574
583
575
-
1. The name of deployer state file, can be found under Library resource group
584
+
1. The name of deployer state file can be found under Library resource group
576
585
- Library resource group -> state storage account -> containers -> tfstate -> Copy the **name** of the Deployer state file.
577
586
- Following from the example above, the name of the blob will be: *MGMT-NOEU-DEP00-INFRASTRUCTURE.terraform.tfstate*
578
587
579
-
1. If required, register the SPN
588
+
1. If necessary, register the SPN
580
589
581
590
> [!IMPORTANT]
582
591
> The first time an Environment is instantiated, a SPN must be registered. In this tutorial the Control Plane is in the MGMT environment, and the Workload Zone is in DEV, therefore an SPN must be registered for DEV at this time.
@@ -612,7 +621,7 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
612
621
git pull
613
622
```
614
623
615
-
1. Go into the *WORKSPACES/LANDSCAPE* folder and copy the sample configuration files that you will be using from from the repository.
624
+
1. Go into the *WORKSPACES/LANDSCAPE* folder and copy the sample configuration files that you'll be using from the repository.
@@ -676,7 +685,7 @@ Use the [install_workloadzone](bash/automation-install_workloadzone.md) script t
676
685
677
686
1. Connect to your deployer VM for the following steps. A copy of the repo is now there.
678
687
679
-
1. Go into the *WORKSPACES/SYSTEM* folder and copy the sample configuration files that you will be using from from the repository.
688
+
1. Go into the *WORKSPACES/SYSTEM* folder and copy the sample configuration files that you'll be using from the repository.
680
689
681
690
```bash
682
691
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM
@@ -754,7 +763,7 @@ This playbook does the generic OS configuration setup on all the machines, which
754
763
755
764
### Playbook: SAP-Specific OS config
756
765
757
-
This playbook does the SAP OS configuration setup on all the machines, which includes creation of volume groups, file systems, configuring of software repositories, packages, and services.
766
+
This playbook does the SAP OS configuration setup on all the machines. The steps include creation of volume groups, file systems, configuring of software repositories, packages, and services.
758
767
759
768
### Playbook: BOM Processing
760
769
@@ -766,7 +775,7 @@ This playbook will install the HANA database instances.
766
775
767
776
### Playbook: SCS Install
768
777
769
-
This playbook will install SAP Central Services. If, high availability is configured the playbook will also install the ERS instance and configure Pacemaker.
778
+
This playbook will install SAP Central Services. For highly available configurations, the playbook will also install the SAP ERS instance and configure Pacemaker.
770
779
771
780
### Playbook: DB Load
772
781
@@ -778,7 +787,7 @@ This playbook will install the primary application server.
778
787
779
788
### Playbook: APP Install
780
789
781
-
This playbook will install the additional application servers.
790
+
This playbook will install the application servers.
782
791
783
792
You've now deployed and configured a stand-alone HANA system, if you need to configure a highly available SAP HANA database run the HANA HA playbook
784
793
@@ -800,7 +809,7 @@ To remove the entire SAP infrastructure you deployed, you need to:
800
809
801
810
Execute the removal of your SAP infrastructure resources and workload zones from the deployer VM. Execute the removal of the control plane from Cloud Shell.
802
811
803
-
Before you begin, login to your Azure account. Then, check that you're in the correct subscription.
812
+
Before you begin, signin your Azure account. Then, check that you're in the correct subscription.
0 commit comments