Skip to content

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.
  • Labs icon Lab
  • A Cloud Guru
Azure icon

Creating an Azure IoT Hub

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.

Azure icon

Path Info

Clock icon Intermediate
Clock icon 45m
Clock icon Apr 24, 2020

Contact sales

By filling out this form and clicking submit, you acknowledge our privacy policy.

Table of Contents

  1. Challenge

    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.

  2. Challenge

    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. Choose Public Endpoint (All Networks)
    9. Select S1: Standard Tier for the Pricing and scale tier.
    10. Keep Number of S1 IoT hub units set to 1.
    11. Keep the Defender for iot option On.
    12. Click Review + create, and then Create.
    13. Note: A log analytics workspace is no longer automatically created.

The Cloud Content team comprises subject matter experts hyper focused on services offered by the leading cloud vendors (AWS, GCP, and Azure), as well as cloud-related technologies such as Linux and DevOps. The team is thrilled to share their knowledge to help you build modern tech solutions from the ground up, secure and optimize your environments, and so much more!

What's a lab?

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.

Provided environment for hands-on practice

We will provide the credentials and environment necessary for you to practice right within your browser.

Guided walkthrough

Follow along with the author’s guided walkthrough and build something new in your provided environment!

Did you know?

On average, you retain 75% more of your learning if you get time for practice.

Start learning by doing today

View Plans