Skip to content
The Things Stack documentation home
Getting Started Concepts Cloud Enterprise Integrations API Hardware
Getting Started Concepts
Cloud Enterprise
Integrations API Hardware
Get The Things Stack

    Recent searches

      Popular pages

      • Getting Started
      • Adding Gateways
      • Adding Devices
      • Payload Formatters
      • Webhooks
      • Authentication

      No results for “”.

      • Check the spelling, or try fewer or more general words.
      • Ask the community on The Things Network Forum
      • Contact support
      ↑↓ to navigate ↵ to open Esc to close

      Integrations

      • Overview
      • Adding Applications
      • Data Formats
      • Payload Formatters
      • Webhooks
      • Storage Integration
      • Integrate with popular IoT platforms
        • akenza
        • AllThingsTalk Maker
        • AnyViz
        • AWS IoT
        • Azure IoT Central
          • Architecture
          • Deployment Guide
          • Telemetry and Device Twin
          • Device Templates
        • Azure IoT Hub
        • Blockbax
        • Blynk
        • Cayenne
        • Cloud Studio
        • Daizy
        • Datacake
        • Delmation Products
        • deZem
        • evrlast
        • Homey
        • InfluxDB Cloud 2.0
        • IoT in a Box
        • IoT Wonderland
        • Kaa
        • Losant IoT Platform
        • MClimate
        • my IoT open Tech
        • Qubitro
        • TagoIO
        • Telemetry2U
        • Tellsens
        • thethings.iO
        • Thinger.io
        • ThingsBoard
        • ThingSpeak
        • TTN Mapper
        • Ubidots
        • UIB
        • UnaConnect
        • Widgelix
        • Withthegrid
        • Zoho IoT
      • Other integrations
      • Application Packages
      • Examples

      Deployment Guide

      Updated 15 November 2022 Edit on GitHub
      Copy page
      • View as MarkdownThis page as plain text
      • Open in ChatGPTAsk questions about this page
      • Open in ClaudeAsk questions about this page

      Learn how to deploy the Azure IoT Central integration for The Things Stack.

      Prerequisites

      1. Access to an Azure account. Create a new account
      2. An application in The Things Stack. See instructions

      Create API Key

      Go to your application in The Things Stack Console, navigate to Integrations → Azure IoT on the left hand menu and click on Expand next to Azure IoT Central. Now click on Generate API Key.

      Create API key

      Copy the generated API key and store it in a safe place, because you will need it in the next section.

      Leave the integration page open, as you will need to copy in your Azure Device Provisioning Service scope ID and Azure Device Provisioning Service access key before saving the integration.

      Create Device Connection Group

      Go to your Azure IoT Central Application, navigate to Permissions → Device connection groups on the left hand menu and click on + New.

      Create Device Connection Group

      Enter a Name for your Device Connection group, such as the-things-stack, then select the Attestation type Shared access signature (SAS), then click on Save

      Save Device Connection Group

      You will now be presented with the Device Connection Group overview.

      Device Connection Group Overview

      The ID scope can now be copied into your integration settings as Azure Device Provisioning Service scope ID, and the Primary key can be copied as the Azure Device Provisioning Service access key. Click on Enable/Update Azure IoT Central integration.

      Save Integration Settings

      Data Export

      Go back to your Azure IoT Central Application, navigate to Data export on the left hand menu.

      Activate the Destinations tab and click on + New destination.

      Create Data Export Destination

      Enter a Destination name, such as the-things-stack-destination.

      Select the Destination type Webhook, then enter the Callback URL mentioned in the The Things Stack Azure IoT Central integration page under Data Export address.

      Select the Authorization Authorization token and input the API key generated in the previous step. Click on Save.

      Save Data Export Destination

      Navigate to Data export → Exports on the left hand menu and click on + New export.

      Create Data Export

      Enter a Export name, such the-things-stack-export.

      Select the Type of data to export Property changes.

      Click on +Destinations.

      Save Data Export 1

      Under Select your destination chose the export destination you have create previously.

      Click on +Transform and input the following query under 2. Build transformation Query.

      if .messageType == "devicePropertyDesiredChange" then
          {
              deviceId: .device.id,
              messageType: .messageType,
              properties: .device.properties.reported |
                  map(
                      select(
                          (.name == "decodedPayload") or
                          (.name == "rawDownlink")
                      )
                  ),
          }
      else
          empty
      end
      

      Click on Add.

      Add Transformation Query

      Click on Save in order to save the Data Export.

      Congratulations! 🎉 You have now set up the Azure IoT Central integration for The Things Stack!

      ← Architecture Telemetry and Device Twin →

      On this page

      • Prerequisites
      • Create API Key
      • Create Device Connection Group
      • Data Export

      Sections

      Getting Started

      Concepts

      Cloud

      Enterprise

      Integrations

      API

      Hardware

      Sitemap

      View our Sitemap

      Contributing

      GitHub

      About Us

      The Things Industries

      Privacy Policy

      Cookie settings

      Cookie Settings

      We use cookies to enhance your experience, analyze site traffic and deliver personalized content. Read our Privacy Policy.

      Cookie categories