Installation of SAP HANA on Azure virtual machines
This document helps in pointing you to the right resources for deploying HANA on Azure virtual machines, including documents that you need to check before installing SAP HANA on Azure VMs. The aim is to ensure you are able to perform the right steps to achieve a supported configuration of SAP HANA on Azure.
This guide describes deployments of SAP HANA into Azure VMs. For information on how to deploy SAP HANA on HANA large instances, see How to install and configure SAP HANA (Large Instances) on Azure.
This guide also assumes that you're familiar with:
- SAP HANA and SAP NetWeaver and how to install them on-premises.
- How to install and operate SAP HANA and SAP application instances on Azure.
- The concepts and procedures documented in:
- Planning for SAP deployment on Azure, which includes Azure Virtual Network planning and Azure Storage usage. See SAP NetWeaver on Azure Virtual Machines - Planning and implementation guide
- Deployment principles and ways to deploy VMs in Azure. See Azure Virtual Machines deployment for SAP
- High availability concepts for SAP HANA as documented in SAP HANA high availability for Azure virtual machines
Step-by-step before deploying
In this section, the different steps are listed that you need to perform before starting with the installation of SAP HANA in an Azure virtual machine. The order is enumerated and as such should be followed in the order listed:
- Although technically possible, some deployment scenarios will not be supported on Azure. Therefore, you should check the document SAP workload on Azure virtual machine supported scenarios for the scenario you have in mind with your SAP HANA deployment. If the scenario is not listed, you need to assume that it has not been tested and, as a result, is not supported.
- Assuming that you have a rough idea of the memory requirement for your SAP HANA deployment, you need to find a suitable Azure VM. Not all the VMs that are certified for SAP NetWeaver, as documented in SAP support note #1928533, are SAP HANA certified. The source of truth for SAP HANA certified Azure VMs is the website SAP HANA hardware directory. The units starting with S are HANA Large Instances units and not Azure VMs.
- Different Azure VM types have different minimum operating system releases for SUSE Linux or Red Hat Linux. On the website SAP HANA hardware directory, you need to click on an entry in the list of SAP HANA certified units to get detailed data of this unit. Besides the supported HANA workload, the OS releases that are supported with those units for SAP HANA are listed.
- As of operating system releases, you need to consider certain minimum kernel releases. These minimum releases are documented in these SAP support notes:
- Based on the OS release that is supported for the virtual machine type of choice, you need to check whether your desired SAP HANA release is supported with that operating system release. Read SAP support note #2235581 for a support matrix of SAP HANA releases with the different Operating System releases.
- When you have found a valid combination of Azure VM type, operating system release and SAP HANA release, you will need to check the SAP Product Availability Matrix. In the SAP Availability Matrix, you can verify whether the SAP product you want to run against your SAP HANA database is supported.
Step-by-step VM deployment and guest OS considerations
In this phase, you need to go through the steps deploying the VM(s) to install HANA and eventually optimize the chosen operating system after the installation.
Choose the base image from the Azure gallery. If you want to build your own operating system image for SAP HANA, you need to know all the different packages that are necessary for a successful SAP HANA installation. Otherwise it is recommended using the SUSE and Red Hat images for SAP or SAP HANA out of the gallery. These images include the packages necessary for a successful HANA installation. Based on your support contract with the operating system provider, you need to choose an image where you bring your own license, or choose an OS image that includes support.
If you choose a guest OS image that requires you to bring your own license, you will need to register this OS image with your subscription to enable you to download and apply the latest patches. This step is going to require public internet access, unless you set up your private instance of, for example, an SMT server in Azure.
Decide the network configuration of the VM. You can get more information in the document SAP HANA infrastructure configurations and operations on Azure. Keep in mind that there are no network throughput quotas you can assign to virtual network cards in Azure. As a result, the only purpose of directing traffic through different vNICs is based on security considerations. We trust you to find a supportable compromise between complexity of traffic routing through multiple vNICs and the requirements enforced by security aspects.
Apply the latest patches to the operating system once the VM is deployed and registered. Registered either with your own subscription. Or in case you chose an image that includes operating system support the VM should have access to the patches already.
Apply the tunings necessary for SAP HANA. These tunings are listed in the following SAP support notes:
- SAP support note #2694118 - Red Hat Enterprise Linux HA Add-On on Azure
- SAP support note #1984787 - SUSE LINUX Enterprise Server 12: Installation notes
- SAP support note #2578899 - SUSE Linux Enterprise Server 15: Installation Note
- SAP support note #2002167 - Red Hat Enterprise Linux 7.x: Installation and Upgrade
- SAP support note #2292690 - SAP HANA DB: Recommended OS settings for RHEL 7
- SAP support note #2772999 - Red Hat Enterprise Linux 8.x: Installation and Configuration
- SAP support note #2777782 - SAP HANA DB: Recommended OS Settings for RHEL 8
- SAP support note #2455582 - Linux: Running SAP applications compiled with GCC 6.x
- SAP support note #2382421 - Optimizing the Network Configuration on HANA- and OS-Level
Select the Azure storage type and storage layout for the SAP HANA installation. You are going to use either attached Azure disks or native Azure NFS shares. The Azure storage types that are supported and the combinations of different Azure storage types that can be used are documented in SAP HANA Azure virtual machine storage configurations. Take the configurations documented as starting point. For non-production systems, you might be able to configure lower throughput or IOPS. For production systems, you might need to increase the throughput and IOPS.
Make sure you have configured Azure Write Accelerator for your volumes that contain the DBMS transaction logs or redo logs when using M-Series or Mv2-Series VMs. Be aware of the limitations for Write Accelerator as documented.
Check whether Azure Accelerated Networking is enabled on the VMs deployed.
Not all the commands in the different sap-tune profiles or as described in the notes might run successfully on Azure. Commands that would manipulate the power mode of VMs usually return with an error since the power mode of the underlying Azure host hardware can not be manipulated.
Step-by-step preparations specific to Azure virtual machines
One of the Azure-specific preparations is the installation of an Azure VM extension that delivers monitoring data for the SAP Host Agent. The details about the installation of this monitoring extension are documented in:
- SAP Note 2191498 discusses SAP enhanced monitoring with Linux VMs on Azure
- SAP Note 1102124 discusses information about SAPOSCOL on Linux
- SAP Note 2178632 discusses key monitoring metrics for SAP on Microsoft Azure
- Azure Virtual Machines deployment for SAP NetWeaver
SAP HANA installation
With the Azure virtual machines deployed and the operating systems registered and configured, you can install SAP HANA according to the SAP install instructions. A good starting point is this SAP website: HANA resources
For SAP HANA scale-out configurations using direct attached disks of Azure Premium Storage or Ultra disk, read the specifics in the document SAP HANA infrastructure configurations and operations on Azure
Additional resources for SAP HANA backup
For information on how to back up SAP HANA databases on Azure VMs, see:
Read the documentation:
Submit and view feedback for