Skip to content

Commit 77eee8a

Browse files
Merge pull request #248121 from KimForss/main
Scripted deployment step updates
2 parents 3ae47c4 + 8e6388a commit 77eee8a

File tree

5 files changed

+79
-84
lines changed

5 files changed

+79
-84
lines changed

articles/sap/automation/deploy-control-plane.md

Lines changed: 34 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -100,11 +100,11 @@ It's currently not possible to perform this action from Azure DevOps.
100100

101101
## Deploy the control plane
102102

103-
The sample Deployer configuration file `MGMT-WEEU-DEP00-INFRASTRUCTURE.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/WORKSPACES/DEPLOYER/MGMT-WEEU-DEP00-INFRASTRUCTURE` folder.
103+
The sample Deployer configuration file `MGMT-WEEU-DEP00-INFRASTRUCTURE.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/Terraform/WORKSPACES/DEPLOYER/MGMT-WEEU-DEP00-INFRASTRUCTURE` folder.
104104

105-
The sample SAP Library configuration file `MGMT-WEEU-SAP_LIBRARY.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/WORKSPACES/LIBRARY/MGMT-WEEU-SAP_LIBRARY` folder.
105+
The sample SAP Library configuration file `MGMT-WEEU-SAP_LIBRARY.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/Terraform/WORKSPACES/LIBRARY/MGMT-WEEU-SAP_LIBRARY` folder.
106106

107-
Running the following command creates the Deployer, the SAP Library and adds the Service Principal details to the deployment key vault. If you followed the web app setup in the step above, this command will also create the infrastructure to host the application.
107+
Running the following command creates the Deployer, the SAP Library and adds the Service Principal details to the deployment key vault. If you followed the web app setup in the previous step, this command also creates the infrastructure to host the application.
108108

109109
# [Linux](#tab/linux)
110110

@@ -115,35 +115,41 @@ Run the following command to deploy the control plane:
115115
```bash
116116

117117
az logout
118-
az login
119-
cd ~/Azure_SAP_Automated_Deployment/samples/WORKSPACES
120-
121-
export subscriptionId="<subscriptionId>"
122-
export spn_id="<appId>"
123-
export spn_secret="<password>"
124-
export tenant_id="<tenantId>"
125-
export env_code="MGMT"
126-
export region_code="WEEU"
127-
128-
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
129-
export ARM_SUBSCRIPTION_ID="${subscriptionId}"
130-
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/samples/Terraform/WORKSPACES"
131-
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
132-
133-
134-
${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
135-
--deployer_parameter_file DEPLOYER/${env_code}-${region_code}-DEP00-INFRASTRUCTURE/${env_code}-${region_code}-DEP00-INFRASTRUCTURE.tfvars \
136-
--library_parameter_file "LIBRARY/${env_code}-${region_code}-SAP_LIBRARY/${env_code}-${region_code}-SAP_LIBRARY.tfvars" \
137-
--subscription "${subscriptionId}" \
138-
--spn_id "${spn_id}" \
139-
--spn_secret "${spn_secret}" \
140-
--tenant_id "${tenant_id}" \
141-
--auto-approve
118+
cd ~/Azure_SAP_Automated_Deployment
119+
cp -Rp samples/Terraform/WORKSPACES config
120+
cd config/WORKSPACES
121+
122+
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
123+
export ARM_CLIENT_ID="<appId>"
124+
export ARM_CLIENT_SECRET="<password>"
125+
export ARM_TENANT_ID="<tenantId>"
126+
export env_code="MGMT"
127+
export region_code="WEEU"
128+
export vnet_code="WEEU"
129+
130+
az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
131+
132+
133+
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
134+
="${subscriptionId}"
135+
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/config/WORKSPACES"
136+
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
137+
138+
139+
sudo ${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
140+
--deployer_parameter_file "${CONFIG_REPO_PATH}/DEPLOYER/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars" \
141+
--library_parameter_file "${CONFIG_REPO_PATH}/LIBRARY/${env_code}-${region_code}-SAP_LIBRARY/${env_code}-${region_code}-SAP_LIBRARY.tfvars" \
142+
--subscription "${ARM_SUBSCRIPTION_ID}" \
143+
--spn_id "${ARM_CLIENT_ID}" \
144+
--spn_secret "${ARM_CLIENT_SECRET}" \
145+
--tenant_id "${ARM_TENANT_ID}" \
146+
--auto-approve
142147
```
143148

149+
144150
# [Windows](#tab/windows)
145151

146-
You can't perform this action from Windows
152+
You can't perform a control plane deployment from Windows.
147153
# [Azure DevOps](#tab/devops)
148154

149155
Open (https://dev.azure.com) and go to your Azure DevOps project.

articles/sap/automation/deploy-system.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,17 +129,21 @@ You can copy the sample configuration files to start testing the deployment auto
129129
```bash
130130
cd ~/Azure_SAP_Automated_Deployment
131131

132-
cp -Rp sap-automation/deploy/samples/WORKSPACES WORKSPACES
132+
cp -Rp sap-automation/deploy/samples/WORKSPACES config
133133

134134
```
135135

136136

137137
```bash
138+
139+
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/config/WORKSPACES"
140+
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
141+
138142
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X01
139143

140-
${DEPLOYMENT_REPO_PATH}/deploy/scripts/installer.sh \
144+
${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/installer.sh \
141145
--parameterfile DEV-WEEU-SAP01-X01.tfvars \
142-
--type sap_system
146+
--type sap_system --auto-approve
143147
```
144148
# [Windows](#tab/windows)
145149

articles/sap/automation/deploy-workload-zone.md

Lines changed: 35 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,22 @@ ms.subservice: sap-automation
1414

1515
An [SAP application](deployment-framework.md#sap-concepts) typically has multiple development tiers. For example, you might have development, quality assurance, and production tiers. The [SAP on Azure Deployment Automation Framework](deployment-framework.md) refers to these tiers as [workload zones](deployment-framework.md#deployment-components).
1616

17-
You can use workload zones in multiple Azure regions. Each workload zone then has its own Azure Virtual Network (Azure VNet)
17+
You can use workload zones in multiple Azure regions. Each workload zone then has its own Azure Virtual Network (Azure virtual network)
1818

1919
The following services are provided by the SAP workload zone:
2020

2121
- Azure Virtual Network, including subnets and network security groups.
2222
- Azure Key Vault, for system credentials.
2323
- Storage account for boot diagnostics
2424
- Storage account for cloud witnesses
25+
- Azure NetApp account and capacity pools (optional)
26+
- Azure Files NFS Shares (optional)
2527

2628
:::image type="content" source="./media/deployment-framework/workload-zone.png" alt-text="Diagram SAP Workload Zone.":::
2729

2830
The workload zones are typically deployed in spokes in a hub and spoke architecture. They may be in their own subscriptions.
2931

30-
Supports the Private DNS from the Control Plane.
32+
Supports the Private DNS from the Control Plane or from a configurable source.
3133

3234

3335
## Core configuration
@@ -89,9 +91,9 @@ az role assignment create --assignee <appId> \
8991

9092
## Deploying the SAP Workload zone
9193

92-
The sample Workload Zone configuration file `DEV-WEEU-SAP01-INFRASTRUCTURE.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/WORKSPACES/LANDSCAPE/DEV-WEEU-SAP01-INFRASTRUCTURE` folder.
94+
The sample Workload Zone configuration file `DEV-WEEU-SAP01-INFRASTRUCTURE.tfvars` is located in the `~/Azure_SAP_Automated_Deployment/samples/Terraform/WORKSPACES/LANDSCAPE/DEV-WEEU-SAP01-INFRASTRUCTURE` folder.
9395

94-
Running the command below will deploy the SAP Workload Zone.
96+
Running the following command deploys the SAP Workload Zone.
9597

9698
# [Linux](#tab/linux)
9799

@@ -103,62 +105,45 @@ You can copy the sample configuration files to start testing the deployment auto
103105
```bash
104106
cd ~/Azure_SAP_Automated_Deployment
105107

106-
cp -R sap-automation/samples/WORKSPACES WORKSPACES
108+
cp -R sap-automation/samples/WORKSPACES config
107109

108110
```
109111

110112

111113
```bash
112114

113-
export subscriptionId="<subscriptionId>"
114-
export spn_id="<appId>"
115-
export spn_secret="<password>"
116-
export tenant_id="<tenantId>"
117-
export env_code="MGMT"
118-
export region_code="<region_code>"
115+
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
116+
export ARM_CLIENT_ID="<appId>"
117+
export ARM_CLIENT_SECRET="<password>"
118+
export ARM_TENANT_ID="<tenantId>"
119+
export env_code="DEV"
120+
export region_code="<region_code>"
121+
export vnet_code="SAP02"
122+
export deployer_environment="MGMT"
119123

120-
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
121-
export ARM_SUBSCRIPTION_ID="${subscriptionId}"
122-
123-
${DEPLOYMENT_REPO_PATH}/deploy/scripts/prepare_region.sh \
124-
--deployer_parameter_file DEPLOYER/${env_code}-${region_code}-DEP00-INFRASTRUCTURE/${env_code}-${region_code}-DEP00-INFRASTRUCTURE.tfvars \
125-
--library_parameter_file LIBRARY/${env_code}-${region_code}-SAP_LIBRARY/${env_code}-${region_code}-SAP_LIBRARY.tfvars \
126-
--subscription "${subscriptionId}" \
127-
--spn_id "${spn_id}" \
128-
--spn_secret "${spn_secret}" \
129-
--tenant_id "${tenant_id}" \
130-
--auto-approve
131-
```
132-
# [Windows](#tab/windows)
133-
134-
You can copy the sample configuration files to start testing the deployment automation framework.
135-
136-
```powershell
137-
138-
cd C:\Azure_SAP_Automated_Deployment
124+
az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
139125

140-
xcopy sap-automation\samples\WORKSPACES WORKSPACES
141126

127+
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
128+
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/config/WORKSPACES"
129+
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
130+
131+
cd "${CONFIG_REPO_PATH}/LANDSCAPE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE"
132+
parameterFile="${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars"
133+
134+
$SAP_AUTOMATION_REPO_PATH/deploy/scripts/install_workloadzone.sh \
135+
--parameterfile "${parameterFile}" \
136+
--deployer_environment "${deployer_environment}" \
137+
--subscription "${ARM_SUBSCRIPTION_ID}" \
138+
--spn_id "${ARM_CLIENT_ID}" \
139+
--spn_secret "${ARM_CLIENT_SECRET}" \
140+
--tenant_id "${ARM_TENANT_ID}" \
141+
--auto-approve
142+
142143
```
144+
# [Windows](#tab/windows)
143145

144-
145-
```powershell
146-
$subscription="<subscriptionID>"
147-
$spn_id="<appID>"
148-
$spn_secret="<password>"
149-
$tenant_id="<tenant>"
150-
$keyvault=<keyvaultName>
151-
$storageaccount=<storageaccountName>
152-
$statefile_subscription=<statefile_subscription>
153-
$region_code="WEEU"
154-
155-
cd C:\Azure_SAP_Automated_Deployment\WORKSPACES\LANDSCAPE\DEV-$region_code-SAP01-INFRASTRUCTURE
156-
157-
New-SAPWorkloadZone -Parameterfile DEV-$region_code-SAP01-INFRASTRUCTURE.tfvars
158-
-Subscription $subscription -SPN_id $spn_id -SPN_password $spn_secret -Tenant_id $tenant_id
159-
-State_subscription $statefile_subscription -Vault $keyvault -$StorageAccountName $storageaccount
160-
```
161-
146+
It isn't possible to perform the deployment from Windows.
162147
---
163148

164149
> [!NOTE]
@@ -175,7 +160,7 @@ Open (https://dev.azure.com) and go to your Azure DevOps Services project.
175160
> [!NOTE]
176161
> Ensure that the 'Deployment_Configuration_Path' variable in the 'SDAF-General' variable group is set to the folder that contains your configuration files, for this example you can use 'samples/WORKSPACES'.
177162
178-
The deployment will use the configuration defined in the Terraform variable file located in the 'samples/WORKSPACES/LANDSCAPE/DEV-WEEU-SAP01-INFRASTRUCTURE' folder.
163+
The deployment uses the configuration defined in the Terraform variable file located in the 'samples/WORKSPACES/LANDSCAPE/DEV-WEEU-SAP01-INFRASTRUCTURE' folder.
179164

180165
Run the pipeline by selecting the _Deploy workload zone_ pipeline from the Pipelines section. Enter the workload zone configuration name and the deployer environment name. Use 'DEV-WEEU-SAP01-INFRASTRUCTURE' as the Workload zone configuration name and 'MGMT' as the Deployer Environment Name.
181166

articles/sap/automation/get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ The ~/Azure_SAP_Automated_Deployment/samples folder contains a set of sample con
8080
```bash
8181
cd ~/Azure_SAP_Automated_Deployment
8282

83-
cp -Rp samples/Terraform/WORKSPACES config/WORKSPACES
83+
cp -Rp samples/Terraform/WORKSPACES config
8484
```
8585

8686

articles/sap/automation/run-ansible.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -268,11 +268,11 @@ This playbooks downloads the installation media from the control plane to the in
268268
# [Linux](#tab/linux)
269269

270270
The following tasks are executed on the Central services instance virtual machine:
271-
- Download the software
271+
- Download the software from the storage account and make it available for the other virtual machines
272272

273273
# [Windows](#tab/windows)
274274

275275
The following tasks are executed on the Central services instance virtual machine:
276-
- Download the software
276+
- Download the software from the storage account and make it available for the other virtual machines
277277

278278
---

0 commit comments

Comments
 (0)