This folder contains the source code, tests, and sample code for the Azure IoT Operations .NET SDK.
Review the following links for more information about the product and broader developer experience:
- Azure IoT Operations Learn documentation
- Azure IoT Operations SDKs overview documentation
To get started with a .NET SDK tutorial, follow these steps:
-
To set up your cluster and install Azure IoT Operations, refer to the setup guide.
-
Install the .NET 9.0 SDK.
-
Run the Event Driven Application tutorial.
-
Create a new .NET application. Using one of the existing samples is a good starting point.
-
Install the packages into your project:
dotnet add package Azure.IoT.Operations.Mqtt dotnet add package Azure.IoT.Operations.Protocol dotnet add package Azure.IoT.Operations.Services
-
Read the documentation for details on using the various SDK components and debugging your application.
The Akri Connector package (this service is currently in private preview) is located in our ADO package feed:
-
Add our package feed:
dotnet nuget add source -n AzureIoTOperations https://pkgs.dev.azure.com/azure-iot-sdks/iot-operations/_packaging/preview/nuget/v3/index.json -
Install the packages into your project:
dotnet add package Azure.IoT.Operations.Connector dotnet add package Azure.IoT.Operations.Mqtt dotnet add package Azure.IoT.Operations.Protocol dotnet add package Azure.IoT.Operations.Services
Refer to the Deploy an edge application document to build your image and deploy it to your cluster for final validation.
The following Azure IoT Operations packages are available:
| Name | API | Package | Description |
|---|---|---|---|
| Mqtt | 🔗 | Azure.Iot.Operations.Mqtt |
MQTT5 fundamentals such as session management including connections and authentication |
| Protocol | 🔗 | Azure.Iot.Operations.Protocol |
Protocol implementations built on MQTT5 such as telemetry and RPC |
| Services | 🔗 | Azure.Iot.Operations.Services |
Integrate with IoT Operations services such as state store, lease lock, leader election and schema registry |
Caution
The prerelease versions (--prerelease) should be used as they are the official preview builds. Omitting this flag will default to the daily builds, which may contain unpredictable behavior and undocumented breaking changes.
Refer to the samples directory for a comprehensive list of samples using the Azure IoT Operations .NET SDK.