# How can i test azure connection?

**URL:** <https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094>\
**Category:** General\
**Created:** [4 May 2020 20:53 UTC](https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094 "2020-05-04T20:53:07Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Beefy\_carrot](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Beefy\_carrot](https://discourse.nodered.org/u/Beefy_carrot)\
**Post date:** [4 May 2020 20:53 UTC](https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094/1 "2020-05-04T20:53:07Z")

</div>

I want to test if i have a connection to azure. how can i do that ?

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [4 May 2020 21:05 UTC](https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094/2 "2020-05-04T21:05:24Z")

</div>

What kind of connection and what for?

---

<div class="post-metadata">

**Author:** ![Beefy\_carrot](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Beefy\_carrot](https://discourse.nodered.org/u/Beefy_carrot)\
**Post date:** [4 May 2020 21:10 UTC](https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094/3 "2020-05-04T21:10:09Z")

</div>

im outputting sensor data to azure using the standard azure iot hub node. i need to test if i have connection to the database, if not add the data that was supposed to go to azure to a storage file. so i dont lose any data

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [4 May 2020 22:11 UTC](https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094/4 "2020-05-04T22:11:33Z")

</div>

Are you writing to SQL SERVER?

[Node-red-contrib-mssql-plus](https://flows.nodered.org/node/node-red-contrib-mssql-plus) works with Azure SQL server.

---

<div class="post-metadata">

**Author:** ![Beefy\_carrot](https://avatars.discourse-cdn.com/v4/letter/b/ccd318/32.png) [@Beefy\_carrot](https://discourse.nodered.org/u/Beefy_carrot)\
**Post date:** [7 May 2020 14:40 UTC](https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094/5 "2020-05-07T14:40:01Z")

</div>

their isnt a way using the azure iot hub node ? i tried using the message ouput the azure node provides "message sendt" every time it sends a data element. But i wont send a message if it doesent have a connection. it just gives an error and restarts the flow. so i cant really work with that

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [7 May 2020 17:40 UTC](https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094/6 "2020-05-07T17:40:31Z")

</div>

I believe the Azure IoT service supports MQTT? Not sure though as I've never used it.

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [7 May 2020 17:43 UTC](https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094/7 "2020-05-07T17:43:49Z")

</div>

> [@Beefy\_carrot](#):
>
> But i wont send a message if it doesent have a connection. it just gives an error and restarts the flow. so i cant really work with that

Raise an issue on the repo so that the author has a chance to get it fixed for you and the rest of the community.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [6 July 2020 17:43 UTC](https://discourse.nodered.org/t/how-can-i-test-azure-connection/26094/8 "2020-07-06T17:43:50Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
