Skip to content

Commit f10fe6e

Browse files
Merge pull request #211653 from KimForss/main
Automated DevOps configuration
2 parents 7021bf0 + c675038 commit f10fe6e

File tree

1 file changed

+47
-4
lines changed

1 file changed

+47
-4
lines changed

articles/virtual-machines/workloads/sap/automation-configure-devops.md

Lines changed: 47 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,53 @@ You can use Azure Repos to store your configuration files and Azure Pipelines to
1818

1919
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.
2020

21-
## Create a new project
21+
## Configure Azure DevOps Services for the SAP Deployment Automation Framework
22+
23+
You can use the following script to do a basic installation of Azure Devops Services for the SAP Deployment Automation Framework.
24+
25+
Login to Azure Cloud Shell
26+
```bash
27+
export ADO_ORGANIZATION=<yourOrganization>
28+
export ADO_PROJECT=SAP Deployment Automation
29+
wget https://raw.githubusercontent.com/Azure/sap-automation/experimental/deploy/scripts/create_devops_artifacts.sh -O devops.sh
30+
chmod +x ./devops.sh
31+
./devops.sh
32+
rm ./devops.sh
33+
34+
```
35+
36+
Validate that the project has been created by navigating to the Azure DevOps portal and selecting the project. Ensure that the Repo is populated and that the pipelines have been created.
37+
38+
You can finalize the Azure DevOps configuration by running the following scripts on your local workstation. Open a PowerShell Console and define the environment variables. Replace the bracketed values with the actual values.
39+
40+
41+
42+
43+
```powershell
44+
$Env:ADO_ORGANIZATION="https://dev.azure.com/<yourorganization>"
45+
46+
$Env:ADO_PROJECT="<yourProject>"
47+
$Env:YourPrefix="<yourPrefix>"
48+
49+
$Env:ControlPlaneSubscriptionID="<YourControlPlaneSubscriptionID>"
50+
$Env:DevSubscriptionID="<YourDevSubscriptionID>"
51+
52+
```
53+
> [!NOTE]
54+
> The ControlPlaneSubscriptionID and DevSubscriptionID can use the same subscriptionID.
55+
56+
57+
Once the variables are defined run the following script to create the service principals and the application registration.
58+
59+
```powershell
60+
61+
Invoke-WebRequest -Uri https://raw.githubusercontent.com/Azure/sap-automation/experimental/deploy/scripts/update_devops_credentials.ps1 -OutFile .\configureDevOps.ps1 ; .\configureDevOps.ps1
62+
63+
```
64+
65+
## Manual Configuration
66+
67+
### Create a new project
2268

2369
You can use Azure Repos to store both the code from the sap-automation GitHub repository and the environment configuration files.
2470

@@ -187,9 +233,6 @@ Create the Configuration Web App pipeline by choosing _New Pipeline_ from the Pi
187233

188234
Save the Pipeline, to see the Save option select the chevron next to the Run button. Navigate to the Pipelines section and select the pipeline. Rename the pipeline to 'Configuration Web App' by choosing 'Rename/Move' from the three-dot menu on the right.
189235

190-
> [!NOTE]
191-
> In order for the web app to function correctly, the SAP workload zone deployment and SAP system deployment pipelines must be named as specified.
192-
193236
## Deployment removal pipeline
194237

195238
Create the deployment removal pipeline by choosing _New Pipeline_ from the Pipelines section, select 'Azure Repos Git' as the source for your code. Configure your Pipeline to use an existing Azure Pipelines YAML File. Specify the pipeline with the following settings:

0 commit comments

Comments
 (0)