VOOZH about

URL: https://thenewstack.io/azure-iot-edge-a-technology-primer/

⇱ Azure IoT Edge: A Technology Primer - The New Stack


TNS
SUBSCRIBE
Join our community of software engineering leaders and aspirational developers. Always stay in-the-know by getting the most important news and exclusive content delivered fresh to your inbox to learn more about at-scale software development.
REQUIRED
It seems that you've previously unsubscribed from our newsletter in the past. Click the button below to open the re-subscribe form in a new tab. When you're done, simply close that tab and continue with this form to complete your subscription.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.
Welcome and thank you for joining The New Stack community!
Please answer a few simple questions to help us deliver the news and resources you are interested in.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Great to meet you!
Tell us a bit about your job so we can cover the topics you find most relevant.
REQUIRED
REQUIRED
REQUIRED
REQUIRED
REQUIRED
Welcome!

We’re so glad you’re here. You can expect all the best TNS content to arrive Monday through Friday to keep you on top of the news and at the top of your game.

What’s next?

Check your inbox for a confirmation email where you can adjust your preferences and even join additional groups.

Follow TNS on your favorite social media networks.

Become a TNS follower on LinkedIn.

Check out the latest featured and trending stories while you wait for your first TNS newsletter.

PREV
1 of 2
NEXT
VOXPOP
As a JavaScript developer, what non-React tools do you use most often?
Angular
0%
Astro
0%
Svelte
0%
Vue.js
0%
Other
0%
I only use React
0%
I don't use JavaScript
0%
Thanks for your opinion! Subscribe below to get the final results, published exclusively in our TNS Update newsletter:
NEW! Try Stackie AI
From clobbered drafts to real-time sync
Apr 14th 2026 10:00am, by David Moore
TypeScript 6.0 RC arrives as a bridge to a faster future
Mar 14th 2026 9:00am, by Darryl K. Taft
Mastra empowers web devs to build AI agents in TypeScript
Jan 28th 2026 11:00am, by Loraine Lawson
2018-09-14 04:00:54
Azure IoT Edge: A Technology Primer
analysis,
Edge Computing

Azure IoT Edge: A Technology Primer

Sep 14th, 2018 4:00am by Janakiram MSV
👁 Featued image for: Azure IoT Edge: A Technology Primer
Feature image via Pixabay.

Edge computing is gradually evolving to become the next wave of cloud computing. The new approach solves some of the inherent problems identified with the traditional cloud computing delivery model.

Some of the key advantages of edge computing are:

  • Low-latency access
    • Edge computing exposes compute, storage, and networking locally.
  • Reduced bandwidth consumption
    • Edge layer aggregates and filters data by only ingesting what’s needed to the public cloud.
  • Offline availability
    • Applications that have intermittent access to the Internet and cloud can rely on local resources exposed by the edge computing layer.
  • Local ML inference
    • Machine learning models that are trained in the public cloud are deployed at the edge for faster inferencing.

The best way to visualize edge computing architecture is to think of it as a three-tier architecture. The first tier is the local devices and applications; the second tier is the edge layer, and finally the public cloud as the third tier.

The rise of machine learning is one of the key drivers of edge computing. Public cloud is used for evolving the models that learn from historical data. Edge makes decisions by applying intelligence based on the deployed ML models. The devices take action based on the decisions made by the edge which may include controlling equipment or machinery.

👁 Image

Microsoft Azure IoT Edge

Microsoft was one of the first to offer an end-to-end IoT platform in the public cloud. Customers used a set of cloud services that formed the building blocks of an enterprise IoT solution.

👁 Image

Azure IoT Edge is a recent addition to the Azure IoT portfolio. What was initially built as an IoT Gateway has graduated into a fully fledged edge computing platform. It is placed right in between the devices layer and the public cloud.

👁 Image

Azure IoT Edge is an open source project available on Github. The platform can be deployed on both Linux (ARM & x64) and Microsoft Windows operating systems. Depending on the requirements and runtime environment, Azure IoT Edge can run on a resource-constrained device such as a Raspberry Pi Zero or a powerful x86 server running in an enterprise data center. This flexibility makes it one of the powerful platforms in the industry.

Azure IoT Edge exposes partial functionality of IoT Hub for device authentication and communication of local devices. This is useful in running IoT applications in offline mode without directly talking to the public cloud.

Let’s take a closer look at the architecture.

Azure IoT Edge Architecture

Azure IoT Edge is designed to be extremely modular and extensible. Microsoft has made some of the decisions that help both the product team and customers in the long term. It is built on top of Moby, an open source toolchain that powers Docker. The platform has a tiny footprint that can be easily installed with a couple of commands.

The devices running edge platforms are often deployed in remote places that are not easily accessible. They need to be registered only during the initial onboarding process after which are remotely managed from the public cloud. If the edge device is offline when applying a new configuration, it gets pushed as soon as the device gains connectivity.

Since edge devices are glorified IoT devices that are capable of running additional services, Azure IoT treats them like any other registered device. The control plane of Azure IoT is used to manage the edge devices at scale.

Azure IoT Edge seamlessly manages the interaction between devices and public cloud. It does all the necessary plumbing involved in authentication and communication among local devices.

Below is a schematic representation of Azure IoT Edge. Let’s understand the role of these components.

👁 Image

Devices

These are the sensors and actuators that are responsible for either acquiring the data or controlling a device. These devices are not directly connected to the cloud. Instead, they talk to the local edge computing layer. Azure IoT Edge acts as a transparent gateway that may translate the protocols and data formats used by these leaf-level devices. Each device has a corresponding module registered with the edge layer. These modules are instantiated as containers that are managed by the runtime agent.

Modules

Modules are plain vanilla Docker containers that are typically mapped to a device. For example, if there are two devices attached to the edge, a bulb and a temperature sensor, they are modeled as two separate modules containing the communication mechanism and the logic to communicate with the device. Modules are built from standard Dockerfile definitions and pushed to a public or private registry. They cannot be treated as standalone containers because of the dependency on the runtime and context.

Modules can talk to each other through a well-defined interface established by the runtime. Not every module needs to be mapped to a device. For example, a TensorFlow model meant to perform object detection doesn’t have an associated device. Instead, it is daisy chained to a camera module that grabs the frames which are passed onto the next module.

Since modules are a direct representation of devices, they have a digital twin defined as a JSON document. The twin makes is possible to read the last known good configuration and also to set desired properties on the actual device. Digital twins carry additional metadata that’s helpful in querying and filtering devices based on attributes such as location, model, make, and serial number.

Azure IoT Edge treats modules as independent components that are loosely coupled. Similar to UNIX pipes, the output of one module is fed to the another. This design decision makes it possible to define sophisticated pipelines that are modular and extensible.

Azure IoT Edge Runtime

This is the foundation of Azure IoT Edge which manages the interaction with Azure IoT control plane in the public cloud. Every edge device registered with Azure need to have this component installed. It establishes a secure connection with Azure IoT and sets up the PKI infrastructure required by the security modules. IoT Edge Runtime owns the communication on both sides of the spectrum — devices and cloud. It is installed as a native binary on the target OS such as Raspbian, Debian, Ubuntu, CentOS, and Microsoft Windows. IoT Edge Runtime, which is running as a daemon within the OS, interfaces with Moby to manage the lifecycle of containers deployed as modules.

Azure IoT Edge Agent

The IoT Edge Agent is the first component of IoT Edge Runtime that runs as a container. It bootstraps itself each time the edge device is powered on. IoT Edge Agent is responsible for downloading the deployment manifest from the cloud and maintaining the desired state of configuration of the edge device. It pulls all the container images from registries and runs them based on the predefined configuration. Its primary responsibility is to ensure that the state and configuration of containers are matching the original definition associated with the edge device. If a new module is added to the manifest through Azure IoT Portal, the agent pulls the image as soon as it discovers the change. Similarly, it terminates the containers when they are no more a part of the manifest. Behind the scenes, Azure IoT Edge Agent manages the interaction between the cloud and the local runtime to maintain the desired state.

Azure IoT Edge Hub

The second component of Azure IoT Edge runtime is Edge Hub that mimics the IoT Hub in the public cloud. It essentially provides offline capabilities of an IoT Hub by exposing authentication and communication services to the leaf devices. A module representing a device has logic to get authenticated with the local hub. Similarly, it can send telemetry data to the hub that will forward it to the upstream components which are other modules defined as a part of the manifest.

Edge Hub exposes the same API as its public cloud counterpart. This design reduces the effort required to refactor devices for the edge. Since it caches the credentials after the runtime gets authenticated during the handshake with IoT Hub in the cloud.

Edge Hub acts as a communication broker facilitating local device communication. It supports standard protocols of IoT Hub including AMQP, MQTT, and HTTP. However, HTTP is not available in the current version of Edge Hub.

In summary, modules are placed close to the devices while Edge Agent and Edge Hub are close to the control plane of the cloud. The runtime manages and orchestrates the workflow involved in connecting the ends of the spectrum.

If you carefully notice, you understand that the Edge Runtime is very similar to a container management platform like Swarm or Kubernetes. Taking advantage of this design, Microsoft has built a Kubernetes connector for Azure IoT Hub, which is based on Virtual Kubelet.

In one of the upcoming articles, I will walk you through the steps involved in deploying and managing edge modules on a Raspberry Pi through Kubernetes. Stay tuned!

TRENDING STORIES
Janakiram MSV (Jani) is a practicing architect, research analyst, and advisor to Silicon Valley startups. He focuses on the convergence of modern infrastructure powered by cloud-native technology and machine intelligence driven by generative AI. Before becoming an entrepreneur, he spent...
Read more from Janakiram MSV
SHARE THIS STORY
TRENDING STORIES
Microsoft Azure is a sponsor of The New Stack.
TNS owner Insight Partners is an investor in: Real, Docker, Databricks.
SHARE THIS STORY
TRENDING STORIES
TNS DAILY NEWSLETTER Receive a free roundup of the most recent TNS articles in your inbox each day.
The New Stack does not sell your information or share it with unaffiliated third parties. By continuing, you agree to our Terms of Use and Privacy Policy.