Skip to content

Commit c675038

Browse files
author
Kimmo Forss
committed
Auto configuration of DevOps
1 parent 618bdf4 commit c675038

File tree

1 file changed

+47
-1
lines changed

1 file changed

+47
-1
lines changed

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

Lines changed: 47 additions & 1 deletion
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

0 commit comments

Comments
 (0)