Skip to content
| Marketplace
Sign in
Visual Studio>Templates>.NET Core 3.x IoT Hub REST API Template
.NET Core 3.x IoT Hub REST API Template

.NET Core 3.x IoT Hub REST API Template

Jon Mikel Inza

|
5,729 installs
| (1) | Free
Visual Studio project template accelerating the creation of .NET Core 3.x API projects to expose Microsoft Azure IoTHub features.
Download

Description

This extension helps to build a Microsoft Azure IoT Hub REST facade in a few seconds. The created solution is ready to be used (it only requires setting the Microsoft Azure IoT Hub connection string in the appsettings.json configuration file).

From the architectural perspective, this type of template offers the possibility of creating a facade or a microservice and adding different levels of logic (security, business, etc) to the technical IoT device management API (C2D and D2C) hosted in Microsoft Azure IoT Hub.

The VS solution template relies on:

  • IoTHub's features
  • .NET Core 3.1.x

The solution is based on another Visual Studio extension allowing to build layered REST API solutions (.NET Core 3.1).

What does it look like?

Once the extension is installed, you can use it directly from the start screen when you create a new project:

IoT_Hub_REST_APIs_Templates.png

You only need to:

  • pick up the template of your choice
  • chose the solution folder
  • give a name to the solution

The extension will create the solution and the projects to build the REST API.

IoT_Hub_REST_APIs_Templates2.png

Before running the solution, you will need to provide the IoT Hub connection string in the appsettings.json file (in the API project).

IoT_Hub_REST_APIs_Templates5.png

Basically, that is all. After that, your solution is ready to be used. You will find below the published OpenAPI.

IoT_Hub_REST_APIs_Templates3.png

One of the practical features is the automatic API and OpenAPI versioning.

IoT_Hub_REST_APIs_Templates4.png

Of course, most of the time you will need to make changes and adapt the solution to your own context.

I hope you will find this set of extensions helpful and useful.

You will find more details here.

Feel free to send feedback.

.NET CLI

In addition to this Visual Studio version, you can find here the .NET CLI version.

Release notes

v3.1.659

  • packaging updates (.NET CLI factorization)

v3.1.603.1

  • labeling update

v3.1.601.1

  • labeling update

v3.1.599.1

  • full upgrade from .NET Core 2.x to .NET Core 3.1.x
  • version number review
  • small improvements based on the feedback of the previous version
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft