Skip to content

Latest commit

 

History

History
 
 

README.md

Azure IoT Operations .NET SDK

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:

Getting started

To get started with a .NET SDK tutorial, follow these steps:

  1. To set up your cluster and install Azure IoT Operations, refer to the setup guide.

  2. Install the .NET 9.0 SDK.

  3. Run the Event Driven Application tutorial.

Developing your application

  1. Create a new .NET application. Using one of the existing samples is a good starting point.

  2. 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
  3. Read the documentation for details on using the various SDK components and debugging your application.

Developing your Akri connector

The Akri Connector package (this service is currently in private preview) is located in our ADO package feed:

  1. 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
  2. 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

Deploying your application

Refer to the Deploy an edge application document to build your image and deploy it to your cluster for final validation.

Packages

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.

Samples

Refer to the samples directory for a comprehensive list of samples using the Azure IoT Operations .NET SDK.