{"id":1568,"date":"2020-02-16T19:34:36","date_gmt":"2020-02-16T19:34:36","guid":{"rendered":"https:\/\/wordpress-634681-2064240.cloudwaysapps.com\/?p=1568"},"modified":"2020-03-30T14:21:52","modified_gmt":"2020-03-30T14:21:52","slug":"azure-iot-edge-devops-part2","status":"publish","type":"post","link":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/","title":{"rendered":"Azure DevOps with Azure IoT Edge and the Raspberry Pi – Part 2 – Creating an IoT Hub and Edge Device"},"content":{"rendered":"\n

This is Part 2 of an 8 part series in getting Azure IoT Edge setup with the Raspberry Pi. <\/strong><\/em>

You can read the other parts here…

Part 1 – Setting up Raspbian Buster<\/a><\/strong><\/em>
Part 3 – Creating an Azure DevOps Organisation, Project, Settings, et<\/a><\/strong>c<\/strong><\/a><\/em>
Part 4<\/strong><\/em> – Setting up the Azure IoT Edge Device Pi<\/em><\/strong><\/a>
Part 5 – Setting up the Azure IoT Edge Build Pi<\/a><\/em><\/strong>
Part 6 – Creating an Azure Container Registry<\/em><\/strong><\/a>
Part 7 – Download the Azure DevOps Project Source Code<\/a><\/em><\/strong> <\/p>\n\n\n\n

Contents<\/h2>\n\n\n\n

In this post we’ll run through getting Raspbian Buster set up on two Raspberry Pi’s ready to get Azure IoT Edge up and running.

<\/strong><\/em>
What we’ll be doing<\/a><\/em><\/strong>
<\/p>\n\n\n\n

What we’ll be doing<\/h2>\n\n\n\n

In the previous post<\/a>, we got two Raspberry Pis setup with Buster. We configured the two Pis to suit our needs, one as a Build Agent and another as an actual Azure IoT Edge Device.<\/p>\n\n\n\n

In this post we’ll create an Azure IoT Hub<\/a> and add an IoT Edge<\/a> Device to it.<\/p>\n\n\n\n

1: Create an IoT Hub<\/h2>\n\n\n\n

Firstly, go to the Azure Portal<\/a> at https:\/\/portal.azure.com<\/a> and login with your Microsoft credentials.<\/p>\n\n\n\n

You can create a Free Trial Account here<\/a> if you don’t already have one. <\/p>\n\n\n\n

Once you’re logged in, create a new IoT Hub by clicking the “Add Resource” button and typing “IoT Hub” into the “Search for a resource<\/em><\/strong>” box.<\/p>\n\n\n\n

\"\"
Create an IoT Hub<\/figcaption><\/figure>\n\n\n\n

Clicking the IoT Hub suggestion will take you to the page to begin creating your IoT Hub.<\/p>\n\n\n\n

Choose a Subscription, create or reuse a Resource Group, Region. Choose a suitable name and hit the “Next: Size and Scale ><\/em><\/strong>” Button.<\/p>\n\n\n\n

\"\"
Subscription, Resource Group, Region and Name<\/figcaption><\/figure>\n\n\n\n

Next, if you haven’t already used one, you can choose the Free Tier for the IoT Hub. You can only have one Free IoT Hub per subscription, so if you’ve used one already, then choose the “S1 Standard<\/em><\/strong>” tier.<\/p>\n\n\n\n

\"\"<\/a><\/figure>\n\n\n\n

Next, hit the “Review and Create” button, check that everything is in order, before clicking the final “Next” Button.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

You can now patiently wait for you IoT Hub to be created. Once it’s done, click the “Go to Resource<\/em><\/strong>” button to go to your IoT Hub.<\/p>\n\n\n\n

\"\"<\/figure>\n\n\n\n

2: Adding an IoT Edge Device<\/h2>\n\n\n\n

Along the left hand edge will be all of the options for the IoT Hub. In the “Automatic Device Management” section click the “IoT Edge” link.<\/p>\n\n\n\n

This screen will list your existing IoT Edge devices if you have any. Click the “Add an IoT Edge Device<\/em><\/strong>” button at the top of the screen.<\/p>\n\n\n\n

On the “Create a Device<\/em><\/strong>” screen, choose a “Device ID<\/em><\/strong>” for your IoT Edge Device such as “iotedgedevice<\/em><\/strong>“, leaving the remaining settings as default.<\/p>\n\n\n\n

Hitting the “Save<\/em><\/strong>” button will create your IoT Edge Device and return you to the list of IoT Edge Devices.<\/p>\n\n\n\n

\"\"<\/a>
Add an IoT Edge Device<\/figcaption><\/figure>\n\n\n\n

To be continued….<\/h2>\n\n\n\n

In the next blog post<\/a> we’ll create a new Azure DevOps Organisation and Project ready to house our DevOps CICD pipeline.<\/p>\n\n\n\n

Creating an IoT Hub and Edge Device ><\/strong><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"

This is Part 2 of an 8 part series in getting Azure IoT Edge setup with the Raspberry Pi. You…<\/p>\n","protected":false},"author":1,"featured_media":1570,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[5],"tags":[15,16,11,13],"acf":[],"aioseo_notices":[],"yoast_head":"\nAzure DevOps with Azure IoT Edge and the Raspberry Pi - Part 2 - Creating an IoT Hub and Edge Device - Pete Codes<\/title>\n<meta name=\"description\" content=\"In this series of posts, we get two Raspberry Pis setup along with the Azure Resources needed for a full Azure Devops IoT Pipeline.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Azure DevOps with Azure IoT Edge and the Raspberry Pi - Part 2 - Creating an IoT Hub and Edge Device - Pete Codes\" \/>\n<meta property=\"og:description\" content=\"In this series of posts, we get two Raspberry Pis setup along with the Azure Resources needed for a full Azure Devops IoT Pipeline.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/\" \/>\n<meta property=\"og:site_name\" content=\"Pete Codes\" \/>\n<meta property=\"article:published_time\" content=\"2020-02-16T19:34:36+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-03-30T14:21:52+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1280\" \/>\n\t<meta property=\"og:image:height\" content=\"720\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"PeteCodes\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"PeteCodes\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/\"},\"author\":{\"name\":\"PeteCodes\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/c2f636f242b064676ae61ed0022b32e7\"},\"headline\":\"Azure DevOps with Azure IoT Edge and the Raspberry Pi – Part 2 – Creating an IoT Hub and Edge Device\",\"datePublished\":\"2020-02-16T19:34:36+00:00\",\"dateModified\":\"2020-03-30T14:21:52+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/\"},\"wordCount\":517,\"publisher\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png\",\"keywords\":[\"Azure\",\"DevOps\",\"IoT\",\"Raspberry Pi\"],\"articleSection\":[\"Blog\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/\",\"url\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/\",\"name\":\"Azure DevOps with Azure IoT Edge and the Raspberry Pi - Part 2 - Creating an IoT Hub and Edge Device - Pete Codes\",\"isPartOf\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png\",\"datePublished\":\"2020-02-16T19:34:36+00:00\",\"dateModified\":\"2020-03-30T14:21:52+00:00\",\"description\":\"In this series of posts, we get two Raspberry Pis setup along with the Azure Resources needed for a full Azure Devops IoT Pipeline.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#primaryimage\",\"url\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png\",\"contentUrl\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png\",\"width\":1280,\"height\":720},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.petecodes.co.uk\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Azure DevOps with Azure IoT Edge and the Raspberry Pi – Part 2 – Creating an IoT Hub and Edge Device\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#website\",\"url\":\"https:\/\/www.petecodes.co.uk\/\",\"name\":\"Pete Codes\",\"description\":\"Pete Gallagher - Developer and Public Speaker\",\"publisher\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.petecodes.co.uk\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#organization\",\"name\":\"Pete Codes\",\"url\":\"https:\/\/www.petecodes.co.uk\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/06\/Logo-Small-Optimised.png\",\"contentUrl\":\"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/06\/Logo-Small-Optimised.png\",\"width\":189,\"height\":100,\"caption\":\"Pete Codes\"},\"image\":{\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/c2f636f242b064676ae61ed0022b32e7\",\"name\":\"PeteCodes\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/969dc1e441e755dd7d1f90da569dc913?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/969dc1e441e755dd7d1f90da569dc913?s=96&d=mm&r=g\",\"caption\":\"PeteCodes\"},\"sameAs\":[\"https:\/\/wordpress-634681-2064240.cloudwaysapps.com\"],\"url\":\"https:\/\/www.petecodes.co.uk\/author\/admin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Azure DevOps with Azure IoT Edge and the Raspberry Pi - Part 2 - Creating an IoT Hub and Edge Device - Pete Codes","description":"In this series of posts, we get two Raspberry Pis setup along with the Azure Resources needed for a full Azure Devops IoT Pipeline.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/","og_locale":"en_US","og_type":"article","og_title":"Azure DevOps with Azure IoT Edge and the Raspberry Pi - Part 2 - Creating an IoT Hub and Edge Device - Pete Codes","og_description":"In this series of posts, we get two Raspberry Pis setup along with the Azure Resources needed for a full Azure Devops IoT Pipeline.","og_url":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/","og_site_name":"Pete Codes","article_published_time":"2020-02-16T19:34:36+00:00","article_modified_time":"2020-03-30T14:21:52+00:00","og_image":[{"width":1280,"height":720,"url":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png","type":"image\/png"}],"author":"PeteCodes","twitter_card":"summary_large_image","twitter_misc":{"Written by":"PeteCodes","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#article","isPartOf":{"@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/"},"author":{"name":"PeteCodes","@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/c2f636f242b064676ae61ed0022b32e7"},"headline":"Azure DevOps with Azure IoT Edge and the Raspberry Pi – Part 2 – Creating an IoT Hub and Edge Device","datePublished":"2020-02-16T19:34:36+00:00","dateModified":"2020-03-30T14:21:52+00:00","mainEntityOfPage":{"@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/"},"wordCount":517,"publisher":{"@id":"https:\/\/www.petecodes.co.uk\/#organization"},"image":{"@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png","keywords":["Azure","DevOps","IoT","Raspberry Pi"],"articleSection":["Blog"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/","url":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/","name":"Azure DevOps with Azure IoT Edge and the Raspberry Pi - Part 2 - Creating an IoT Hub and Edge Device - Pete Codes","isPartOf":{"@id":"https:\/\/www.petecodes.co.uk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#primaryimage"},"image":{"@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#primaryimage"},"thumbnailUrl":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png","datePublished":"2020-02-16T19:34:36+00:00","dateModified":"2020-03-30T14:21:52+00:00","description":"In this series of posts, we get two Raspberry Pis setup along with the Azure Resources needed for a full Azure Devops IoT Pipeline.","breadcrumb":{"@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#primaryimage","url":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png","contentUrl":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/02\/02-DevOps-in-an-IoT-World-Part-2-Creating-IoT-Hub-and-Edge.png","width":1280,"height":720},{"@type":"BreadcrumbList","@id":"https:\/\/www.petecodes.co.uk\/azure-iot-edge-devops-part2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.petecodes.co.uk\/"},{"@type":"ListItem","position":2,"name":"Azure DevOps with Azure IoT Edge and the Raspberry Pi – Part 2 – Creating an IoT Hub and Edge Device"}]},{"@type":"WebSite","@id":"https:\/\/www.petecodes.co.uk\/#website","url":"https:\/\/www.petecodes.co.uk\/","name":"Pete Codes","description":"Pete Gallagher - Developer and Public Speaker","publisher":{"@id":"https:\/\/www.petecodes.co.uk\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.petecodes.co.uk\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.petecodes.co.uk\/#organization","name":"Pete Codes","url":"https:\/\/www.petecodes.co.uk\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/logo\/image\/","url":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/06\/Logo-Small-Optimised.png","contentUrl":"https:\/\/www.petecodes.co.uk\/wp-content\/uploads\/2020\/06\/Logo-Small-Optimised.png","width":189,"height":100,"caption":"Pete Codes"},"image":{"@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/c2f636f242b064676ae61ed0022b32e7","name":"PeteCodes","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.petecodes.co.uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/969dc1e441e755dd7d1f90da569dc913?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/969dc1e441e755dd7d1f90da569dc913?s=96&d=mm&r=g","caption":"PeteCodes"},"sameAs":["https:\/\/wordpress-634681-2064240.cloudwaysapps.com"],"url":"https:\/\/www.petecodes.co.uk\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/posts\/1568"}],"collection":[{"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/comments?post=1568"}],"version-history":[{"count":0,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/posts\/1568\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/media\/1570"}],"wp:attachment":[{"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/media?parent=1568"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/categories?post=1568"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.petecodes.co.uk\/wp-json\/wp\/v2\/tags?post=1568"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}