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
# Use SAP Deployment Automation Framework from Azure DevOps Services
13
13
14
-
You can use Azure DevOps Services (Azure Repos and Azure Pipelines) as your configuration repository and as the deployment and configuration environment for the SAP Deployment Automation Framework. This page describes how you can set up Azure DevOps Services.
14
+
You can use Azure Repos to store your configuration files and Azure Pipelines to deploy and configure the infrastructure and the SAP application.
15
15
16
16
## Sign up for Azure DevOps Services
17
17
18
-
To use Azure DevOps Services, you'll need an Azure DevOps organization. An organization is used to connect groups of related projects. Use your work or school account to automatically connect your organization to your Azure Active Directory (Azure AD). To create an account open [Azure DevOps](https://azure.microsoft.com/services/devops/) and either _sign-in_ or create a new account. Record the URL of the project.
18
+
To use Azure DevOps Services, you'll need an Azure DevOps organization. An organization is used to connect groups of related projects. Use your work or school account to automatically connect your organization to your Azure Active Directory (Azure AD). To create an account, open [Azure DevOps](https://azure.microsoft.com/services/devops/) and either _sign-in_ or create a new account. Record the URL of the project.
19
19
20
20
## Create a new project
21
21
@@ -30,7 +30,7 @@ Open (https://dev.azure.com) and create a new project by clicking on the _New Pr
30
30
31
31
Start by importing the SAP Deployment Automation Framework GitHub repository into Azure Repos. Navigate to the Repositories section and choose Import a repository. Import the 'https://github.com/Azure/sap-automation.git' repository into Azure DevOps. For more info, see [Import a repository](/azure/devops/repos/git/import-git-repository?view=azure-devops&preserve-view=true)
32
32
33
-
Some of the pipelines will add files to the Azure Repos and therefore require pull permissions. Assign the permissions using Security tab of the source code repository in the Repositories section in Project settings. Assign "Contribute" permissions to the Build Service.
33
+
Some of the pipelines will add files to the Azure Repos and therefore require pull permissions. Assign "Contribute" permissions to the 'Build Service' using the Security tab of the source code repository in the Repositories section in Project settings.
@@ -51,9 +51,9 @@ To create the service connection, go to Project settings and navigate to the Ser
51
51
52
52
:::image type="content" source="./media/automation-devops/automation-create-service-connection.png" alt-text="Picture showing how to create a Service connection":::
53
53
54
-
Choose _Azure Resource Manager_ as the service connection type and _Service principal (manual)_ as the authentication method. Specify the target subscription (typically the control plane subscription) and provide the service principal details (verify that they're valid using the _Verify_ button). If you don't have a service principal see [Creating a Service Principal](automation-deploy-control-plane.md#prepare-the-deployment-credentials) for more information.
54
+
Choose _Azure Resource Manager_ as the service connection type and _Service principal (manual)_ as the authentication method. Enter the target subscription, typically the control plane subscription, and provide the service principal details (verify that they're valid using the _Verify_ button). For more information on how to create a service principal, see [Creating a Service Principal](automation-deploy-control-plane.md#prepare-the-deployment-credentials).
55
55
56
-
Finally provide a Service connection name, for instance 'Connection to DEV subscription' and ensure that the _Grant access permission to all pipelines_ checkbox is checked. Select _Verify and save_ to save the service connection.
56
+
Enter a Service connection name, for instance 'Connection to DEV subscription' and ensure that the _Grant access permission to all pipelines_ checkbox is checked. Select _Verify and save_ to save the service connection.
57
57
58
58
## Create Azure Pipelines
59
59
@@ -165,11 +165,11 @@ The pipelines use a custom task to perform cleanup activities post deployment. T
165
165
166
166
## Variable definitions
167
167
168
-
The deployment pipelines are configured to use a set of predefined parameter values. I Azure DevOps these can be defined using variable groups.
168
+
The deployment pipelines are configured to use a set of predefined parameter values. I Azure DevOps the variables are defined using variable groups.
169
169
170
170
### Common variables
171
171
172
-
There are a set of common variables that are used by all the workload zones. These are stored in their own variable group 'SDAF-General'
172
+
There's a set of common variables that are used by all the deployment pipelines. These variables are stored in a variable group called 'SDAF-General'.
173
173
174
174
Create a new variable group 'SDAF-General' using the Library page in the Pipelines section. Add the following variables:
175
175
@@ -201,14 +201,14 @@ Create a new variable group 'SDAF-DEV' using the Library page in the Pipelines s
201
201
| ARM_SUBSCRIPTION_ID | Target subscription ID ||
202
202
| ARM_TENANT_ID | Tenant ID for service principal ||
203
203
| AZURE_CONNECTION_NAME | Previously created connection name ||
204
-
| sap_fqdn | SAP Fully Qualified Domain Name, for example sap.contoso.net | Only needed if Private DNS is not used. |
204
+
| sap_fqdn | SAP Fully Qualified Domain Name, for example sap.contoso.net | Only needed if Private DNS isn't used. |
205
205
206
206
207
207
Save the variables and assign permissions for all pipelines using _Pipeline permissions_.
208
208
209
209
## Register the Deployer as a self-hosted agent for Azure DevOps
210
210
211
-
You must use the Deployer as a [self-hosted agent for Azure DevOps](/azure/devops/pipelines/agents/v2-linux) to perform the Ansible configuration activities. As a one-time step, you must register the Deployer as an self-hosted agent.
211
+
You must use the Deployer as a [self-hosted agent for Azure DevOps](/azure/devops/pipelines/agents/v2-linux) to perform the Ansible configuration activities. As a one-time step, you must register the Deployer as a self-hosted agent.
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
15
16
-
You will perform the following tasks during this lab:
16
+
You'll perform the following tasks during this lab:
17
17
18
18
> [!div class="checklist"]
19
19
> * Deploy the Control Plane (Deployer Infrastructure & Library)
@@ -44,8 +44,8 @@ These steps reference and use the [default naming convention](automation-naming.
44
44
- Azure DevOps repository name is `sap-automation`
45
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
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`, leading to 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. This leads to the configuration name for the SAP System: `DEV-WEEU-SAP01-X00`
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`
@@ -71,10 +71,7 @@ The deployment will use the configuration defined in the Terraform variable file
71
71
72
72
Ensure that the 'Deployment_Configuration_Path' variable in the 'SDAF-General' variable group is set to 'samples/WORKSPACES'
73
73
74
-
Run the pipeline by navigating to the Pipelines section in the [Azure DevOps Portal](https://dev.azure.com) and selecting the _Deploy control plane_ pipeline. Run the pipeline and when prompted enter the following values:
SAP Library configuration name: MGMT-WEEU-SAP_LIBRARY
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.
78
75
79
76
:::image type="content" source="media/automation-devops/automation-run-pipeline.png" alt-text="Picture showing the DevOps tutorial run pipeline dialog":::
80
77
@@ -86,39 +83,28 @@ You can track the progress in the Azure DevOps portal. Once the deployment is co
86
83
87
84
The deployment will use the configuration defined in the Terraform variable file located in the 'samples/WORKSPACES/LANDSCAPE/DEV-WEEU-SAP01-INFRASTRUCTURE' folder.
88
85
89
-
Run the pipeline by navigating to the Pipelines section in the [Azure DevOps Portal](https://dev.azure.com) and selecting the _Deploy workload zone_ pipeline. Run the pipeline and when prompted enter the following values:
90
-
91
-
Workload zone configuration name: DEV-WEEU-SAP01-INFRASTRUCTURE
92
-
Deployer Environment Name: MGMT
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.
93
87
94
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.
95
89
96
90
## Deploy the SAP System
97
91
98
92
The deployment will use the configuration defined in the Terraform variable file located in the 'samples/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X00' folder.
99
93
100
-
Run the pipeline by navigating to the Pipelines section in the [Azure DevOps Portal](https://dev.azure.com) and selecting the _SAP system deployment_ pipeline. Run the pipeline and when prompted enter the following values:
101
-
102
-
SAP System configuration name: DEV-WEEU-SAP01-X00
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.
103
95
104
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.
105
97
106
98
## Download the SAP Software
107
99
108
-
Run the pipeline by navigating to the Pipelines section in the [Azure DevOps Portal](https://dev.azure.com) and selecting the _SAP software acquisition_ pipeline. Run the pipeline and when prompted enter the following values:
109
-
110
-
Name of Bill of Materials (BoM): S41909SPS03_v0010ms
111
-
Control Plane Environment name: MGMT
112
-
Control Plane (SAP Library) location code: WEEU
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.
113
102
114
103
You can track the progress in the Azure DevOps portal.
115
104
116
105
## Run the Configuration and SAP Installation pipeline
117
106
118
-
Run the pipeline by navigating to the Pipelines section in the [Azure DevOps Portal](https://dev.azure.com) and selecting the _Configuration and SAP installation_ pipeline. Run the pipeline and when prompted enter the following values:
119
-
120
-
SAP System configuration name: DEV-WEEU-SAP01-X00
121
-
Bill of Materials name: S41909SPS03_v0010ms
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.
122
108
123
109
Choose the playbooks to execute.
124
110
@@ -128,36 +114,27 @@ You can track the progress in the Azure DevOps portal.
128
114
129
115
## Run the Repository update pipeline
130
116
131
-
Run the pipeline by navigating to the Pipelines section in the [Azure DevOps Portal](https://dev.azure.com) and selecting the _Repository updater_ pipeline. Run the pipeline and when prompted enter the following values:
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.
135
118
136
119
Only choose 'Force the update' if the update fails.
137
120
138
121
139
122
## Run the removal pipeline
140
123
141
-
Run the pipeline by navigating to the Pipelines section in the [Azure DevOps Portal](https://dev.azure.com) and selecting the _Deployment removal _ pipeline. Run the pipeline and select which deployment to remove.
124
+
Run the pipeline by selecting the _Deployment removal_pipeline from the Pipelines section.
142
125
143
126
### SAP System removal
144
127
145
-
When prompted enter the following values:
146
-
147
-
SAP System configuration name: DEV-WEEU-SAP01-X00
128
+
Enter 'DEV-WEEU-SAP01-X00' as the SAP System configuration name.
148
129
149
130
### SAP Workload Zone removal
150
131
151
-
When prompted enter the following values:
152
-
153
-
SAP workload zone configuration name: DEV-WEEU-SAP01-INFRASTRUCTURE
132
+
Enter 'DEV-WEEU-SAP01-INFRASTRUCTURE' as the SAP workload zone configuration name.
Copy file name to clipboardExpand all lines: articles/virtual-machines/workloads/sap/automation-tutorial.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -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
@@ -147,7 +147,7 @@ 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 this if you want to remove all remnants of previous deployment artifacts.
150
+
1. Optionally remove all the deployment artifacts. Use when you want to remove all remnants of previous deployment artifacts.
151
151
152
152
```cloudshell-interactive
153
153
@@ -391,7 +391,7 @@ The sample SAP Library configuration file `MGMT-NOEU-SAP_LIBRARY.tfvars` is in t
391
391
392
392
## Connect to deployer VM
393
393
394
-
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.
395
395
396
396
Make sure you can connect to your deployer VM:
397
397
@@ -523,7 +523,7 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
523
523
524
524
```
525
525
526
-
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
527
527
528
528
Your file should look similar to the following example configuration:
529
529
@@ -581,7 +581,7 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
581
581
582
582
1. Additionally, the following piece of information needs to be collected.
583
583
584
-
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
585
585
- Library resource group -> state storage account -> containers -> tfstate -> Copy the **name** of the Deployer state file.
586
586
- Following from the example above, the name of the blob will be: *MGMT-NOEU-DEP00-INFRASTRUCTURE.terraform.tfstate*
587
587
@@ -621,7 +621,7 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
621
621
git pull
622
622
```
623
623
624
-
1. Go into the *WORKSPACES/LANDSCAPE* folder and copy the sample configuration files that you'll 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.
@@ -775,7 +775,7 @@ This playbook will install the HANA database instances.
775
775
776
776
### Playbook: SCS Install
777
777
778
-
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.
779
779
780
780
### Playbook: DB Load
781
781
@@ -787,7 +787,7 @@ This playbook will install the primary application server.
787
787
788
788
### Playbook: APP Install
789
789
790
-
This playbook will install the additional application servers.
790
+
This playbook will install the application servers.
791
791
792
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
793
793
@@ -809,7 +809,7 @@ To remove the entire SAP infrastructure you deployed, you need to:
809
809
810
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.
811
811
812
-
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