Skip to content

Commit 04275ec

Browse files
author
Kimmo Forss
committed
Deployment step updates
1 parent 9207b24 commit 04275ec

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

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

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -114,25 +114,23 @@ Run the following command to deploy the control plane:
114114

115115
```bash
116116

117-
az logout
118-
cd ~/Azure_SAP_Automated_Deployment
119-
cp -Rp samples/Terraform/WORKSPACES config
120-
cd config/WORKSPACES
121-
122117
export ARM_SUBSCRIPTION_ID="<subscriptionId>"
123118
export ARM_CLIENT_ID="<appId>"
124119
export ARM_CLIENT_SECRET="<password>"
125120
export ARM_TENANT_ID="<tenantId>"
126121
export env_code="MGMT"
127122
export region_code="WEEU"
128-
export vnet_code="WEEU"
123+
export vnet_code="DEP01"
124+
125+
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
126+
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/WORKSPACES"
127+
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
129128

129+
az logout
130130
az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
131131

132132

133-
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
134-
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/config/WORKSPACES"
135-
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
133+
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES
136134

137135

138136
sudo ${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
@@ -141,8 +139,7 @@ sudo ${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh
141139
--subscription "${ARM_SUBSCRIPTION_ID}" \
142140
--spn_id "${ARM_CLIENT_ID}" \
143141
--spn_secret "${ARM_CLIENT_SECRET}" \
144-
--tenant_id "${ARM_TENANT_ID}" \
145-
--auto-approve
142+
--tenant_id "${ARM_TENANT_ID}"
146143
```
147144

148145

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,13 +121,14 @@ export region_code="<region_code>"
121121
export vnet_code="SAP02"
122122
export deployer_environment="MGMT"
123123

124-
az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
125-
126124

127125
export DEPLOYMENT_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
128126
export CONFIG_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/config/WORKSPACES"
129127
export SAP_AUTOMATION_REPO_PATH="${HOME}/Azure_SAP_Automated_Deployment/sap-automation"
130128

129+
az login --service-principal -u "${ARM_CLIENT_ID}" -p="${ARM_CLIENT_SECRET}" --tenant "${ARM_TENANT_ID}"
130+
131+
131132
cd "${CONFIG_REPO_PATH}/LANDSCAPE/${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE"
132133
parameterFile="${env_code}-${region_code}-${vnet_code}-INFRASTRUCTURE.tfvars"
133134

@@ -137,8 +138,7 @@ $SAP_AUTOMATION_REPO_PATH/deploy/scripts/install_workloadzone.sh \
137138
--subscription "${ARM_SUBSCRIPTION_ID}" \
138139
--spn_id "${ARM_CLIENT_ID}" \
139140
--spn_secret "${ARM_CLIENT_SECRET}" \
140-
--tenant_id "${ARM_TENANT_ID}" \
141-
--auto-approve
141+
--tenant_id "${ARM_TENANT_ID}"
142142

143143
```
144144
# [Windows](#tab/windows)

articles/sap/automation/get-started.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,18 @@ sudo apt-get install -y git jq unzip virtualenv
6060

6161
```
6262

63-
You can then install the deployer using the following commands:
63+
You can then install the deployer components using the following commands:
6464

6565
```bash
6666

6767
wget https://raw.githubusercontent.com/Azure/sap-automation/main/deploy/scripts/configure_deployer.sh -O configure_deployer.sh
6868
chmod +x ./configure_deployer.sh
6969
./configure_deployer.sh
7070

71+
# Source the new variables
72+
73+
. /etc/profile.d/deploy_server.sh
74+
7175
```
7276

7377

@@ -79,7 +83,7 @@ The ~/Azure_SAP_Automated_Deployment/samples folder contains a set of sample con
7983
```bash
8084
cd ~/Azure_SAP_Automated_Deployment
8185

82-
cp -Rp samples/Terraform/WORKSPACES config
86+
cp -Rp samples/Terraform/WORKSPACES ~/Azure_SAP_Automated_Deployment
8387
```
8488

8589

0 commit comments

Comments
 (0)