IoT Hub and DPS api versions

Måns Andersson 1 Reputation point
2022-02-07T10:01:10.033+00:00

Hi,

We're building products connecting to Azure Device Provisioning Service and IoT Hub using MQTT protocol. We are rolling our own implementation and not utilizing the SDKs as they are not compatible with our application.

We are wondering if there's any documentation available on the api version numbers? Which ones are supported, what the difference is etc.

All we've been able to find is the following

IoT Hub

Docs page specifying 2018-06-30 but not mentioning anything else about the parameter
https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-mqtt-support#using-the-mqtt-protocol-directly-as-a-device

SDK code which uses 2020-09-30
https://github.com/Azure/azure-iot-sdk-c/blob/32942abb994f6855edc2a4dee8afd80735df4151/iothub_client/inc/internal/iothub_internal_consts.h#L12

DPS

Docs page specifying 2019-03-31 but not mentioning anything else about the parameter
https://learn.microsoft.com/en-us/azure/iot-dps/iot-dps-mqtt-support#using-the-mqtt-protocol-directly-as-a-device

SDK code which uses 2019-03-31
https://github.com/Azure/azure-iot-sdk-c/blob/main/provisioning_client/inc/azure_prov_client/prov_client_const.h#L18

Best regards
Måns

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,272 questions
{count} votes

2 answers

Sort by: Most helpful
  1. QuantumCache 20,366 Reputation points Moderator
    2022-03-06T21:09:03.987+00:00

    Hello @Måns Andersson Thanks for your feedback, we will make sure the question on the API version is addressed as soon as possible on the documentation side also

    For the Username field, It's strongly recommended to include api-version. I hope this helps with your initial query!

    180426-image.png

    I have tested quickly with MQTTBox client, with both the versions on IoTHub: 2020-09-30, 2018-06-30, you should be good with either of them. Please let us know if it fails on your side and we can log a product issue.

    180390-image.png

    180482-image.png

    Monitoring on Azure IoTHub Side:

    180416-image.png

    Please comment in the below section for further help in this regard, Happy to help you!

    0 comments No comments

  2. Dominic 1,631 Reputation points Microsoft Employee
    2022-10-21T15:14:21.273+00:00

    The REST API reference pages show the latest version for each API. For example: https://learn.microsoft.com/en-us/rest/api/iot-dps/device/runtime-registration/register-device shows API Version:
    2021-06-01

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.