@sathishkumarc14 You can also use http to communicate with iot hub, see an example here. Copy and import this flow :
[{"id":"54de72b2.ff5d2c","type":"function","z":"ef196bfe.de8c48","name":"prepare IoT Hub message","func":"msg.payload = JSON.stringify({\"hello\": \"world\"})\nmsg.headers = {}\nmsg.headers[\"Authorization\"] = {iotHubSasToken}`;\nmsg.url = `https://{iotHubName}.azure-devices.net/devices/${deviceId}/messages/events?api-version=2018-06-30\nreturn msg;","outputs":1,"noerr":0,"x":250,"y":240,"wires":[["a33ab64.dfac048"]]},{"id":"a33ab64.dfac048","type":"http request","z":"ef196bfe.de8c48","name":"IoT Hub HttpS","method":"POST","ret":"txt","paytoqs":false,"url":"","tls":"","persist":false,"proxy":"","authType":"","x":500,"y":240,"wires":[["8cfb0902.4cfea8"]]},{"id":"62458b2.8d37c74","type":"inject","z":"ef196bfe.de8c48","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":120,"y":180,"wires":[["54de72b2.ff5d2c"]]},{"id":"8cfb0902.4cfea8","type":"debug","z":"ef196bfe.de8c48","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","x":620,"y":180,"wires":[]}]
You will need to generate a "SAS Token" for your device id in order to use this method.
Best regards,