Featured resource
2025 Tech Upskilling Playbook
Tech Upskilling Playbook

Build future-ready tech teams and hit key business milestones with seven proven plays from industry leaders.

Check it out
  • Lab
    • Libraries: If you want this lab, consider one of these libraries.
    • Cloud
Azure icon
Labs

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
Lab platform
Lab Info
Level
Intermediate
Last updated
Sep 21, 2025
Duration
45m

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.
About the author

Pluralsight Skills gives leaders confidence they have the skills needed to execute technology strategy. Technology teams can benchmark expertise across roles, speed up release cycles and build reliable, secure products. By leveraging our expert content, skill assessments and one-of-a-kind analytics, keep up with the pace of change, put the right people on the right projects and boost productivity. It's the most effective path to developing tech skills at scale.

Real skill practice before real-world application

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.

Learn by doing

Engage hands-on with the tools and technologies you’re learning. You pick the skill, we provide the credentials and environment.

Follow your guide

All labs have detailed instructions and objectives, guiding you through the learning process and ensuring you understand every step.

Turn time into mastery

On average, you retain 75% more of your learning if you take time to practice. Hands-on labs set you up for success to make those skills stick.

Get started with Pluralsight