Skip to content

Commit bed59ae

Browse files
authored
Merge pull request #223057 from KimForss/main
DevOps structure
2 parents ed4fde2 + c71bc81 commit bed59ae

File tree

2 files changed

+44
-50
lines changed

2 files changed

+44
-50
lines changed

articles/virtual-machines/workloads/sap/automation-get-started.md

Lines changed: 13 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Quickly get started with the SAP on Azure Deployment Automation Fra
44
author: kimforss
55
ms.author: kimforss
66
ms.reviewer: kimforss
7-
ms.date: 11/17/2021
7+
ms.date: 1/2/2023
88
ms.topic: how-to
99
ms.service: virtual-machines-sap
1010
---
@@ -17,9 +17,10 @@ Get started quickly with the [SAP on Azure Deployment Automation Framework](auto
1717

1818

1919
- An Azure subscription. If you don't have an Azure subscription, you can [create a free account](https://azure.microsoft.com/free/?WT.mc_id=A261C142F).
20-
- A [download of the SAP software](automation-software.md) in your Azure environment.
20+
- Ability to [download of the SAP software](automation-software.md) in your Azure environment.
2121
- A [Terraform](https://www.terraform.io/) installation. For more information, also see the [Terraform on Azure documentation](/azure/developer/terraform/).
2222
- An [Azure CLI](/cli/azure/install-azure-cli) installation on your local computer.
23+
- A Service Principal to use for the control plane deployment
2324
- Optionally, if you want to use PowerShell:
2425
- An [Azure PowerShell](/powershell/azure/install-az-ps#update-the-azure-powershell-module) installation on your local computer.
2526
- The latest PowerShell modules. [Update the PowerShell module](/powershell/azure/install-az-ps#update-the-azure-powershell-module) if needed.
@@ -29,67 +30,34 @@ Some of the prerequisites may already be installed in your deployment environmen
2930

3031
Clone the repository and prepare the execution environment by using the following steps:
3132

32-
1. Create a directory called `Azure_SAP_Automated_Deployment` for your automation framework deployment.
33-
34-
# [Linux](#tab/linux)
35-
36-
```bash
37-
mkdir ~/Azure_SAP_Automated_Deployment; cd $_
38-
git clone https://github.com/Azure/sap-automation.git
39-
```
40-
41-
Prepare the environment using the following steps:
33+
- Create a directory called `Azure_SAP_Automated_Deployment` for your automation framework deployment.
4234

4335
```bash
44-
export DEPLOYMENT_REPO_PATH=~/Azure_SAP_Automated_Deployment/sap-automation
45-
export ARM_SUBSCRIPTION_ID=<subscriptionID>
46-
```
47-
> [!NOTE]
48-
> Be sure to replace the sample value `<subscriptionID>` with your information.
49-
50-
# [Windows](#tab/windows)
36+
mkdir ~/Azure_SAP_Automated_Deployment/config; cd $_
37+
git clone https://github.com/Azure/sap-automation-bootstrap.git
5138

52-
```powershell
53-
mkdir C:\Azure_SAP_Automated_Deployment
54-
55-
cd Azure_SAP_Automated_Deployment
56-
39+
mkdir ~/Azure_SAP_Automated_Deployment/sap-automation; cd $_
5740
git clone https://github.com/Azure/sap-automation.git
58-
```
59-
60-
Import the PowerShell module
6141

62-
```powershell
63-
Import-Module C:\Azure_SAP_Automated_Deployment\sap-automation\deploy\scripts\pwsh\SAPDeploymentUtilities\Output\SAPDeploymentUtilities\SAPDeploymentUtilities.psd1
42+
mkdir ~/Azure_SAP_Automated_Deployment/samples; cd $_
43+
git clone https://github.com/Azure/sap-automation-samples.git
6444
```
6545

66-
---
6746

6847
> [!TIP]
69-
> The deployer already clones [SAP on Azure Deployment Automation Framework repository](https://github.com/Azure/sap-automation).
48+
> The deployer already clones the required repositories.
7049
71-
## Copy the samples
50+
## Samples
7251

73-
The repo contains a set of sample configuration files to start testing the deployment automation framework. You can copy them using the following steps.
52+
The ~/Azure_SAP_Automated_Deployment/samples folder contains a set of sample configuration files to start testing the deployment automation framework. You can copy them using the following steps.
7453

75-
# [Linux](#tab/linux)
7654

7755
```bash
7856
cd ~/Azure_SAP_Automated_Deployment
7957

80-
cp -Rp sap-automation/samples/WORKSPACES WORKSPACES
81-
```
82-
# [Windows](#tab/windows)
83-
84-
```powershell
85-
cd C:\Azure_SAP_Automated_Deployment
86-
mkdir WORKSPACES
87-
88-
xcopy /E sap-automation\samples\WORKSPACES WORKSPACES
58+
cp -Rp samples/Terraform/WORKSPACES config/WORKSPACES
8959
```
9060

91-
---
92-
9361

9462
## Next step
9563

articles/virtual-machines/workloads/sap/automation-plan-deployment.md

Lines changed: 31 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,16 +198,20 @@ The following table shows the required permissions for the service principal:
198198
199199
## DevOps structure
200200
201-
The Terraform automation templates are in the [SAP on Azure Deployment Automation Framework repository](https://github.com/Azure/sap-automation/). For most use cases, consider this repository as read-only and don't modify it.
201+
The deployment framework uses three separate repositories for the deployment artifacts. For your own parameter files, it's a best practice to keep these files in a source control repository that you manage.
202202
203-
For your own parameter files, it's a best practice to keep these files in a source control repository that you manage. You can clone the [SAP on Azure Deployment Automation Framework bootstrap repository](https://github.com/Azure/sap-automation-bootstrap/) into your source control repository.
203+
### Main repository
204+
205+
This repository contains the Terraform parameter files and the files needed for the Ansible playbooks for all the workload zone and system deployments.
206+
207+
You can create this repository by cloning the [SAP on Azure Deployment Automation Framework bootstrap repository](https://github.com/Azure/sap-automation-bootstrap/) into your source control repository.
204208
205209
> [!IMPORTANT]
206-
> Your parameter file's name becomes the name of the Terraform state file. Make sure to use a unique parameter file name for this reason.
210+
> This repository must be the default repository for your Azure DevOps project.
207211
208-
### Folder structure
212+
#### Folder structure
209213
210-
The following sample folder hierarchy shows how to structure your configuration files along with the automation framework files. The first top-level folder, called **sap-automation**, has the automation framework files that you don't need to change in most use cases. The second top-level folder, called **WORKSPACES**, contains subfolders with configuration files for your deployment settings.
214+
The following sample folder hierarchy shows how to structure your configuration files along with the automation framework files.
211215
212216
| Folder name | Contents | Description |
213217
| ----------- | -------- | ----------- |
@@ -220,6 +224,28 @@ The following sample folder hierarchy shows how to structure your configuration
220224
221225
:::image type="content" source="./media/automation-plan-deployment/folder-structure.png" alt-text="Screenshot of example folder structure, showing separate folders for SAP HANA and multiple workload environments.":::
222226
227+
> [!IMPORTANT]
228+
> Your parameter file's name becomes the name of the Terraform state file. Make sure to use a unique parameter file name for this reason.
229+
230+
### Code repository
231+
232+
This repository contains the Terraform automation templates and the Ansible playbooks as well as the deployment pipelines and scripts. For most use cases, consider this repository as read-only and don't modify it.
233+
234+
You can create this repository by cloning the [SAP on Azure Deployment Automation Framework repository](https://github.com/Azure/sap-automation/) into your source control repository.
235+
236+
> [!IMPORTANT]
237+
> This repository should be named 'sap-automation'.
238+
239+
### Sample repository
240+
241+
This repository contains the sample Bill of Materials files and the sample Terraform configuration files.
242+
243+
You can create this repository by cloning the [SAP on Azure Deployment Automation Framework samples repository](https://github.com/Azure/sap-automation-samples/) into your source control repository.
244+
245+
> [!IMPORTANT]
246+
> This repository should be named 'samples'.
247+
248+
223249
## Supported deployment scenarios
224250
225251
The automation framework supports [deployment into both new and existing scenarios](automation-new-vs-existing.md).

0 commit comments

Comments
 (0)