You can send Cloud-to-Device messages through the various SDK's. You can check a .NET example here
This SDK is also available in Python, Node.js, Java and iOS.
There does not seem to be a REST API to do the same, so the SDK is the way to go.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
like above this Azure portal how to get via api? Message receiving cloud to device.
You can send Cloud-to-Device messages through the various SDK's. You can check a .NET example here
This SDK is also available in Python, Node.js, Java and iOS.
There does not seem to be a REST API to do the same, so the SDK is the way to go.
Hi Madanraj,
Commands supported via HTTP from Cloud to Device
[https://zcusa.951200.xyz/en-us/rest/api/iothub/service/cloud-to-device-messages
Other ways to send the message from Cloud to device are -
[https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-csharp-csharp-c2d
[https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-python-python-c2d
[https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-node-node-c2d
[https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-java-java-c2d
[https://zcusa.951200.xyz/en-us/azure/iot-hub/iot-hub-ios-swift-c2d