akenza.io
WebsiteAPI DocumentationWhat's newLogin
  • Overview
  • Getting Started
    • Connect a Device
  • Changelog
  • General
    • Applications
    • Organization context
    • Workspace Context
    • Users
      • User Roles
  • Device Management
    • Managing an organization
      • API keys
      • Users (Organization)
        • Add & removing users from your organization
    • Managing a workspace
      • General Settings
        • Device Lifecycle Reports
        • Workspace properties
        • Occupancy settings
        • Device Setup Assistant
      • Custom fields
      • Tags
      • Users (Workspace)
    • Devices
      • Device
      • Device Simulator
      • Bulk actions
      • Bulk import CSV templates
    • Rules
      • Input
      • Logic blocks
        • Comparison
        • Custom Logic
          • Logic Block Scripting
      • Timed Rules
      • Rule Actions
        • Downlink
    • Data Flows
      • Device Connectors
        • Device Security
          • Using Device Credentials
            • Creating Public/Private Key Pairs
            • Using JSON Web Tokens (JWTs)
              • Python
              • Java
        • HTTP
        • MQTT
        • CoAP
        • LoRaWAN
          • Connectivity Management
          • Swisscom LoRaWAN
          • The Things Network
          • Loriot
          • Actility’s ThingPark Wireless
          • EWZ
          • Cibicom
          • Helium
          • ChirpStack
        • NB-IoT
        • mioty
        • Disruptive Technologies
        • VergeSense
        • Spaceti
        • Haltian
      • Device Types
        • Custom Device Types
          • Uplink
          • Downlink
          • Scripting
        • Library
      • Output Connectors
        • Databases
          • akenza DB
          • InfluxDB
          • SQL Databases
        • Streaming
          • Webhook
          • Azure IoT Hub
          • AWS Kinesis
          • Google Cloud Pub/Sub
          • Apache Kafka
        • Notifications
          • E-Mail
          • SMS
          • Microsoft Teams
          • Slack
    • Custom Components
    • Integrations
    • Reference
      • REST API
        • Filtering
        • Querying Device Data
      • WebSocket API
      • Scripting
        • Stateful Operations
        • Utility Functions
      • Payload Templating
  • Reference
  • Dashboard Builder
    • Managing Dashboards
      • Embedding dashboards
    • Components
      • Map
      • Floorplan
  • Device Setup Assistant
    • Device Setup Assistant - Overview
  • Tutorials
    • BI Tools
      • Grafana Data Source Plugin
      • How to build a dashboard with Retool
      • How to analyze data with AWS QuickSight
    • Devices
      • How to integrate the XDK device from Legic via MQTT on akenza
      • How to connect the Disruptive Technologies-cloud on akenza
      • How to send Downlinks to the Kuando Busylight device
      • How to integrate an Arduino device via MQTT on akenza
      • Integrate a MClimate Vicki LoRaWAN Radiator Thermostat on akenza
      • How to integrate an ERS Elsys device with Loriot on akenza
      • How to integrate the IAM Decentlab device with TTN on akenza
      • How to integrate the Seeed SenseCAP T1000 tracker on akenza
      • How to integrate a Swisscom Multisense device on akenza
    • Notifications
      • How to send SMS notifications
      • How to send notifications to Slack
      • How to send notifications to Microsoft Teams
    • Enterprise solutions
      • How to send data to Azure IoT Hub
      • How to send data to the Google Cloud Pub/Sub
      • How to send data to InfluxDB
      • How to send data to AWS Kinesis
      • How to send data to Azure Event Hubs with Apache Kafka
    • IoT Starter Kits
      • How to integrate the IAQ Kit with Actility on akenza
      • How to integrate the CoWork Kit with Actility on akenza
      • How to integrate the Smart Building Kit with Actility on akenza
      • How to integrate the Pepperl+Fuchs Kit with Actility on akenza
  • Support Center
    • FAQ
    • Status Page
    • Service Desk
    • Request a feature
  • Deprecated
    • SIM-Cards
    • Everynet
    • Sigfox
    • How to connect the Yanzi Lifecycle cloud on akenza
Powered by GitBook
On this page
  • 1. Setup an Azure IoT Hub
  • 2. Obtain an Azure IoT Hub connection string
  • 3. Setup a Data Flow in akenza
  • 4. Monitor Events
  • 5. Use of further Azure services
  • 6. Useful Links

Was this helpful?

  1. Tutorials
  2. Enterprise solutions

How to send data to Azure IoT Hub

In this tutorial you will learn how to send data to Azure IoT Hub

PreviousEnterprise solutionsNextHow to send data to the Google Cloud Pub/Sub

Last updated 4 months ago

Was this helpful?

Benefits of the Azure IoT Hub output connector:

  • Directly stream device data from akenza to Azure and subsequently process it in

  • Easily process low-power device data e.g. LoRaWAN device data in a Microsoft service

In this tutorial, you will learn, how to send data to Azure IoT Hub. The following steps are explained in more detail:

1. Setup an Azure IoT Hub

1.1 Create an IoT Hub resource

  • Create a new Azure IoT Hub resource, by selecting + Create a resource, and then entering IoT Hub

  • Assign a resource group by choosing an existing group or creating a new one and fill the IoT hub name and region fields; choose Public access in the networking tab to select a tier that fits your use case in the Management tab (use the free tier for testing)

  • Select review and create to provision the IoT hub resource

1.2 Add a shared access policy

  • Navigate to your IoT Hub resource and select Shared access policies in the Settings section

  • Select + Add shared access policy, give a name and check all boxes for the permissions (registry read, registry write, service connect, and device connect permissions)

2. Obtain an Azure IoT Hub connection string

Once the policy is created, obtain the Primary Connection String, by clicking the policy and copying the connection string. The connection string will be used to create the connector in akenza.

3. Setup a Data Flow in akenza

Create a new Data Flow with Azure IoT Hub as output connector. Define a Connector Name and insert the Connection String obtained from the shared access policy.

  • The whole data sample will be forwarded to Azure IoT Hub

  • If a device sends data and does not yet exist in the registry of IoT Hub, it will be automatically created

4. Monitor Events

az extension add --name azure-iot
az iot hub monitor-events -n <azure-iot-hub-name> --login <azure-iot-hub-connection-string>

All devices which have sent data can be inspected in the IoT Device Explorer on IoT Hub.

5. Use of further Azure services

Once a device is connected to the IoT Hub, device data can be further used on various Azure services:

Possible services are:

  • Real-time data stream processing

  • Powerful cloud-based predictive analytics tool to enable predictive maintenance

  • A scalable, push notification engine for quickly sending messages

  • A suite of business analytics

6. Useful Links

First, you will need to in order to successfully process data from akenza in Azure services.

Sign in to the

using the Data Flow and start sending data.

In order to monitor uplinks that are sent to Azure IoT Hub, you can use Azure CLI with the . Use the following commands to install the extension and monitor incoming uplinks:

set up an Azure IoT Hub
Azure portal
Create a new device
Azure IoT CLI Extension
Stream Analytics
Machine Learning
Notification Hubs
Power BI
akenza Azure IoT Hub connector
Setup an Azure IoT Hub
Obtain an Azure IoT Hub connection string
Setup a Data Flow in akenza
Monitor events
Use of further Azure services
Useful Links
Azure services
LogoAzure IoT reference architecture - Azure Reference Architecturesdocsmsft
LogoAzure IoT Hub Documentationdocsmsft
LogoTutorial - Configure message routing for Azure IoT Hub using Azure CLIdocsmsft
LogoUse Azure IoT Tools for VSCode to manager IT Hub messagingdocsmsft
Adding a shared access policy
Obtaining the connection string
Azure IoT Hub template
IoT Device Explorer on IoT Hub
LogoReal-time data visualization of data from Azure IoT Hub – Power BIdocsmsft