Star

Installation

Documentation for installation and configuration of ThingsBoard IoT Platform.

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.

Prerequisites

Step 1. Subscribe to ThingsBoard PE BYOL

Open ThingsBoard Professional Edition BYOL product page from Azure Marketplace.

image

image

image

Step 2. General configuration

Step 2.1 Basics

image

Step 2.2 Disks

image

Step 2.3 Networking

image

Step 2.3 Management, Advanced, Tags
Step 2.4 Review + create

image

image

image

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 “40.121.179.240”

image

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 (https://license.thingsboard.io)
# UNCOMMENT NEXT LINE AND PUT YOUR LICENSE SECRET:
# export TB_LICENSE_SECRET=

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

# License secret obtained from ThingsBoard License Portal (https://license.thingsboard.io)
# UNCOMMENT NEXT LINE AND PUT YOUR LICENSE SECRET:
export TB_LICENSE_SECRET=YOUR_LICENSE_SECRET_HERE

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:

In this example:

Use this login to connect as system Administrator

Default password for System Administrator is:

Now you can proceed to the next steps.

Post-installation steps

Configure HAProxy to enable HTTPS

Next steps