Skip to content

Commit 62edf8e

Browse files
Merge pull request #261583 from KimForss/main
Small updates
2 parents 461046c + 39f670b commit 62edf8e

File tree

2 files changed

+34
-8
lines changed

2 files changed

+34
-8
lines changed

articles/sap/automation/tutorial.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -674,7 +674,7 @@ export tfstate_storage_account="<storageaccountName>"
674674
export deployer_env_code="MGMT"
675675
export sap_env_code="DEV"
676676
export region_code="<region_code>"
677-
export key_vault="<vaultID>"
677+
export key_vault="<vaultName>"
678678
679679
export deployer_vnet_code="DEP01"
680680
export vnet_code="SAP02"
@@ -808,24 +808,24 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
808808
809809
1. Connect to your deployer VM for the following steps. A copy of the repo is now there.
810810
811-
1. Add a secret with the username for your SAP user account. Replace `<vaultID>` with the name of your deployer key vault. Also replace `<sap-username>` with your SAP username.
811+
1. Add a secret with the username for your SAP user account. Replace `<vaultName>` with the name of your deployer key vault. Also replace `<sap-username>` with your SAP username.
812812
813813
```bash
814-
export key_vault=<vaultID>
814+
export key_vault=<vaultName>
815815
sap_username=<sap-username>
816816
817817
az keyvault secret set --name "S-Username" --vault-name $key_vault --value "${sap_username}";
818818
```
819819
820-
1. Add a secret with the password for your SAP user account. Replace `<vaultID>` with your deployer key vault name and replace `<sap-password>` with your SAP password.
820+
1. Add a secret with the password for your SAP user account. Replace `<vaultName>` with your deployer key vault name and replace `<sap-password>` with your SAP password.
821821
822822
> [!NOTE]
823823
> The use of single quotation marks when you set `sap_user_password` is important. The use of special characters in the password can otherwise cause unpredictable results.
824824
825825
```azurecli
826826
sap_user_password='<sap-password>'
827827
828-
az keyvault secret set --name "S-Password" --vault-name "${key_vault}" --value "${sap_user_password}";
828+
az keyvault secret set --name "S-Password" --vault-name "${key_vault}" --value="${sap_user_password}";
829829
```
830830
831831
1. Configure your SAP parameters file for the download process. Then, download the SAP software by using Ansible playbooks. Run the following commands:
@@ -845,7 +845,7 @@ For this example configuration, the resource group is `MGMT-NOEU-DEP00-INFRASTRU
845845
```yaml
846846
847847
bom_base_name: S4HANA_2021_FP01_v0001ms
848-
deployer_kv_name: <Deployer KeyVault Name>
848+
deployer_kv_name: <vaultName>
849849
BOM_directory: ${HOME}/Azure_SAP_Automated_Deployment/samples/SAP
850850
851851
```

articles/sap/automation/upgrading.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,33 @@ You can also configure the Azure DevOps agent to perform the sign-in to Azure by
190190

191191
| Name | Value |
192192
| ---------------- | -------------------------------------------- |
193-
| Logon_Using_SPN | True |
193+
| Logon_Using_SPN | true |
194+
195+
### Upgrading Terraform on the agents
196+
197+
You can upgrade Terraform on the agents by running the following script:
198+
199+
```bash
200+
201+
tfversion="1.6.5"
202+
203+
# Terraform installation directories
204+
tf_base=/opt/terraform
205+
tf_dir="${tf_base}/terraform_${tfversion}"
206+
tf_bin="${tf_base}/bin"
207+
tf_zip="terraform_${tfversion}_linux_amd64.zip"
208+
209+
#
210+
# Install terraform for all users
211+
#
212+
sudo mkdir -p \
213+
"${tf_dir}" \
214+
"${tf_bin}"
215+
wget -nv -O /tmp/"${tf_zip}" "https://releases.hashicorp.com/terraform/${tfversion}/${tf_zip}"
216+
sudo unzip -o /tmp/"${tf_zip}" -d "${tf_dir}"
217+
sudo ln -vfs "../$(basename "${tf_dir}")/terraform" "${tf_bin}/terraform"
218+
219+
```
194220

195221
## Upgrade the workload zone
196222

@@ -222,7 +248,7 @@ You can also configure the Azure DevOps agent to perform the sign-in to Azure by
222248

223249
| Name | Value |
224250
| ---------------- | -------------------------------------------- |
225-
| Logon_Using_SPN | True |
251+
| Logon_Using_SPN | true |
226252

227253
## Next step
228254

0 commit comments

Comments
 (0)