{"id":222598,"date":"2019-01-17T08:00:04","date_gmt":"2019-01-17T16:00:04","guid":{"rendered":"https:\/\/devblogs.microsoft.com\/visualstudio\/?p=222598"},"modified":"2019-02-14T15:23:13","modified_gmt":"2019-02-14T23:23:13","slug":"build-an-azure-iot-application-with-cloud-explorer-for-visual-studio-2","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/visualstudio\/build-an-azure-iot-application-with-cloud-explorer-for-visual-studio-2\/","title":{"rendered":"Build an Azure IoT application with Cloud Explorer for Visual Studio"},"content":{"rendered":"<p>What we\u2019ve heard and experienced ourselves is that when building applications, you have a frictionless experience when your code editor and tools are integrated and seamless. Yet when developing IoT apps, you often need to manage connected devices and send test messages between the device and IoT Hub at the same time that you\u2019re debugging and working on your code. You\u2019ll likely spend time switching between windows or even screens to monitor the messaging and many components of your development.<\/p>\n<p>To ensure that the tools you need are close at hand, we\u2019ve updated the <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-azuretools.CloudExplorerForVS\">Cloud Explorer for Visual Studio<\/a> extension for IoT developers to enable you to view your Azure IoT Hubs, inspect their properties, and perform other actions from within Visual Studio. Cloud Explorer is installed by default if you selected the Azure Workload when installing Visual Studio. To access the latest features, you need to upgrade to Microsoft Visual Studio 2017 Update 9 or later, then download and install the latest extension from Visual Studio <a href=\"https:\/\/marketplace.visualstudio.com\/items?itemName=ms-azuretools.CloudExplorerForVS\">marketplace<\/a>.<\/p>\n<p>Here are some of the new features to help IoT developers easily interact with Azure IoT Hub, and the devices connected to it:<\/p>\n<ul>\n<li>Interact with Azure IoT Hub\n<ul>\n<li>Send D2C messages to IoT Hub<\/li>\n<li>Monitor D2C messages sent to IoT Hub<\/li>\n<li>Send C2D messages to device<\/li>\n<li>Monitor C2D messages sent to device<\/li>\n<li>Invoke Direct Method<\/li>\n<li>View and update device twin<\/li>\n<\/ul>\n<\/li>\n<li>Device management\n<ul>\n<li>List devices<\/li>\n<li>Get device info<\/li>\n<li>Create and delete devices<\/li>\n<\/ul>\n<\/li>\n<li>IoT Edge development support\n<ul>\n<li>Create IoT Edge deployment for device<\/li>\n<li>List modules<\/li>\n<li>View and update module twin<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>To learn more about what the IoT Hub enables and how to use the latest, check out the <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/iot-hub\/\">IoT Hub documentation<\/a>.<\/p>\n<p>Easy to Set Up<\/p>\n<p>After you\u2019ve installed Cloud Explorer, you can open Cloud Explorer view from Visual Studio menu <strong>View -&gt; Cloud Explorer<\/strong>. Sign in to your Azure account by clicking the <strong>Account Management<\/strong> icon if you haven\u2019t done this before.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-222599\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/click-account-management.png\" alt=\"Click Account Management\" width=\"295\" height=\"176\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/click-account-management.png 360w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/click-account-management-300x179.png 300w\" sizes=\"(max-width: 295px) 100vw, 295px\" \/><\/p>\n<p>Expand <strong>Your subscription -&gt; IoT Hubs -&gt; Your IoT Hub<\/strong>, the device list will be shown under your IoT Hub node. Select one IoT Hub or device to inspect its properties or perform actions against the resource.<\/p>\n<p><img decoding=\"async\" class=\"wp-image-222600\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image.png\" width=\"339\" height=\"287\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image.png 400w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-300x254.png 300w\" sizes=\"(max-width: 339px) 100vw, 339px\" \/><\/p>\n<p>Now you have learned how to access your Azure IoT Hub resources.<\/p>\n<h2>Try the Tutorials<\/h2>\n<p>If you want to explore Cloud Explorer features further, we offer the following walkthroughs where you perform common IoT Hub management actions. To explore advanced or specific IoT scenarios, head over to check out our <a href=\"https:\/\/docs.microsoft.com\/en-us\/azure\/iot-hub\/\">IoT Hub documentation<\/a>, where we\u2019re always adding new projects and tutorials.<\/p>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-gb\/azure\/iot-hub\/iot-hub-visual-studio-cloud-device-messaging\">Use Cloud Explorer for Visual Studio to send and receive messages between your device and IoT Hub<\/a><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" class=\"wp-image-222601\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-1.png\" width=\"783\" height=\"297\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-1.png 1138w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-1-300x114.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-1-768x292.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-1-1024x389.png 1024w\" sizes=\"(max-width: 783px) 100vw, 783px\" \/><\/p>\n<ul>\n<li><a href=\"https:\/\/docs.microsoft.com\/en-gb\/azure\/iot-hub\/iot-hub-device-management-visual-studio\">Use Cloud Explorer for Visual Studio for Azure IoT Hub device management<\/a><\/li>\n<\/ul>\n<p style=\"padding-left: 30px;\"><img decoding=\"async\" class=\"wp-image-222602\" src=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-2.png\" width=\"785\" height=\"82\" srcset=\"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-2.png 1217w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-2-300x31.png 300w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-2-768x80.png 768w, https:\/\/devblogs.microsoft.com\/visualstudio\/wp-content\/uploads\/sites\/4\/2019\/01\/word-image-2-1024x107.png 1024w\" sizes=\"(max-width: 785px) 100vw, 785px\" \/><\/p>\n<p>Your feedback is also very important for us to keep improving and making it even easier to develop your IoT applications. Please share your thoughts with us by suggesting a feature or reporting an issue in our <a href=\"https:\/\/developercommunity.visualstudio.com\/\">Developer Community<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>To ensure that the tools you need are close at hand, we\u2019ve updated the Cloud Explorer for Visual Studio extension for IoT developers to enable you to view your Azure IoT Hubs, inspect their properties, and perform other actions from within Visual Studio. Cloud Explorer is installed by default if you selected the Azure Workload when installing Visual Studio. <\/p>\n","protected":false},"author":730,"featured_media":222759,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[1085,155],"tags":[242,382,1371,12],"class_list":["post-222598","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cloud","category-visual-studio","tag-azure","tag-iot","tag-iot-edge","tag-visual-studio"],"acf":[],"blog_post_summary":"<p>To ensure that the tools you need are close at hand, we\u2019ve updated the Cloud Explorer for Visual Studio extension for IoT developers to enable you to view your Azure IoT Hubs, inspect their properties, and perform other actions from within Visual Studio. Cloud Explorer is installed by default if you selected the Azure Workload when installing Visual Studio. <\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/222598","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/users\/730"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/comments?post=222598"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/posts\/222598\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media\/222759"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/media?parent=222598"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/categories?post=222598"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/visualstudio\/wp-json\/wp\/v2\/tags?post=222598"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}