Install ABAP Platform 1909 – Dev Edition on an Azure Ubuntu instance using docker – Part 1
In this tutorial, I will shed more light on why an ABAPer or developer who requires just a test system for experimentation should choose the ABAP Platform Dev edition over another feature rich but expensive alternative. We will then get our hands dirty and set up an ABAP instance on Azure with the necessary minisap certificates.
This tutorial is split into two parts with Part 1 focusing on Azure (creating the ubuntu instance and logging in) and Part 2 focusing on the installation and access to the ABAP platform.
If you are already conversant with MS Azure and can create your instance without following a tutorial, you can simply read the introduction section of Part 1 and then go ahead to create an ubuntu instance in Azure with 4 virtual CPUs and 28GiB+ of RAM. You can continue from Part 2 after that to complete the next steps of this tutorial series.
- A microsoft azure subscription.
- A dockerhub account (login credentials needed).
- A basic understanding of bash or your favourite ubuntu shell.
- A SAPGUI installation.
- Create and login into an ubuntu instance on Azure.
- Prepare the data drive on your ubuntu instance.
- Install docker and move docker data directory to the prepared data drive.
- Install ABAP Platform 1909 Dev Edition with docker.
- Open the necessary ports on Azure.
- Access your ABAP instance in SAP GUI and generate a new license.
As coders, we run into several situations where we would like to test snippets of code on a local system before even implementing the snippet in a dev system. In certain instances, we as developers would want to use code QA tools like the ABAP Test Cockpit and either do not have the authorizations to access the tool or are not comfortable with setting it up in a customer system.
My goto setup to get a personal system was the SAP Cloud Appliance Library (SAP CAL), It serves the purpose it was designed for perfectly. It is very well built and very intuitive to use while requiring very little interaction with the underlying technologies to get up and running in a test ABAP environment. The only apparent downside with regards to SAP CAL is the fact that it is a bit of an overkill for what a developer might want to use the system for, which warrants its relatively heavy price tag. The cost break down of running an an SAP NetWeaver AS ABAP 7.51 SP02 on HANA Dev system as at the time of writing this post is:
2.90 USD per hour when Active which evaluates to 2088 USD per month when Active, if my calculations are right.
As a test system, most developers will not leave their system running 24/7 over the course of the month but I’m sure we all have experiences to share regarding forgetting to shut down our instance for a week or more and having to shell out some “hard” cash to cover the fees.
With the latest release of the SAP ABAP Platform, we as developers who require just a test system to experiment with our code do not have to generate a CAL instance but can get up and running with a minimalist setup for as little as 60 USD per month when Active, which is a meagre 2.87% of what a developer would have to pay for an equivalent SAP CAL instance.
With the cost-benefit analysis out of the way, let us now focus our attention on how to get up and running in an ABAP Platform 1909 Dev edition on an Azure Ubuntu Instance.
Step 1: Create and login into an ubuntu instance on Azure.
Logon to your microsoft Azure portal and under Azure Services choose Virtual Machines
Create an ubuntu instance with the size A4m_v2 or an equivalent 4vcpu and above 28GB RAM instance. Please visit the Pricing Calculator | Microsoft Azure to check out the various instances and the costs based on the region you choose. Also to understand the purpose of each of the types of Azure Virtual Machines, you can visit this link. In the spirit of cost saving, it is very important to choose the Azure Spot instance and select the Eviction Type and Eviction Policy shown in the image below. This will almost halve your monthly fees for the VM.
Fill the rest of the entries as shown below. It is important to take a note of your username and password as this will be used to login into the instance later on. Finally, click the Next : Disks > button at the bottom of the page to create a disk for your instance.
On the Disks tab, choose the Standard HDD OS Disk type as it is marginally cheaper and performant enough for what we need it for. With that said, you do not mind splurging a bit more for an SSD, I would definitely recommend that as there is a noticeable increase in speed when using the SSD instead of HDD. Next, click on the Create and attach a new disk button as shown in the image below.
In the detail page that opens up, click the change size button.
Ensure the Disk SKU is still Standard HDD. After choosing the 256 GiB click the OK button at the bottom of the detail page.
Confirm that everything looks good and click the OK button as shown below.
We now have the necessary parts of our Virtual Machine setup so the next step is to click the Review + Create button, after making sure the Disk size and Disk type match what is shown in the image below.
On the review page, ensure that everything looks okay and click the Create button.
Once the virtual machine and the disks are successfully deployed, you will be presented with a page that looks like the image shown below. Please click the Go to resource button to be sent to the detail page of the provisioned virtual machine.
On the detail page of the virtual machine, what we need is the username you noted down while creating the virtual machine and the public IP address which is highlighted in the image below. We need these details to login into our ubuntu instance via SSH.
Now open your terminal in mac or cmd/powershell in windows. No matter which shell you use as your terminal, just enter:
An example is
As show in the images below.
For a mac terminal:
Once you’re logged in you should see.
Follow the same steps for both powershell and command prompt in windows as shown below. If you are having issues with ssh in command prompt, it is possible because you don’t have it enabled in your windows installation. Please follow this microsoft tutorial to enable SSH in your windows installation.
With our successful login into our ubuntu instance in MS Azure under our belts, this brings us to the end of Part 1 of this tutorial series. In Part 2 we will prepare our data drive, install docker and install ABAP 1909 Dev edition with the help of docker.
If you run into any issues while following this tutorial, please leave a comment under the tutorial or ask in the SAP community pages and I’m sure myself or one of the other readers will be able to provide some assistance.
See you in Part 2!!!