Skip to content

Commit 74b706e

Browse files
Merge pull request #248437 from KimForss/main
CLI Steps update
2 parents 4995678 + 04275ec commit 74b706e

File tree

3 files changed

+29
-30
lines changed

3 files changed

+29
-30
lines changed

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

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -114,26 +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-
="${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"
133+
cd ~/Azure_SAP_Automated_Deployment/WORKSPACES
137134

138135

139136
sudo ${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh \
@@ -142,8 +139,7 @@ sudo ${SAP_AUTOMATION_REPO_PATH}/deploy/scripts/deploy_controlplane.sh
142139
--subscription "${ARM_SUBSCRIPTION_ID}" \
143140
--spn_id "${ARM_CLIENT_ID}" \
144141
--spn_secret "${ARM_CLIENT_SECRET}" \
145-
--tenant_id "${ARM_TENANT_ID}" \
146-
--auto-approve
142+
--tenant_id "${ARM_TENANT_ID}"
147143
```
148144

149145

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: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -41,36 +41,39 @@ Follow the guidance here [Configure Azure DevOps for SDAF](configure-devops.md)
4141

4242
You can run the SAP on Azure Deployment Automation Framework from a virtual machine in Azure. The following steps describe how to create the environment.
4343

44-
Clone the repository and prepare the execution environment by using the following steps on a Linux Virtual machine in Azure:
44+
> [!IMPORTANT]
45+
> Ensure that the virtual machine is using either a system assigned or user assigned identity with permissions on the subscription to create resources.
46+
4547

4648
Ensure the Virtual Machine has the following prerequisites installed:
49+
4750
- git
4851
- jq
4952
- unzip
53+
- virtualenv (if running on Ubuntu)
5054

51-
Ensure that the virtual machine is using either a system assigned or user assigned identity with permissions on the subscription to create resources.
5255

53-
54-
- Create a directory called `Azure_SAP_Automated_Deployment` for your automation framework deployment.
56+
You can install the prerequisites on an Ubuntu Virtual Machine by using the following command:
5557

5658
```bash
57-
mkdir -p ~/Azure_SAP_Automated_Deployment; cd $_
59+
sudo apt-get install -y git jq unzip virtualenv
5860

59-
git clone https://github.com/Azure/sap-automation.git sap-automation
61+
```
6062

61-
git clone https://github.com/Azure/sap-automation-samples.git samples
63+
You can then install the deployer components using the following commands:
6264

63-
git clone https://github.com/Azure/sap-automation-bootstrap.git config
65+
```bash
6466

65-
cd sap-automation/deploy/scripts
66-
67+
wget https://raw.githubusercontent.com/Azure/sap-automation/main/deploy/scripts/configure_deployer.sh -O configure_deployer.sh
68+
chmod +x ./configure_deployer.sh
6769
./configure_deployer.sh
68-
```
6970

71+
# Source the new variables
7072

73+
. /etc/profile.d/deploy_server.sh
74+
75+
```
7176

72-
> [!TIP]
73-
> The deployer already clones the required repositories.
7477

7578
## Samples
7679

@@ -80,7 +83,7 @@ The ~/Azure_SAP_Automated_Deployment/samples folder contains a set of sample con
8083
```bash
8184
cd ~/Azure_SAP_Automated_Deployment
8285

83-
cp -Rp samples/Terraform/WORKSPACES config
86+
cp -Rp samples/Terraform/WORKSPACES ~/Azure_SAP_Automated_Deployment
8487
```
8588

8689

0 commit comments

Comments
 (0)