---
updatedAt: 2025-11-05T21:01:44.000Z
agentTools:
  projectIndex: https://esf.eurotech.com/v7.2.0/llms.txt
---

# Azure IoT Connection

# Overview

This section provides a guide on connecting an ESF device to the Microsoft Azure IoT platform. This guide covers the usage of the ESF Cloud Connector for

* Microsoft Azure IoT Hub (DPS Individual Enrollment, DPS Enrollment Group, IoT Hub Direct)
* Microsoft Azure IoT Central (Individual Enrollment, Enrollment Group)

## Prerequisites

In order to connect to the Azure IoT Hub, the following prerequisites must first be met:

* A Microsoft Azure account
* Add an ESF Cloud Connector for Azure to ESF\
  You can download the Connector from either from the [Eclipse Marketplace](https://marketplace.eclipse.org/content/esf-cloud-connector-azure-iot-v21) or the [Eurotech Download Area](https://www.eurotech.com/download/en/pb.aspx?mm=M2M%20Software%20Services\&pg=Everyware%20Software%20Framework).

## Azure IoT Connector

The ESF Gateway Administrative Console exposes all the services necessary to configure a connection to Microsoft Azure IoT Hub or Microsoft Azure IoT Central.

> 🚧
>
> In case of connection to Azure IoT Central, please follow the instruction on the [Create a Device in IoT Central Applications](https://esf.eurotech.com/v7.2.0/docs/create-iot-central-application-device) page before connecting devices directly to Azure Iot Central or via Azure IoT Plug and Play

# Available Connections:

ESF can connect to the Microsoft Azure IoT Hub or Microsoft Azure IoT Central using any of the three endpoints by following one of the custom connections below:

* [Connection String Provisioning and Connection](https://esf.eurotech.com/v7.2.0/docs/connection-string-provisioning-and-connection)
* [TPM Provisioning and Connection](https://esf.eurotech.com/v7.2.0/docs/tpm-iot-hub-connector)
* [SaS Provisioning and Connection](https://esf.eurotech.com/v7.2.0/docs/sas-iot-hub-connector)
* [X.509 Provisioning and Connection](https://esf.eurotech.com/v7.2.0/docs/x509-iot-hub-connector)

# DataService

In order for ESF to connect to the Azure IoT Services on startup, the option *connect.auto-on-startup* must be set to *true* in DataService. If this value is changed from false to true, ESF will immediately begin the connection process. It is recommended that the CloudService and MqttDataTransport are configured before setting the *connect.auto-on-startup* option to true.

> 🚧
>
> Changing the value of *connect.auto-on-startup* from true to false **will not** disconnect the client from the broker. This setting simply implies that ESF will not automatically connect on the next start of the framework.

![](https://files.readme.io/0718ea4-d62465a-data-service-auto-startup.png "d62465a-data-service-auto-startup.png")

# Connect/Disconnect

The status panel can be used to manually connect or disconnect the client while ESF is running. The main button toolbar has a connect and disconnect button that may be used to control connectivity.

> 🚧
>
> Connecting or disconnecting the client via the status panel has no impact on ESF automatically connecting at startup. This capability is only controlled via the *connect.auto-on-startup* DataService setting.