This guide demonstrates how to spin up a Microsoft Azure Virtual Machine that is running QuestDB on Ubuntu. This will help get you comfortable with Azure VM basics.
- A Microsoft Azure account with billing enabled. Adding a credit card is required to create an account, but this demo will only use resources in the free tier.
In the Azure console, navigate to the Virtual Machines page. Once you are on this page, click the Create dropdown in the top left-hand corner of the screen and select the Azure virtual machine option.
From here, fill out the required options. If you don't already have a Resource group, you can create one on this page. We made a "default" group for this example, but you are free to choose any name you like. Enter the name of your new virtual machine, as well as its desired Region and Availability Zone. Your dialog should look something like this:
- Scroll down and select your desired instance type. In this case, we used a
Standard_B1sto take advantage of Azure's free tier.
- If you don't already have one, create a new SSH key pair to securely connect to the instance once it has been created.
- We will use Azure defaults for the rest of the VM's settings. Click Review + create to confirm your settings, then Create to download your new key pair and launch the instance.
Once you see this screen, click the Go to resource button and move on to the next section
We now need to set up the appropriate firewall rules which will allow you to connect to your new QuestDB instance over the several protocols that we support.
- In the Settings sidebar, click the Networking button. This will lead you to a page with all firewall rules for your instance. To open up the required ports, click the Add inbound port rule on the right-hand side.
- Change the Destination port ranges to the
8812,9000,9009, set the Protocol to
TCP, change the name to
questdb, and click the Add button. This will add the appropriate ingress rules to your instance's firewall. It may take a few seconds, and possibly a page refresh, but you should see your new firewall rule in the list.
Now that you've opened up the required ports, it's time to install and run
QuestDB. To do this, you first need to connect to your instance over SSH. Since
we named our SSH key
questdb_key, this is the filename that the commands below
use. You should substitute this with your own key name that you downloaded in
the previous step. You also need to use your VM's external IP address instead of
the placeholder that we have provided.
We first need to adjust the permissions on the downloaded file, and then use it to ssh into your instance.
Once we've connected to the instance, we will be following the
binary installation method. Here, we use
to download the latest QuestDB binary, extract it, and run the start script.
Once you've run these commands, you should be able to navigate to your instance
at its IP on port 9000: