# Azure iot hub problems

**URL:** <https://discourse.nodered.org/t/azure-iot-hub-problems/11062>\
**Category:** General\
**Created:** [13 May 2019 10:31 UTC](https://discourse.nodered.org/t/azure-iot-hub-problems/11062 "2019-05-13T10:31:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![JokinSegu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JokinSegu](https://discourse.nodered.org/u/JokinSegu)\
**Post date:** [13 May 2019 10:31 UTC](https://discourse.nodered.org/t/azure-iot-hub-problems/11062/1 "2019-05-13T10:31:56Z")

</div>

I am trying to send data to azure iot hub, for that I am using the example of flow that is in the library. I set my iot hub values but I receive in the debug that it is not authorized.  
Maybe is because I am sending the incorrect deviceID.Where can I find the device ID?? Here I send you my IOT HUB from Azure

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/2/21065d8f8cd3465792ebe0c2b6fc1495f2d07f3b.png)

---

<div class="post-metadata">

**Author:** ![JokinSegu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JokinSegu](https://discourse.nodered.org/u/JokinSegu)\
**Post date:** [13 May 2019 12:13 UTC](https://discourse.nodered.org/t/azure-iot-hub-problems/11062/2 "2019-05-13T12:13:04Z")

</div>

Sorry, I have already correct it, I didn´t know that I needed to create a device in azure for that

---

<div class="post-metadata">

**Author:** ![JokinSegu](https://avatars.discourse-cdn.com/v4/letter/j/ed655f/32.png) [@JokinSegu](https://discourse.nodered.org/u/JokinSegu)\
**Post date:** [14 May 2019 06:50 UTC](https://discourse.nodered.org/t/azure-iot-hub-problems/11062/3 "2019-05-14T06:50:19Z")

</div>

When I try to send data from the PLC I get this error:

TypeError [ERR\_INVALID\_ARG\_TYPE]: The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type undefined

Do you know what can I do to solve the problem?

 ![azure](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/3/30993bc90af4216851fbe40735751746a3535ce3.png)

---

<div class="post-metadata">

**Author:** ![carlos10289](https://avatars.discourse-cdn.com/v4/letter/c/dbc845/32.png) [@carlos10289](https://discourse.nodered.org/u/carlos10289)\
**Post date:** [18 November 2021 05:13 UTC](https://discourse.nodered.org/t/azure-iot-hub-problems/11062/4 "2021-11-18T05:13:04Z")

</div>

lograste solucionar ese problema=? estoy pasando por lo mismo
