{"id":77866,"date":"2021-03-08T14:36:22","date_gmt":"2021-03-08T14:36:22","guid":{"rendered":"https:\/\/www.whizlabs.com\/blog\/?p=77866"},"modified":"2021-07-23T06:27:37","modified_gmt":"2021-07-23T11:57:37","slug":"introduction-to-microsoft-azure-iot-hub","status":"publish","type":"post","link":"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/","title":{"rendered":"An Intro to Microsoft Azure IoT Hub &#8211; Managed Service for IoT Devices and Azure"},"content":{"rendered":"<p style=\"text-align: left;\"><span style=\"font-weight: 400;\"><a href=\"https:\/\/www.whizlabs.com\/getting-started-with-microsoft-azure\/\">Microsoft Azure<\/a> IoT Hub is an IoT managed services platform that enables message routing of all IoT devices and applications to transfer data through the cloud. With its integration to a <\/span><b>Device Positioning Service (DPS)<\/b><span style=\"font-weight: 400;\">, you can connect thousands of devices with Azure IoT Hub automatically.<\/span><\/p>\n<figure id=\"attachment_77880\" aria-describedby=\"caption-attachment-77880\" style=\"width: 228px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"wp-image-77880 size-full\" title=\"Azure IoT Hub\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image1.png\" alt=\"Azure IoT Hub\" width=\"228\" height=\"222\" \/><figcaption id=\"caption-attachment-77880\" class=\"wp-caption-text\">Image Source: https:\/\/docs.microsoft.com\/<\/figcaption><\/figure>\n<p style=\"text-align: left;\"><span style=\"font-weight: 400;\">With the advancement in Cloud Computing, it is now an essential backbone of all IoT devices and applications that make it possible to connect, manage, secure, store, and retrieve data generated by such applications. Apparently, to develop an IoT application, Cloud Computing and focused services such as Edge Computing are of utmost importance. <\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-weight: 400;\">Let us explore through this article to understand how you can use Azure IoT Hub to build and manage IoT projects.<\/span><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_76 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><a href=\"#\" class=\"ez-toc-pull-right ez-toc-btn ez-toc-btn-xs ez-toc-btn-default ez-toc-toggle\" aria-label=\"Toggle Table of Content\"><span class=\"ez-toc-js-icon-con\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #ea7e02;color:#ea7e02\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #ea7e02;color:#ea7e02\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/span><\/a><\/span><\/div>\n<nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#Understanding_Azure_IoT_Hub\" >Understanding Azure IoT Hub<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#%E2%80%A2_Device_Identities\" >\u2022 Device Identities<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#%E2%80%A2_Device-to-Cloud_Message\" >\u2022 Device-to-Cloud Message<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#%E2%80%A2_Shared_Access_Policy\" >\u2022 Shared Access Policy<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#Pre-configuration_in_Azure_IoT_Hub\" >Pre-configuration in Azure IoT Hub<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#%E2%80%A2_Sign_up_for_an_Azure_account\" >\u2022 Sign up for an Azure account<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#%E2%80%A2_Creating_an_Azure_IoT_Hub\" >\u2022 Creating an Azure IoT Hub<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#%E2%80%A2_Add_a_shared_access_policy\" >\u2022 Add a shared access policy<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#%E2%80%A2_Enabling_the_integration\" >\u2022 Enabling the integration<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.whizlabs.com\/blog\/introduction-to-microsoft-azure-iot-hub\/#Conclusion\" >Conclusion<\/a><\/li><\/ul><\/nav><\/div>\n<h2 style=\"text-align: left;\"><span class=\"ez-toc-section\" id=\"Understanding_Azure_IoT_Hub\"><\/span><b>Understanding Azure IoT <\/b><b style=\"letter-spacing: -0.02em;\">Hub<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p style=\"text-align: left;\"><span style=\"font-weight: 400;\">Before going deeper into this topic, let us understand some of the key components of Azure IoT Hub.\u00a0<\/span><\/p>\n<h3 style=\"text-align: left;\"><span class=\"ez-toc-section\" id=\"%E2%80%A2_Device_Identities\"><\/span><b>\u2022<\/b> <b>Device Identities<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: left;\"><span style=\"font-weight: 400;\">Each device that is connected to <a href=\"https:\/\/www.whizlabs.com\/getting-started-with-microsoft-azure\/\">Microsoft Azure<\/a> IoT Hub has an <\/span><b><i>Identity<\/i><\/b><span style=\"font-weight: 400;\">. Luckily, all device IDs are created and managed dynamically while you integrate them with other applications. Every device is automatically assigned an ID the moment it is successfully connected to the IoT Hub. With an ID and device twin, it is easier to monitor the hub fleet and identify devices easily when required.\u00a0<\/span><\/p>\n<h3 style=\"text-align: left;\"><span class=\"ez-toc-section\" id=\"%E2%80%A2_Device-to-Cloud_Message\"><\/span><b>\u2022<\/b> <b>Device-to-Cloud Message<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p style=\"text-align: left;\"><b>Device-to-Cloud (D2C)<\/b><span style=\"font-weight: 400;\"> messages are typical for IoT devices where each device that is identified and registered in Azure IoT Hub has a message stream that is unique to itself.\u00a0<\/span><\/p>\n<p style=\"text-align: left;\"><span style=\"font-weight: 400;\">IoT devices and applications can send telemetry and alert data to IoT Hub for processing or rerouting to other services as defined by the developer. By default, all received messages go to the built-in endpoint D2C messages. Connected devices can thereby access this endpoint through <\/span><b>MQTT, AMQP,<\/b><span style=\"font-weight: 400;\"> and <\/span><b>HTTPS<\/b><span style=\"font-weight: 400;\"> requests.<\/span><i><\/i><\/p>\n<figure id=\"attachment_77876\" aria-describedby=\"caption-attachment-77876\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><img decoding=\"async\" class=\"wp-image-77876 size-large\" title=\"Key components of Azure IoT Hub - Device-to-Cloud Message\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image5-1024x497.png\" alt=\"Key components of Azure IoT Hub - Device-to-Cloud Message\" width=\"640\" height=\"311\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image5-1024x497.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image5-300x146.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image5-768x373.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image5-1536x745.png 1536w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image5-866x420.png 866w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image5-640x311.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image5-681x330.png 681w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image5.png 1999w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-77876\" class=\"wp-caption-text\">Image Source: https:\/\/docs.microsoft.com\/<\/figcaption><\/figure>\n<h3><span class=\"ez-toc-section\" id=\"%E2%80%A2_Shared_Access_Policy\"><\/span><b>\u2022<\/b> <b>Shared Access Policy<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">By default, you are granted full access to your Azure IoT Hub, but any other applications don\u2019t. For instance, if you need to manage your devices with <\/span><a href=\"https:\/\/www.particle.io\/\" target=\"_blank\" rel=\"noopener\"><b>Particle<\/b><\/a><span style=\"font-weight: 400;\">, you will require to grant it access to do so. That is only possible through a <\/span><b>Shared Access Policy<\/b><span style=\"font-weight: 400;\">.<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Azure IoT Hub administers access permissions by comparing a received token with access policies. Depending on the shared access policy granted, Particle can send the device\u2019s data, access message stream, and perform many other functions. However, granting permission comes with security issues that you need to be aware of as a developer. <\/span><\/p>\n<h4><b style=\"font-family: 'Open Sans', arial, sans-serif; font-size: 19px;\">\u2022 Device Twin<\/b><\/h4>\n<p><span style=\"font-weight: 400;\">Monitoring of IoT devices takes place 24 hours every day of the week. For that to be possible, there should be a virtual copy of that device in the cloud. In IoT Hub, the device state is stored <\/span><span style=\"font-weight: 400;\">as a JSON<\/span><span style=\"font-weight: 400;\">\u00a0string to represent the Device Twin.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">The Device Twin on IoT Hub is used to perform the following:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Store metadata that is specific to the device, for example, the location of the connected devices.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Give a clear report on the device\u2019s availability, capability, and condition. If your IoT device uses Wi-Fi or cellular data to connect to the IoT Hub, then you can access that information from the Device Twin.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Query configuration, metadata, or state of your device.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Synchronize the state of any ongoing activity between the device\u2019s firmware and back-end app.\u00a0\u00a0<\/span><\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Pre-configuration_in_Azure_IoT_Hub\"><\/span><b>Pre-configuration in Azure IoT Hub<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">Before you can experience the full capability of Azure IoT Hub and integrate it with any other services, you have to configure it. The following section is a walkthrough on how you can get started with the cloud service and integrate it with Particle for easier device management.\u00a0<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E2%80%A2_Sign_up_for_an_Azure_account\"><\/span><b>\u2022<\/b> <b>Sign up for an Azure account<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Go to the Microsoft Azure signup\/sign-in page. If you don\u2019t have an account already, then you can create a free tier account by clicking <\/span><a href=\"https:\/\/azure.microsoft.com\/en-gb\/free\/iot\/\" target=\"_blank\" rel=\"noopener\"><b><i>Try for free<\/i><\/b><\/a><span style=\"font-weight: 400;\">. A newly registered account receives $200 usage credits after successful signup.\u00a0<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E2%80%A2_Creating_an_Azure_IoT_Hub\"><\/span><b>\u2022<\/b> <b>Creating an Azure IoT Hub<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">You need to create an Azure IoT account to be able to manage your connected devices. Creating an IoT Hub is an elaborate process that requires attention.\u00a0<\/span><\/p>\n<p><b><i>Disclaimer<\/i><\/b><span style=\"font-weight: 400;\">: For the purpose of this article, we are taking the reference of the <\/span><a href=\"https:\/\/www.particle.io\/\" target=\"_blank\" rel=\"noopener\"><b>Particle<\/b><\/a><span style=\"font-weight: 400;\"> application to be connected with our IoT Hub instance.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Follow these steps:\u00a0<\/span><\/p>\n<ol>\n<li><span style=\"font-weight: 400;\">Sign in to your account at <\/span><a href=\"https:\/\/portal.azure.com\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Azure Portal<\/span><\/a><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><span style=\"font-weight: 400;\">Click <\/span><b><i>Create a resource<\/i><\/b><span style=\"font-weight: 400;\"> and enter <\/span><b><i>IoT Hub<\/i><\/b><span style=\"font-weight: 400;\"> in the search box and press enter.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-large wp-image-77873\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image8-1024x559.png\" alt=\"Pre-configuration in Azure IoT Hub - Creating an Azure Iot Hub\" width=\"640\" height=\"349\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image8-1024x559.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image8-300x164.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image8-768x419.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image8-770x420.png 770w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image8-640x350.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image8-681x372.png 681w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image8.png 1158w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><img decoding=\"async\" class=\"aligncenter size-large wp-image-77872\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image9-1024x578.png\" alt=\"Pre-configuration in Azure IoT Hub - Creating an Azure Iot Hub\" width=\"640\" height=\"361\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image9-1024x578.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image9-300x169.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image9-768x433.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image9-744x420.png 744w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image9-640x361.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image9-681x384.png 681w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image9.png 1118w\" sizes=\"(max-width: 640px) 100vw, 640px\" \/><\/span><\/li>\n<li><span style=\"font-weight: 400;\">Choose <\/span><b><i>IoT Hub<\/i><\/b><span style=\"font-weight: 400;\"> and click <\/span><b><i>Create<\/i><\/b><span style=\"font-weight: 400;\">.<\/span><\/li>\n<li><span style=\"font-weight: 400;\">Fill in the information as required: <\/span><b><i>Subscription, Resource group, Region,<\/i><\/b><span style=\"font-weight: 400;\"> and<\/span><b><i> IoT Hub<\/i><\/b><span style=\"font-weight: 400;\">. Please note that the IoT Hub Name has to be unique. A green checkmark appears if the name entered is not taken.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-77879\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image2.png\" alt=\"Pre-configuration in Azure IoT Hub - Creating an Azure Iot Hub\" width=\"1166\" height=\"633\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image2.png 1166w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image2-300x163.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image2-1024x556.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image2-768x417.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image2-774x420.png 774w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image2-640x347.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image2-681x370.png 681w\" sizes=\"(max-width: 1166px) 100vw, 1166px\" \/><\/span><\/li>\n<li><span style=\"font-weight: 400;\">Click <\/span><b><i>Next<\/i><\/b><span style=\"font-weight: 400;\"> and continue providing the information required. Preview your response and then create. It takes a few minutes to have your hub ready.<br \/>\n<img decoding=\"async\" class=\"aligncenter size-full wp-image-77875\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image6.png\" alt=\"Pre-configuration in Azure IoT Hub - Creating an Azure Iot Hub\" width=\"1147\" height=\"629\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image6.png 1147w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image6-300x165.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image6-1024x562.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image6-768x421.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image6-766x420.png 766w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image6-640x350.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image6-681x373.png 681w\" sizes=\"(max-width: 1147px) 100vw, 1147px\" \/><\/span><\/li>\n<\/ol>\n<ol>\n<li style=\"list-style-type: none;\"><\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"%E2%80%A2_Add_a_shared_access_policy\"><\/span><b>\u2022<\/b> <b>Add a shared access policy<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">Go to your Azure dashboard and then click on its icon. Proceed to <\/span><b><i>Shared access policies &gt; + Add<\/i><\/b><span style=\"font-weight: 400;\"> to add a new policy. For this article, let us take the reference of an Access Policy which we would like to grant permissions to <\/span><b>Particle<\/b><span style=\"font-weight: 400;\"> and click on <\/span><b><i>Create<\/i><\/b><span style=\"font-weight: 400;\">.\u00a0<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-77871\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image10.png\" alt=\"Pre-configuration in Azure IoT Hub - Add a shared access policy\" width=\"1115\" height=\"634\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image10.png 1115w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image10-300x171.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image10-1024x582.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image10-768x437.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image10-739x420.png 739w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image10-640x364.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image10-681x387.png 681w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image10-1021x580.png 1021w\" sizes=\"(max-width: 1115px) 100vw, 1115px\" \/><\/p>\n<ul>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Registry read and write <\/b><span style=\"font-weight: 400;\">grants read and write permissions.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Service connect<\/b><span style=\"font-weight: 400;\"> grants permission to access services.<\/span><\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\"><b>Device connect<\/b><span style=\"font-weight: 400;\"> grants the send and receive message permission from the connected device\u2019s endpoint.<\/span><\/li>\n<\/ul>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-77874\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image7.png\" alt=\"Pre-configuration in Azure IoT Hub - Add a shared access policy\" width=\"1352\" height=\"575\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image7.png 1352w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image7-300x128.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image7-1024x436.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image7-768x327.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image7-988x420.png 988w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image7-640x272.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image7-681x290.png 681w\" sizes=\"(max-width: 1352px) 100vw, 1352px\" \/><\/p>\n<p><span style=\"font-weight: 400;\">Please note down the policy name and primary key as you will need them in the proceeding steps. This information is always available on your shared access policies in your hub.<\/span><\/p>\n<p><img decoding=\"async\" class=\"aligncenter size-full wp-image-77877\" src=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image4.png\" alt=\"Pre-configuration in Azure IoT Hub - Add a shared access policy\" width=\"1343\" height=\"573\" srcset=\"https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image4.png 1343w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image4-300x128.png 300w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image4-1024x437.png 1024w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image4-768x328.png 768w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image4-984x420.png 984w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image4-640x273.png 640w, https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/image4-681x291.png 681w\" sizes=\"(max-width: 1343px) 100vw, 1343px\" \/><\/p>\n<h3><span class=\"ez-toc-section\" id=\"%E2%80%A2_Enabling_the_integration\"><\/span><b>\u2022<\/b> <b>Enabling the integration<\/b><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p><span style=\"font-weight: 400;\">You can now integrate your IoT Hub with any other application. In this case, we integrated with a Particle application. So, head to <\/span><a href=\"https:\/\/console.particle.io\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">Particle Console<\/span><\/a><span style=\"font-weight: 400;\"> and follow the steps outlined in this <\/span><a href=\"https:\/\/docs.particle.io\/tutorials\/integrations\/azure-iot-hub\/\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">article<\/span><\/a><span style=\"font-weight: 400;\">. After successful integration, you will need to confirm that the data reaches Azure IoT Hub from your Particle devices.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400;\">Microsoft Azure IoT Hub still allows you to <\/span><a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/iot-hub\/iot-hub-create-through-portal\" target=\"_blank\" rel=\"noopener\"><span style=\"font-weight: 400;\">register and manage<\/span><\/a><span style=\"font-weight: 400;\"> your devices directly without integration with other third-party applications. You only need to make sure that the devices you want to connect to your IoT Hub already have an entry in the registry.\u00a0<\/span><\/p>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><b>Conclusion<\/b><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p><span style=\"font-weight: 400;\">With Azure IoT Hub, you can fully manage millions of connected devices through secure bi-directional communication. If you need a reliable device-cloud and cloud-device messaging service, then Azure IoT Hub is one of the best options available. It offers extensive monitoring of every device in the network and lets you query the device twin to get any information you need on-demand.<\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft Azure IoT Hub is an IoT managed services platform that enables message routing of all IoT devices and applications to transfer data through the cloud. With its integration to a Device Positioning Service (DPS), you can connect thousands of devices with Azure IoT Hub automatically. With the advancement in Cloud Computing, it is now an essential backbone of all IoT devices and applications that make it possible to connect, manage, secure, store, and retrieve data generated by such applications. Apparently, to develop an IoT application, Cloud Computing and focused services such as Edge Computing are of utmost importance. Let [&hellip;]<\/p>\n","protected":false},"author":169,"featured_media":77868,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_uag_custom_page_level_css":"","site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[15],"tags":[3958,3963,3964,3965,3960,3956,3957,3961,3962,3959],"class_list":["post-77866","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-microsoft-azure","tag-az-iot-hub","tag-azure-iot-hub-architecture","tag-azure-iot-hub-documentation","tag-azure-iot-tutorial","tag-creating-an-azure-iot-hub","tag-iot-hub","tag-iot-hub-microsoft-azure","tag-key-components-of-azure-iot-hub","tag-pre-configuration-in-azure-iot-hub","tag-what-is-azure-iot-hub"],"uagb_featured_image_src":{"full":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",600,315,false],"thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1-150x150.png",150,150,true],"medium":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1-300x158.png",300,158,true],"medium_large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",600,315,false],"large":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",600,315,false],"1536x1536":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",600,315,false],"2048x2048":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",600,315,false],"profile_24":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",24,13,false],"profile_48":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",48,25,false],"profile_96":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",96,50,false],"profile_150":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",150,79,false],"profile_300":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",300,158,false],"tptn_thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1-250x250.png",250,250,true],"web-stories-poster-portrait":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",600,315,false],"web-stories-publisher-logo":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",96,50,false],"web-stories-thumbnail":["https:\/\/www.whizlabs.com\/blog\/wp-content\/uploads\/2021\/03\/An-Intro-to-AZ-IoT-Hub-Managed-Service-for-IoT-Devices-and-Azure-1.png",150,79,false]},"uagb_author_info":{"display_name":"Girdharee Saran","author_link":"https:\/\/www.whizlabs.com\/blog\/author\/girdharee\/"},"uagb_comment_info":0,"uagb_excerpt":"Microsoft Azure IoT Hub is an IoT managed services platform that enables message routing of all IoT devices and applications to transfer data through the cloud. With its integration to a Device Positioning Service (DPS), you can connect thousands of devices with Azure IoT Hub automatically. With the advancement in Cloud Computing, it is now&hellip;","_links":{"self":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/77866","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/users\/169"}],"replies":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/comments?post=77866"}],"version-history":[{"count":6,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/77866\/revisions"}],"predecessor-version":[{"id":77914,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/posts\/77866\/revisions\/77914"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media\/77868"}],"wp:attachment":[{"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/media?parent=77866"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/categories?post=77866"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.whizlabs.com\/blog\/wp-json\/wp\/v2\/tags?post=77866"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}