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-tutorial.md
+53-23Lines changed: 53 additions & 23 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,6 +9,8 @@ ms.topic: tutorial
9
9
ms.service: virtual-machines-sap
10
10
---
11
11
12
+
13
+
12
14
# Enterprise Scale for SAP deployment automation framework - Hands-on Lab
13
15
14
16
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.
@@ -37,6 +39,9 @@ There are three main steps of an SAP deployment on Azure with the automation fra
37
39
3. Deploying the system. This step includes the infrastructure for the SAP system.
38
40
39
41
There are several workflows in the deployment automation process. However, this tutorial focuses on one workflow for ease of deployment. You can deploy this workflow, the SAP S4 HANA standalone environment, using Bash. The tutorial describes the general hierarchy and different phases of the deployment.
42
+
43
+
44
+
40
45
### Environment Overview
41
46
42
47
The SAP on Azure deployment automation framework has two main components:
@@ -52,6 +57,8 @@ The framework uses Terraform for infrastructure deployment, and Ansible for the
52
57
53
58
:::image type="content" source="./media/automation-deployment-framework/automation-diagram-full.png" alt-text="Diagram showing the SAP deployment automation framework environment.":::
54
59
60
+
61
+
55
62
#### Management Zone
56
63
57
64
The management zone contains the control plane infrastructure from which other environments are deployed. Once the management zone is deployed, you rarely, if ever, need to redeploy.
@@ -64,6 +71,8 @@ The **SAP Library** provides the persistent storage for the Terraform state file
64
71
65
72
You configure the deployer and library in a Terraform `.tfvars` variable file. See [configuring the control plane](automation-configure-control-plane.md)
66
73
74
+
75
+
67
76
#### Workload Zone
68
77
69
78
An SAP application typically has multiple deployment tiers. For example, you might have development, quality assurance, and production tiers. The SAP deployment automation framework refers to these tiers as workload zones.
@@ -74,22 +83,32 @@ The **SAP Workload zone** contains the networking and shared components for the
74
83
75
84
The system deployment consists of the virtual machines that will be running the SAP application, including the web, app, and database tiers. See [configuring the SAP system](automation-configure-system.md)
76
85
86
+
87
+
77
88
## Hands-On Lab
78
89
90
+
91
+
79
92
### Prerequisites
80
93
81
94
The [SAP deployment automation framework repository](https://github.com/Azure/sap-automation) is available on GitHub.
82
95
83
96
You need an SSH client to connect to the Deployer. Use any SSH client that you feel comfortable with.
84
97
98
+
99
+
85
100
#### Review the Azure Subscription Quota
86
101
87
102
Ensure that your Microsoft Azure Subscription has a sufficient core quote for DdSV4 & EdsV4 family SKU in the elected region. About 50 cores each available for VM family should suffice.
88
103
104
+
105
+
89
106
#### S-User account for SAP software download
90
107
91
108
A valid SAP user account (SAP-User or S-User account) with software download privileges is required to download the SAP software.
92
109
110
+
111
+
93
112
## Set up Cloud Shell
94
113
95
114
1. Go to [Azure Cloud Shell](https://shell.azure.com)
@@ -107,10 +126,16 @@ A valid SAP user account (SAP-User or S-User account) with software download pri
107
126
Validate that your active subscription and record your subscription ID:
108
127
109
128
```cloudshell-interactive
110
-
az account list --query "[?isDefault]" --output=table
129
+
az account list --query "[?isDefault].{Name: name, CloudName: cloudName, SubscriptionId: id, State: state, IsDefault: isDefault}" --output=table
111
130
```
112
131
113
-
1. Optionally, change your active subscription.
132
+
or
133
+
134
+
```cloudshell-interactive
135
+
az account list --output=table | grep True
136
+
```
137
+
138
+
1. If required, change your active subscription.
114
139
115
140
```cloudshell-interactive
116
141
az account set --subscription <Subscription ID>
@@ -119,7 +144,7 @@ A valid SAP user account (SAP-User or S-User account) with software download pri
119
144
Validate that your active subscription changed:
120
145
121
146
```cloudshell-interactive
122
-
az account list --query "[?isDefault]" --output=table
147
+
az account list --query "[?isDefault].{Name: name, CloudName: cloudName, SubscriptionId: id, State: state, IsDefault: isDefault}" --output=table
123
148
```
124
149
125
150
1. Create the deployment folder and clone the repository.
@@ -129,12 +154,12 @@ A valid SAP user account (SAP-User or S-User account) with software download pri
@@ -533,7 +563,7 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
533
563
> 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.
534
564
535
565
```bash
536
-
export subscriptionID="<subscriptionID>"
566
+
export subscriptionId="<subscriptionId>"
537
567
export spn_id="<appID>"
538
568
export spn_secret="<password>"
539
569
export tenant_id="<tenant>"
@@ -545,7 +575,7 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
545
575
--environment "${env_code}" \
546
576
--region "${region_code}" \
547
577
--vault "${key_vault}" \
548
-
--subscription "${subscriptionID}" \
578
+
--subscription "${subscriptionId}" \
549
579
--spn_id "${spn_id}" \
550
580
--spn_secret "${spn_secret}" \
551
581
--tenant_id "${tenant_id}"
@@ -798,7 +828,7 @@ Export the following two environment variables.
0 commit comments