Terraform Templates to create SAP Landscape in Microsoft Azure
- Download terraform and unzip terraform.exe to folder and add the path in environment variable (https://www.terraform.io/downloads.html)
- Download and install Github (https://desktop.github.com/)
- Download and install Visual Studio code (https://code.visualstudio.com/)
- Download and install Azure CLI (https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest)
- Install Extensions for Visual Studio code [Azure CLI Tools, Azure Accounts, Azure Terraform & Terraform]
- Create workspace in VS Code and download the git into the workspace folder
The templates were created with reference to Azure reference architecture published, https://docs.microsoft.com/en-us/azure/architecture/reference-architectures/sap/sap-s4hana Hub and Sproke Network architecture is used
- Operating System = RHEL 7.4
- SAP HANA System Replication with Load balancer as HA solution
- No HA Solution for SCS & ERS Automatic Failovers
- Vnet Peering between HUB & SPOKE
- NSG per Subnet
- Load balancer will be added.
- Parameterize OS flavors
- Parameterize No. Disk and SKU's
- HA Solution implementation
login to azure before running terraform (az login ) to create resoure Group
- change directory to resourcegroup
- initialize terrafrom (terrafrom init)
- run plan (terrafrom plan)
- deploy (terraform apply) - Confirm yes when asked