Creating an Azure IoT Hub

45 minutes
  • 2 Learning Objectives

About this Hands-on Lab

The Azure Internet of Things (IoT) is a collection of Microsoft-managed cloud services that connect, monitor, and control billions of IoT assets. All IoT solutions require a cloud gateway for communication between devices and back-end cloud services. Azure’s cloud gateway is called IoT Hub. In this lab, you will have the opportunity to practice the task of creating an IoT hub. You are provided with a set of basic criteria, and you are asked to create two IoT hubs that are configured to meet those criteria. After completing this lab, you will be familiar with creating IoT hubs in the Azure Portal and with the Azure CLI, and you will be ready to proceed to more complex topics.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Create the First IoT Hub
  1. Click the Cloud Shell icon (>_) in the upper-right of the screen.
  2. Click Bash.
  3. Click Show advanced settings, and set the following values:
    • Subscription: Use the lab provided subscription
    • Resource group: Use the lab provided Resource Group
    • Cloud Shell region: Use the same location as the lab provided Resource Group
    • Storage account: Use existing
    • File share: Use existing, and enter cloudshell
  4. Once in the shell, enter the following to create the IoT hub:

    az iot hub create --name "IotHub1-B1-XXXXX" --resource-group <TAB> --sku B1

    XXXXX is the five-character suffix for the lab resources and <TAB> is the Tab key to automatically populate the resource group name.

Create the Second IoT Hub
  1. In the Azure Portal, click + Add to create a new resource.
  2. Search for and select IoT Hub.
  3. For Subscription, use the lab provided subscription.
  4. For Resource group, select the the lab provided Resource Group.
  5. For Region, use the same location as the lab provided Resource Group.
  6. Enter "IoTHub2-S1-XXXXX" as the IoT hub name.
  7. Click Next: Size and scale >.
  8. Select S1: Standard Tier for the Pricing and scale tier.
  9. Keep Number of S1 IoT hub units set to 1.
  10. Keep the Azure Security Center option On.
  11. Click Review + create, and then Create.

Additional Resources

You have recently been hired by Parktronics, a monitoring company that works with local, state, and national park services. They have decided to use Azure IoT to develop a solution that will monitor entry and exit gates to ensure they are closed and locked at closing time.

Your current task is to create two IoT hubs with various settings in order to develop a proof-of-concept solution.

Create two IoT hubs that meet the provided criteria. Create the first IoT hub using the Azure Portal.

IoT Hub 1

This hub will be used for device-to-cloud telemetry only. It will not be required for device management or cloud-to-device commands.

  • Name: IoTHub1-B1-XXXXX, where XXXXX is the five-character suffix for the lab resources. This can be found by looking at the pre-deployed storage account in the lab and noting the last five characters of the name.

To create the second IoT hub, you will be using the Azure CLI. We can access the CLI via:

  1. Click the Cloud Shell icon (>_) in the upper-right of the screen.
  2. Click Bash.
  3. Click Show advanced settings, and set the following values:
    • Subscription: Use the lab provided subscription
    • Resource group: Use the lab provided Resource Group
    • Cloud Shell region: Use the same location as the lab provided Resource Group.
    • Storage account: Use existing
    • File share: Use existing, and enter cloudshell

IoT Hub 2

This hub will be required to facilitate two-way communication between devices and the back-end solution. It will also require Azure Security Center functionality.

  • Name: IoTHub2-S1-XXXXX where XXXXX is the five-character suffix for the lab resources. This can be found by looking at the pre-deployed storage account in the lab and noting the last five characters of the name.

If you get stuck, feel free to check out the solution video or the detailed instructions under each objective. Good luck!

Lab Suffix

Pre-deployed lab resources will all end with a unique five-character suffix. Make note of this suffix, as you may need it when naming resources during the lab.

WARNING: Be Prepared for UI Changes

Given the fluid nature of Microsoft cloud tools, you may experience user interface (UI) changes that were made following the development of this hands-on lab that do not match up with lab instructions. When any such changes are brought to our attention, we will attempt to update the content accordingly. However, if changes occur, students will have to adapt to the changes and work through them in the hands-on labs as needed.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!
Thanks for reaching out!

You’ll hear from us shortly. In the meantime, why not check out what our customers have to say about ACG?