Provision an Ubuntu virtual machine running SQL Server in Azure | Ubuntu (original) (raw)

1. Overview

Canonical has worked with Microsoft to bring a high-performing and fully supported solution for SQL Server to market, based around the Ubuntu Pro 20.04 LTS operating system. The SQL Server on Ubuntu Pro Azure solution offers an extremely cost effective alternative for enterprise data management. In this tutorial you will learn how easy it is to get up and running.

What you’ll learn

What you’ll need


2. Launch an Ubuntu VM with SQL Server installed

Find the correct image to launch on the Azure portal

Launch the VM


3. Config and connect

Connect to the VM

Change the SA password

The new virtual machine installs SQL Server with a random SA password. Reset this password before you connect to SQL Server with the SA login.

Add the tools to your path (optional)

Several SQL Server packages are installed by default, including the SQL Server command-line Tools package. The tools package contains the sqlcmd and bcp tools. For convenience, you can add the tools path, /opt/mssql-tools/bin/, to your PATH environment variable.

Configure for remote connections

In order to remotely connect to SQL Server on the Azure VM, you must configure an inbound rule on the network security group. The rule allows traffic on the port on which SQL Server listens (default of 1433)

Open the firewall

If you want to connect remotely to VMs, you also have to open up port 1433 on the Linux firewall.

Connect

You can now connect to your server from your favorite client

Screenshot from 2022-01-04 23-14-08-2


4. That’s all folks!

Congrats, you made it!
Your database is ready to go, on top of it you can receive support on the entire solution, including security updates and joint technical support from Canonical and Microsoft. SQL Server on Ubuntu Pro delivers customers an alternative, highly cost-effective and fully supported RDBMS option, ideal for high performance, highly transactional workloads. As a fully supported offer, the solution also offers a low-friction path for existing SQL Server users to benefit from adopting Ubuntu Pro.

Was this tutorial useful?

Thank you for your feedback.