Skip to content

Commit 9236641

Browse files
authored
Webapp backend changes (#4)
1 parent 0bd39a9 commit 9236641

File tree

4 files changed

+27
-21
lines changed

4 files changed

+27
-21
lines changed

articles/virtual-machines/workloads/sap/automation-configure-control-plane.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,11 @@ The table below contains the networking parameters.
8989
> | | | | |
9090
> | `management_bastion_subnet_arm_id` | The Azure resource identifier for the Bastion subnet | Mandatory | For brown field deployments. |
9191
> | `management_bastion_subnet_address_prefix` | The address range for the subnet | Mandatory | For green field deployments. |
92-
> | `cmdb_subnet_arm_id` | The Azure resource identifier for the Cosmos DB subnet | Mandatory | For brown field deployments using the web app |
93-
> | `cmdb_subnet_address_prefix` | The address range for the subnet | Mandatory | For green field deployments using the web app |
92+
> | `webapp_subnet_arm_id` | The Azure resource identifier for the web app subnet | Mandatory | For brown field deployments using the web app |
93+
> | `webapp_subnet_address_prefix` | The address range for the subnet | Mandatory | For green field deployments using the web app |
9494
9595
> [!NOTE]
96-
> When using an existing subnet for the cosmos db and web app, the subnet must be empty, in the same region as the resource group being deployed, and delegated to Microsoft.Web/serverFarms![image](https://user-images.githubusercontent.com/9037701/174907147-05acfbd3-7ccb-4d62-aa4c-7e2ea64320c2.png)
96+
> When using an existing subnet for the web app, the subnet must be empty, in the same region as the resource group being deployed, and delegated to Microsoft.Web/serverFarms
9797
9898

9999
### Deployer Virtual Machine Parameters

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ The pipelines use a custom task to perform cleanup activities post deployment. T
250250

251251
:::image type="content" source="./media/automation-devops/automation-select-personal-access-tokens.jpg" alt-text="Diagram showing the creation of the Personal Access Token (PAT).":::
252252

253-
1. Create a personal access token. Ensure that _Read & manage_ is selected for _Agent Pools_, _Read & write_ is selected for _Code_, and _Read, create, & manage_ is selected for _Variable Groups_. Write down the created token value.
253+
1. Create a personal access token. Ensure that _Read & manage_ is selected for _Agent Pools_, _Read & write_ is selected for _Code_, _Read & execute_ is selected for _Build_, and _Read, create, & manage_ is selected for _Variable Groups_. Write down the created token value.
254254

255255
:::image type="content" source="./media/automation-devops/automation-new-pat.png" alt-text="Diagram showing the attributes of the Personal Access Token (PAT).":::
256256

@@ -429,7 +429,9 @@ az ad app update --id $TF_VAR_app_registration_app_id --web-home-page-url https:
429429
---
430430
After updating the reply-urls, run the pipeline.
431431

432-
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, find the web app. 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).
432+
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).
433+
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.
433435

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

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

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,9 @@ For full instructions on setting up the web app using Azure Devops, see [Use SAP
6969

7070
### Summary of steps required to access the web app after deploying the control plane:
7171
1. Update the app registration reply URLs.
72-
2. Run the webb app deployment pipeline you set up in step 1 above.
73-
3. (Optionally) add an additional access policy to the app service.
72+
2. Assign the reader role with the subscription scope to the app service system assigned managed identity.
73+
3. Run the web app deployment pipeline.
74+
4. (Optionally) add an additional access policy to the app service.
7475

7576
## Deploy via Azure CLI (cloudshell)
7677

@@ -81,42 +82,43 @@ For full instructions on setting up the web app using the Azure CLI, see [Deploy
8182

8283
### Summary of steps required to access the web app after deploying the control plane:
8384
1. Update the app registration reply URLs.
84-
2. Generate a zip file of the web app code.
85-
3. Deploy the software to the app service.
86-
4. Configure the application settings.
87-
5. (Optionally) add an additional access policy to the app service.
85+
2. Assign the reader role with the subscription scope to the app service system assigned managed identity.
86+
3. Generate a zip file of the web app code.
87+
4. Deploy the software to the app service.
88+
5. Configure the application settings.
89+
6. (Optionally) add an additional access policy to the app service.
8890

8991

9092
## Using the web app
9193

92-
The web app allows you to create SAP workload zone (landscape) objects and system infrastructure objects. These are essentially another representation of a configuration file.
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.
9395
In the case of deploying using Azure Devops, you have ability to deploy these workload zones and system infrastructures right from the web app.
9496
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.
9597

9698
### Creating a landscape or system object from scratch
97-
1. Navigate to the "Landscape" or "System" tab at the top of the website.
99+
1. Navigate to the "Workload zones" or "Systems" tab at the top of the website.
98100
2. Click "Create New" in the bottom left corner.
99101
3. Fill out the required parameters in the "Basic" and "Advanced" tabs, and any additional parameters you desire.
100102
4. Certain parameters will be dropdowns populated with existing azure resources.
101-
* If no results are shown for a dropdown, you probably need to specify another dropdown before you can see any options.
103+
* 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.
102104
- The subscription parameter must be specified before any other dropdown functionality is enabled
103105
- The network_arm_id parameter must be specified before any subnet dropdown functionality is enabled
104106
5. Click submit in the bottom left hand corner
105107

106-
### Creating a landscape or system object from a file
108+
### Creating a workload zone or system object from a file
107109
1. Navigate to the "File" tab at the top of the website.
108110
2. Your options are
109111
* Create a new file from scratch there in browser. It should be in the .tfvars file format. Click save.
110112
* Import an existing .tfvars file, and (optionally) edit it before saving.
111113
* Use an existing template, and (optionally) edit it before saving.
112114
3. Make sure your file conforms to the correct naming conventions.
113-
4. Next to the file you would like to convert to a landscape or system object, click "Convert".
114-
5. The landscape or system object will appear in its respective tab.
115+
4. Next to the file you would like to convert to a workload zone or system object, click "Convert".
116+
5. The workload zone or system object will appear in its respective tab.
115117

116-
### Deploying a landscape or system object (Azure Devops deployment)
117-
1. Navigate to the Landscape or System tab.
118-
2. Next to the landscape or system you would like to deploy, click "Deploy".
119-
* If you would like to deploy a file, first convert it to a landscape or system object.
118+
### Deploying a workload zone or system object (Azure Devops deployment)
119+
1. Navigate to the Workload zones or Systems tab.
120+
2. Next to the workload zone or system you would like to deploy, click "Deploy".
121+
* If you would like to deploy a file, first convert it to a workload zone or system object.
120122
4. Specify the necessary parameters, and confirm it is the correct object.
121123
5. Click deploy.
122124
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.

articles/virtual-machines/workloads/sap/automation-deploy-control-plane.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,8 @@ IS_PIPELINE_DEPLOYMENT=false
342342
343343
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, find the web app. 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).
344344
345+
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.
346+
345347
You can login and visit the web app by following the URL from earlier or clicking browse inside the app service resource. With the web app, you are able to configure SAP workload zones and system infrastructure. Click download to obtain a parameter file of the workload zone or system you specified, for use in the later deployment steps.
346348
347349

0 commit comments

Comments
 (0)