Installing ThingsBoard PE from Azure Marketplace

This guide describes how to install ThingsBoard Professional Edition from Azure Marketplace. Using this guide you will install BYOL version of the product. Basically, you get the license directly from ThingsBoard, Inc, but purchase corresponding server instances and infrastructure from Azure.


Step 1. Subscribe to ThingsBoard PE BYOL

Open ThingsBoard Professional Edition BYOL product page from Azure Marketplace.

  • Click the GET IT NOW button


  • Review and accept terms of use and privacy policy. Click the “Continue” button.


  • You will be redirected to Azure Portal. Click the “Create” button to deploy your instance.


Step 2. General configuration

  • You will be redirected to “Create a virtual machine” dialog with tons of setting. No worries, we are going to leave most of them with default values.
Step 2.1 Basics
  • Create new “Resource group”, e.g. “thingsboard”;
  • Add recognizable virtual machine name, e.g. “ThingsBoardPE-PROD”;
  • Choose Region from available regions list;
  • Configure “Administrator Account” to be “SSH public key”. Username must be ubuntu; See official Azure Docs on how to generate the keys.
  • Click the “Next: Disks” button.


Step 2.2 Disks
  • We suggest to leave this as-is, but you can optionally add new disks here;
  • Click the “Next: Networking” button.


Step 2.3 Networking
  • Leave all settings as-is;
  • Make sure This VM uses preconfigured network security group;
  • Click the “Next: Management” button.


Step 2.3 Management, Advanced, Tags
  • Leave all settings as-is on all three tabs;
  • Click the “Next” button until you reach “Review + create” tab.
Step 2.4 Review + create
  • Review the final product details;
  • Make sure your name, email address and phone number is correct;
  • Click the “Create” button to start the deployment.


  • Once deployment is started it may take up to 30 minutes (but usually less then 5 minutes) to complete;


  • Once your deployment is complete, click the “Go to resource” button.


Step 3. Review created resource

You will be navigated to the resource overview page. We should use this page to copy the external IP address of your instance. Please copy this IP address to a safe place. We will use it in our next steps.

As an example, on the image below, the IP address is highlighted and set to “”


Step 4. Obtain your license secret

In order to activate your ThingsBoard instance you will need to get the license secret. ThingsBoard Licenses are managed by ThingsBoard License Portal.

Please register on ThingsBoard License Portal to get your license. See How-to get pay-as-you-go subscription or How-to get perpetual license for more details.

Please save your license secret to a safe place. We will use them later in this guide.

Step 5. Configure your license secret

Once you get the license secret, you should put it to the thingsboard configuration file.

Step 5.1. Connect to your Thingsboard Instance over SSH

Please use the official Azure guide on how to connect to Azure VM using SSH keys.

Note: You will need to use instance Public IP (see Step 3) and the key file (see Step 2.1)

Step 5.2. Put License Secret to thingsboard configuration file

Open the file for editing using the following command:

sudo nano /etc/thingsboard/conf/thingsboard.conf

Locate the following configuration block:

# License secret obtained from ThingsBoard License Portal (

and put your license secret. Please don’t forget to uncomment the export statement. See example below:

# License secret obtained from ThingsBoard License Portal (

Step 6. Launch ThingsBoard service

Execute the following command to start ThingsBoard:

sudo service thingsboard start

Please allow up to 120 seconds for the Web UI to start. This is applicable only for slow machines with 1-2 CPUs or 1-2 GB RAM.

Step 7. Connect to Thingsboard UI

Now you can open this link in your browser:

  • http://PUBLIC_IP_ADDRESS/login

In this example:


Use this login to connect as system Administrator


Default password for System Administrator is:

  • sysadmin

Now you can proceed to the next steps.

Post-installation steps

Configure HAProxy to enable HTTPS

  • Step 1. Assign valid domain name system (DNS) record to your instance external IP address.
  • Step 2. Connect to your instance using SSH or PuTTY using instructions from the previous questions above.
  • Step 3. Execute the following commands:
     sudo certbot-certonly --domain --email
     sudo haproxy-refresh

    where is your DNS name from the second step and is your email to get notifications from certbot.

Next steps

  • 入门指南 - 这些指南提供了ThingsBoard主要功能的快速概述。

  • 设备连接 - 了解如何根据您的连接方式或解决方案连接设备。

  • 数据看板 - 这些指南包含有关如何配置复杂的ThingsBoard仪表板的说明。

  • 数据处理 - 了解如何使用ThingsBoard规则引擎。

  • 数据分析 - 了解如何使用规则引擎执行基本的分析任务。

  • 硬件样品 - 了解如何将各种硬件平台连接到ThingsBoard。

  • 高级功能 - 了解高级ThingsBoard功能。

  • 开发指南 - 了解ThingsBoard中的贡献和开发。