Skip to content

Commit 11b150f

Browse files
author
Kimmo Forss
committed
Web App
1 parent 9a8d41c commit 11b150f

File tree

3 files changed

+87
-83
lines changed

3 files changed

+87
-83
lines changed

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

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Start by importing the SAP Deployment Automation Framework GitHub repository int
3434

3535
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)
3636

37-
If you're unable to import a repository, you can create the 'sap-automation' repository and manually import the content from the SAP Deployment Automation Framework GitHub repository to it.
37+
If you're unable to import a repository, you can create the 'sap-automation' repository, and manually import the content from the SAP Deployment Automation Framework GitHub repository to it.
3838

3939
### Create the repository for manual import
4040

@@ -276,7 +276,7 @@ Create a new variable group 'SDAF-General' using the Library page in the Pipelin
276276
| `POOL` | `<Agent Pool name>` | Use the Agent pool defined in the previous step. |
277277
| `advice.detachedHead` | false | |
278278
| `skipComponentGovernanceDetection` | true | |
279-
| `tf_version` | 1.1.7 | The Terraform version to use, see [Terraform download](https://www.terraform.io/downloads) |
279+
| `tf_version` | 1.2.6 | The Terraform version to use, see [Terraform download](https://www.terraform.io/downloads) |
280280

281281
Save the variables.
282282

@@ -301,20 +301,22 @@ As each environment may have different deployment credentials you'll need to cre
301301

302302
Create a new variable group 'SDAF-MGMT' for the control plane environment using the Library page in the Pipelines section. Add the following variables:
303303

304-
| Variable | Value | Notes |
305-
| --------------------- | ------------------------------------------------------------------ | -------------------------------------------------------- |
306-
| Agent | 'Azure Pipelines' or the name of the agent pool | Note, this pool will be created in a later step. |
307-
| ARM_CLIENT_ID | Enter the Service principal application ID. | |
308-
| ARM_CLIENT_SECRET | Enter the Service principal password. | Change variable type to secret by clicking the lock icon |
309-
| ARM_SUBSCRIPTION_ID | Enter the target subscription ID. | |
310-
| ARM_TENANT_ID | Enter the Tenant ID for the service principal. | |
311-
| AZURE_CONNECTION_NAME | Previously created connection name. | |
312-
| sap_fqdn | SAP Fully Qualified Domain Name, for example 'sap.contoso.net'. | Only needed if Private DNS isn't used. |
313-
| FENCING_SPN_ID | Enter the service principal application ID for the fencing agent. | Required for highly available deployments. |
314-
| FENCING_SPN_PWD | Enter the service principal password for the fencing agent. | Required for highly available deployments. |
315-
| FENCING_SPN_TENANT | Enter the service principal tenant ID for the fencing agent. | Required for highly available deployments. |
316-
| TF_VAR_app_registration_app_id | App registration application ID | Required if deploying the web app |
317-
| TF_VAR_webapp_client_secret | App registration password | Required if deploying the web app |
304+
| Variable | Value | Notes |
305+
| ------------------------------- | ------------------------------------------------------------------ | -------------------------------------------------------- |
306+
| Agent | 'Azure Pipelines' or the name of the agent pool | Note, this pool will be created in a later step. |
307+
| ARM_CLIENT_ID | Enter the Service principal application ID. | |
308+
| ARM_CLIENT_SECRET | Enter the Service principal password. | Change variable type to secret by clicking the lock icon |
309+
| ARM_SUBSCRIPTION_ID | Enter the target subscription ID. | |
310+
| ARM_TENANT_ID | Enter the Tenant ID for the service principal. | |
311+
| AZURE_CONNECTION_NAME | Previously created connection name. | |
312+
| sap_fqdn | SAP Fully Qualified Domain Name, for example 'sap.contoso.net'. | Only needed if Private DNS isn't used. |
313+
| FENCING_SPN_ID | Enter the service principal application ID for the fencing agent. | Required for highly available deployments. |
314+
| FENCING_SPN_PWD | Enter the service principal password for the fencing agent. | Required for highly available deployments. |
315+
| FENCING_SPN_TENANT | Enter the service principal tenant ID for the fencing agent. | Required for highly available deployments. |
316+
| `PAT` | `<Personal Access Token>` | Use the Personal Token defined in the previous |
317+
| `POOL` | `<Agent Pool name>` | Use the Agent pool defined in the previous |
318+
| TF_VAR_app_registration_app_id | App registration application ID | Required if deploying the web app |
319+
| TF_VAR_webapp_client_secret | App registration password | Required if deploying the web app |
318320

319321
Save the variables.
320322

@@ -431,7 +433,7 @@ After updating the reply-urls, run the pipeline.
431433

432434
By default there will be no inbound public internet access to the web app apart from the deployer virtual network. To allow additional access to the web app, navigate to the Azure portal. In the deployer resource group, navigate to the app service resource. Then under settings on the left hand side, click on networking. From here, click Access restriction. Add any allow or deny rules you would like. For more information on configuring access restrictions, see [Set up Azure App Service access restrictions](https://docs.microsoft.com/en-us/azure/app-service/app-service-ip-restrictions).
433435

434-
You will also need to grant reader permissions to the app service system-assigned managed identity. Navgiate to the app service resource. On the left hand side, click "Identity". In the "system assigned" tab, click on "Azure role assignments" > "Add role assignment". Select "subscription" as the scope, and "reader" as the role. Then click save. Without this step, the web app dropdown functionality will not work.
436+
You will also need to grant reader permissions to the app service system-assigned managed identity. Navgiate to the app service resource. On the left hand side, click "Identity". In the "system assigned" tab, click on "Azure role assignments" > "Add role assignment". Select "subscription" as the scope, and "reader" as the role. Then click save. Without this step, the web app dropdown functionality won't work.
435437

436438
You should now be able to visit the web app, and use it to deploy SAP workload zones and SAP system infrastructure.
437439

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
title: Configure a Deployer UX Web Application for SAP Deployment Automation Framework
3-
description: Configure a web app as a part of the control plane to assist in creating and deploying SAP workload zones and systems on Azure.
3+
description: Configure a web app as a part of the control plane to help creating and deploying SAP workload zones and systems on Azure.
44
author: wsheehan
55
ms.author: wsheehan
66
ms.reviewer: wsheehan
@@ -17,7 +17,7 @@ As a part of the SAP automation framework control plane, you can optionally crea
1717

1818
## Create an app registration
1919

20-
If you would like to use the web app, you must first create an app registration for authentication purposes. Open the Azure cloud shell and execute the following commands:
20+
If you would like to use the web app, you must first create an app registration for authentication purposes. Open the Azure Cloud Shell and execute the following commands:
2121

2222
# [Linux](#tab/linux)
2323
Replace MGMT with your environment as necessary.
@@ -57,11 +57,11 @@ rm ./manifest.json
5757
```
5858
---
5959

60-
## Deploy via Azure Devops (pipelines)
60+
## Deploy via Azure DevOps (pipelines)
6161

62-
For full instructions on setting up the web app using Azure Devops, see [Use SAP Deployment Automation Framework from Azure DevOps Services](https://review.docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/automation-configure-devops?branch=main)
62+
For full instructions on setting up the web app using Azure DevOps, see [Use SAP Deployment Automation Framework from Azure DevOps Services](https://review.docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/automation-configure-devops?branch=main)
6363

64-
### Summary of additional steps required to set up the web app before deploying the control plane:
64+
### Summary of steps required to set up the web app before deploying the control plane:
6565
1. Add the web app deployment pipeline (deploy/pipelines/21-deploy-web-app.yaml).
6666
2. Add the variables TF_VAR_app_registration_app_id and TF_VAR_webapp_client_secret to your environment specific variable group before deployment.
6767
3. Assign the administrator role to the build service using the Security tab in your environment specific variable group.
@@ -73,11 +73,11 @@ For full instructions on setting up the web app using Azure Devops, see [Use SAP
7373
3. Run the web app deployment pipeline.
7474
4. (Optionally) add an additional access policy to the app service.
7575

76-
## Deploy via Azure CLI (cloudshell)
76+
## Deploy via Azure CLI (Cloud Shell)
7777

7878
For full instructions on setting up the web app using the Azure CLI, see [Deploy the control plane](https://review.docs.microsoft.com/en-us/azure/virtual-machines/workloads/sap/automation-deploy-control-plane?branch=main&tabs=linux)
7979

80-
### Summary of additional steps required to set up the web app before deploying the control plane:
80+
### Summary of steps required to set up the web app before deploying the control plane:
8181
1. Export the environment variables TF_VAR_app_registration_app_id, TF_VAR_webapp_client_secret, and TF_VAR_use_webapp="true".
8282

8383
### Summary of steps required to access the web app after deploying the control plane:
@@ -91,34 +91,34 @@ For full instructions on setting up the web app using the Azure CLI, see [Deploy
9191

9292
## Using the web app
9393

94-
The web app allows you to create SAP workload zone objects and system infrastructure objects. These are essentially another representation of a configuration file.
95-
In the case of deploying using Azure Devops, you have ability to deploy these workload zones and system infrastructures right from the web app.
96-
In the case of deploying using the Azure CLI, you can download the parameter file for any landscape or system object you create, and use that in your command line deployments.
94+
The web app allows you to create SAP workload zone objects and system infrastructure objects. These are essentially another representation of the Terraform configuration file.
95+
If deploying using Azure Pipelines, you have ability to deploy these workload zones and system infrastructures right from the web app.
96+
If deploying using the Azure CLI, you can download the parameter file for any landscape or system object you create, and use that in your command line deployments.
9797

9898
### Creating a landscape or system object from scratch
9999
1. Navigate to the "Workload zones" or "Systems" tab at the top of the website.
100100
2. Click "Create New" in the bottom left corner.
101101
3. Fill out the required parameters in the "Basic" and "Advanced" tabs, and any additional parameters you desire.
102-
4. Certain parameters will be dropdowns populated with existing azure resources.
102+
4. Certain parameters will be dropdowns populated with existing Azure resources.
103103
* If no results are shown for a dropdown, you probably need to specify another dropdown before you can see any options. Or, see step 2 above regarding the system assigned managed identity.
104104
- The subscription parameter must be specified before any other dropdown functionality is enabled
105105
- The network_arm_id parameter must be specified before any subnet dropdown functionality is enabled
106-
5. Click submit in the bottom left hand corner
106+
5. Select submit in the bottom left hand corner
107107

108108
### Creating a workload zone or system object from a file
109109
1. Navigate to the "File" tab at the top of the website.
110110
2. Your options are
111-
* Create a new file from scratch there in browser. It should be in the .tfvars file format. Click save.
112-
* Import an existing .tfvars file, and (optionally) edit it before saving.
111+
* Create a new file from scratch there in browser.
112+
* Import an existing.tfvars file, and (optionally) edit it before saving.
113113
* Use an existing template, and (optionally) edit it before saving.
114114
3. Make sure your file conforms to the correct naming conventions.
115115
4. Next to the file you would like to convert to a workload zone or system object, click "Convert".
116116
5. The workload zone or system object will appear in its respective tab.
117117

118-
### Deploying a workload zone or system object (Azure Devops deployment)
118+
### Deploying a workload zone or system object (Azure DevOps Pipelines deployment)
119119
1. Navigate to the Workload zones or Systems tab.
120120
2. Next to the workload zone or system you would like to deploy, click "Deploy".
121121
* If you would like to deploy a file, first convert it to a workload zone or system object.
122-
4. Specify the necessary parameters, and confirm it is the correct object.
122+
4. Specify the necessary parameters, and confirm it's the correct object.
123123
5. Click deploy.
124-
6. The web app will automatically generate a .tfvars file from the object, update your Devops repository, and kick off the workload zone or system (infrastructure) pipeline. Monitor the deployment back in Azure Devops.
124+
6. The web app will automatically generate a '.tfvars' file from the object, update your Azure DevOps repository, and kick off the workload zone or system (infrastructure) pipeline. You can monitor the deployment in the Azure DevOps Portal.

0 commit comments

Comments
 (0)