# Having difficulty to use cloud connector to connect to Azure IoT Hub

**URL:** <https://forum.sierrawireless.com/t/having-difficulty-to-use-cloud-connector-to-connect-to-azure-iot-hub/21627>\
**Category:** Octave\
**Created:** [September 28, 2020, 5:42am UTC](https://forum.sierrawireless.com/t/having-difficulty-to-use-cloud-connector-to-connect-to-azure-iot-hub/21627 "2020-09-28T05:42:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jameshorng](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jameshorng](https://forum.sierrawireless.com/u/jameshorng)\
**Post date:** [September 28, 2020, 5:42am UTC](https://forum.sierrawireless.com/t/having-difficulty-to-use-cloud-connector-to-connect-to-azure-iot-hub/21627/1 "2020-09-28T05:42:47Z")

</div>

I setup IoT Hub based on Azure IoT Hub documentation ([https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-send-telemetry-node](https://docs.microsoft.com/en-us/azure/iot-hub/quickstart-send-telemetry-node)) and able to receive telemetry data from simulated device. However, I couldn’t get Octave Cloud Connector to work with the same device id, hub name, key & policy name. The connector disabled itself automatically after one try. Can someone give me some advice?

---

<div class="post-metadata">

**Author:** ![djudkins](https://avatars.discourse-cdn.com/v4/letter/d/7ea924/32.png) [@djudkins](https://forum.sierrawireless.com/u/djudkins)\
**Post date:** [September 29, 2020, 1:01pm UTC](https://forum.sierrawireless.com/t/having-difficulty-to-use-cloud-connector-to-connect-to-azure-iot-hub/21627/2 "2020-09-29T13:01:02Z")

</div>

Hi James,

Could you provide your Octave account name and we will take a look at your connector.

---

<div class="post-metadata">

**Author:** ![jameshorng](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jameshorng](https://forum.sierrawireless.com/u/jameshorng)\
**Post date:** [September 29, 2020, 9:57pm UTC](https://forum.sierrawireless.com/t/having-difficulty-to-use-cloud-connector-to-connect-to-azure-iot-hub/21627/3 "2020-09-29T21:57:39Z")

</div>

Hi, David,  
My Octave account name is my email address [jameshorng@fortune-co.com.tw](mailto:jameshorng@fortune-co.com.tw).

James

---

<div class="post-metadata">

**Author:** ![jameshorng](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jameshorng](https://forum.sierrawireless.com/u/jameshorng)\
**Post date:** [September 30, 2020, 12:48am UTC](https://forum.sierrawireless.com/t/having-difficulty-to-use-cloud-connector-to-connect-to-azure-iot-hub/21627/4 "2020-09-30T00:48:55Z")

</div>

Hi, David,

In Azure IoT Hub Quickstart document, they asked to insert DeviceConnectionString in the simulated device. The following is the DeviceConnectionString I used in the sample program to send telemetry data to IoT Hub. .

[HostName=FTS-Hub.azure-devices.net](http://HostName=FTS-Hub.azure-devices.net);DeviceId=MyNodeDevice;SharedAccessKey=5SinRGY1gPyt4zA/52Tdd/JloRsgsOzBbyMIT2nYVqI=

The following the screenshot of my setting in Octave. The cloud connector will automatically disabled after device stream is send.

![image001.png](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/e/eacd29cf7af0b5139db794bd00ac9896f26cae97.png)

![image004.png](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/e/e94edc6ee8e7639512d95db30faf4e62537f8d81.png)

 ![image005.png](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/f/ff6a000322b9702406c38b7d13e555c0971e4e95.png)

 ![image002.png](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/1/15d2ce787293add86e6047f859d7f0197b6c9fcb.png)

James

---

<div class="post-metadata">

**Author:** ![amons](https://sea1.discourse-cdn.com/flex025/user_avatar/forum.sierrawireless.com/amons/32/4887_2.png) [@amons](https://forum.sierrawireless.com/u/amons)\
**Post date:** [September 30, 2020, 12:22pm UTC](https://forum.sierrawireless.com/t/having-difficulty-to-use-cloud-connector-to-connect-to-azure-iot-hub/21627/5 "2020-09-30T12:22:28Z")

</div>

Hello James,

You seem to have picked-up the SharedAccess key of your Device.

What you need to enter are the name and SharedAccessKey of one of the Shared Access Policies of the IoT Hub itself.  
And this policy must include the “device connect” option as indicated here: [https://docs.octave.dev/docs/pushing-events-via-cloud-connectors#creating-an-azure-iot-hub-cloud-connector](https://docs.octave.dev/docs/pushing-events-via-cloud-connectors#creating-an-azure-iot-hub-cloud-connector)

Pick up the Primary key and the Policy name From the Shared Access Policies section of you IoT Hub management page

 ![image](https://us1.discourse-cdn.com/flex025/uploads/sierrawireless/original/2X/5/501204faf8c194f1a5daf6bd210430774c0fca4a.png)

A.

---

<div class="post-metadata">

**Author:** ![jameshorng](https://avatars.discourse-cdn.com/v4/letter/j/90db22/32.png) [@jameshorng](https://forum.sierrawireless.com/u/jameshorng)\
**Post date:** [September 30, 2020, 11:56pm UTC](https://forum.sierrawireless.com/t/having-difficulty-to-use-cloud-connector-to-connect-to-azure-iot-hub/21627/6 "2020-09-30T23:56:12Z")

</div>

Hi, Augustin,  
Thanks for your support. I can push events to IoT Hub through cloud connector now.

James
