Questions tagged [azure-iot-hub-device-management]

For more details see https://learn.microsoft.com/en-us/azure/iot-hub/iot-hub-device-management-overview

120 questions
0
votes
1 answer

how to get "connectionStateUpdatedTime" from IOT HUB using node js sdk 'azure-iothub'

I am using "('azure-iothub').Registry" to get device twin data. strQuery = `SELECT * FROM devices where deviceId IN [${deviceIds}]`; query = registry.createQuery(strQuery, 500); but device twin does not have "connectionStateUpdatedTime"…
0
votes
1 answer

Do we need to install certificate on device when we use azure IoT edge protocol gateway as identity gateway?

I am planning to use azure IoT edge as an Identity gateway for my TCP/IP device which is non-programmable and I am only allowed to change IP address and port number in the device but when I go through this document I found that they had used the…
0
votes
1 answer

Not able to provision IOT device under specific Device Template in Azure IoT Central

Recently I saw that in IoT Central app if I create a new Device Template, we get a Interface id in the format like this "dtmi:iosIotCentralApp:DeviceTestTemplate21i;1". And if I use this for DeviceProvisioning function as cmid then I am getting…
0
votes
1 answer

Azure IoT Device to Cloud, Metrics graph drops to zero at a particular time stamp

I have an Azure IoT device connected to an Azure IoT Hub. The device sends 6 - 7 messages per minute. By looking at the D2C message metrics, I found an outlier, that states that at a specific time, the count of the D2C message was zero (see…
0
votes
1 answer

What does `--auth-type login` mean in Azure CLI?

What does --auth-type login mean in Azure CLI? According to the documentation, it Indicates whether the operation should auto-derive a policy key or use the current Azure AD session. The command below is an example to get a list of devices in IoT…
0
votes
1 answer

Without maintaining last reported version, is there a way to get an event only when there is a change in device twins reported properties?

Using IOTHub message routing feature, I am able to listen device twin change notifications whenever there is any change in device twin. No matter whether it is a change in tags or reported properties or desired properties. What I am looking for is a…
0
votes
0 answers

Publish data to Azure IoT Hub with MQTT

I am having a device which able to publish data to any MQTT broker. I am trying to publish data to Azure IoT Hub with this device as client. Machine is having the data as…
0
votes
3 answers

Registering a device on Azure IoT-hub programatically using mqtt

Is there anyway to register the new device onto the azure iot-hub programmatically using the self/CA created certificates? For example say, I want to register my raspberry pi on to my newly created IOT-HUB from the same rasp pi. I know we can do it…
0
votes
2 answers

Get list of direct methods registered with IotHub device

I am working on one sample IoT project. Where 1 IoT device is registered on IotHub. It is exposing 1 direct method to control device temperature. On, device startup it is registering callback on IoTHub to listen for method invocation requests. As…
0
votes
3 answers

Timeline of Iot edge reported clients status

How can I draw (I mean, get data to draw) a timeline of IotHub device client connection state? I would like to draw an availability status timeline from all my devices, for that I am doing the following: Every one minute: Request all '$edgeHub'…
0
votes
1 answer

Azure IoT Edge stop a module programmatically

I'm trying to change the "status" (running or stopped) and the "restartPolicy" of an IoT Edge module programmatically in order to stop a module without having to recreate the whole deployment for the Device. I've seen that the Edge Agent's Twin has…
0
votes
2 answers

Setup Iot Edge Simulator issue when we are giving iot edge connection string

We created sample iot edge application using visual studio 2019. When we are trying to setup iot edge device connection string in Setup Iot Edge Simulator getting below error. C:\Users\10070047\Documents\Visual Studio…
0
votes
1 answer

Enrich device life cycle events Azure IoT Hub

I need to enrich the device life cycle events[Created, Deleted, Connected, Disconnected] received on Event Grid. The event flow in my solution is like below:- Device send registration request to IoT Hub -> Event grid triggers device life cycle event…
0
votes
2 answers

Azure IotHub routing is not functioning

I have the following routing query defined in Azure IotHub: $body.messageType="Test" And using Microsoft.Azure.Devices.Client" SDK Version="1.28.0" Here is my very simple C# code. var device =…
Mori
  • 2,484
  • 5
  • 28
  • 45
0
votes
1 answer

How to disable Cloud initiated connection to Azure IoT Edge device?

I'm looking into Azure IoT Hub and IoT Edge to understand capabilities and potential use cases roughly. One of the projects I had worked in the past had a strict requirement to disable cloud initiated contact and make things to work based on device…