SAP system deployment for the automation framework

The creation of the SAP system is part of the SAP on Azure Deployment Automation Framework process. The SAP system creates your virtual machines (VMs), and supporting components for your SAP application.

The SAP system deploys:

Application tier

The application tier deploys a customer-defined number of VMs. These VMs are size Standard_D4s_v3 with a 30-GB operating system (OS) disk and a 512-GB data disk.

To set the application server count, define the parameter application_server_count for this tier in your parameter file. For example, application_server_count= 3.

Central services tier

The SAP central services (SCS) tier deploys a customer-defined number of VMs. These VMs are size Standard_D4s_v3 with a 30-GB OS disk and a 512-GB data disk. This tier also deploys an Azure Standard Load Balancer.

To set the SCS server count, define the parameter scs_server_count for this tier in your parameter file. For example, scs_server_count=1.

Web dispatcher tier

The web dispatcher tier deploys a customer-defined number of VMs. This tier also deploys an Azure Standard Load Balancer.

To set the web server count, define the parameter web_server_count for this tier in your parameter file. For example, web_server_count = 2.

Database tier

The database tier deploys the VMs and their disks, and also an Azure Standard Load Balancer. You can use either HANA databases or AnyDB databases as your database VMs.

You can set the size of database VMs with the parameter size for this tier. For example, "size": "S4Demo" for HANA databases or "size": "1 TB" for AnyDB databases. Refer to the Size parameter in the tables of HANA database VM options and AnyDB database VM options for possible values.

By default, the automation framework deploys the correct disk configuration for HANA database deployments. For HANA database deployments, the framework calculates default disk configuration based on VM size. However, for AnyDB database deployments, the framework calculates default disk configuration based on database size. You can set a disk size as needed by creating a custom JSON file in your deployment. For an example, see the following JSON code sample and replace values as necessary for your configuration. Then, define the parameter db_disk_sizes_filename in the parameter file for the database tier. For example, db_disk_sizes_filename = "path/to/JSON/file".

You can also add extra disks to a new system, or add extra disks to an existing system.

Core configuration

The following example parameter file shows only required parameters.

# The environment value is a mandatory field, it is used for partitioning the environments, for example (PROD and NP)
environment="DEV"

# The location value is a mandatory field, it is used to control where the resources are deployed
location="westeurope"

# The network logical name is mandatory - it is used in the naming convention and should map to the workload virtual network logical name 
network_name="SAP01"

# sid is a mandatory field that defines the SAP Application SID
sid="S15"

app_tier_vm_sizing="Production"
app_tier_use_DHCP=true

database_platform="HANA"

database_size="S4Demo"
database_sid="XDB"

database_vm_use_DHCP=true

database_vm_image={
  os_type="linux"
  source_image_id=""
  publisher="SUSE"
  offer="sles-sap-15-sp2"
  sku="gen2"
  version="latest"
}

# application_server_count defines how many application servers to deploy
application_server_count=2

application_server_image= {
  os_type=""
  source_image_id=""
  publisher="SUSE"
  offer="sles-sap-15-sp2"
  sku="gen2"
  version="latest"
}

scs_server_count=1

# scs_instance_number
scs_instance_number="00"

# ers_instance_number
ers_instance_number="02"

# webdispatcher_server_count defines how many web dispatchers to deploy
webdispatcher_server_count=0


Deploying the SAP system

The sample SAP System configuration file DEV-WEEU-SAP01-X01.tfvars is located in the ~/Azure_SAP_Automated_Deployment/samples/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X01 folder.

Running the command below will deploy the SAP System.

Tip

Perform this task from the deployer.

You can copy the sample configuration files to start testing the deployment automation framework.

cd ~/Azure_SAP_Automated_Deployment

cp -Rp sap-automation/deploy/samples/WORKSPACES WORKSPACES

cd ~/Azure_SAP_Automated_Deployment/WORKSPACES/SYSTEM/DEV-WEEU-SAP01-X01

${DEPLOYMENT_REPO_PATH}/deploy/scripts/installer.sh          \
        --parameterfile DEV-WEEU-SAP01-X01.tfvars           \
        --type sap_system

Output files

The deployment will create an Ansible hosts file (SID_hosts.yaml) and an Ansible parameter file (sap-parameters.yaml) that are required input for the Ansible playbooks.

Next steps