- Lab
-
Libraries: If you want this lab, consider one of these libraries.
- Cloud

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.

Lab Info
Table of Contents
-
Challenge
Create the First IoT Hub
-
Click the Cloud Shell icon (
>_
) in the upper-right of the screen. -
Click Bash.
-
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
-
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.
-
-
Challenge
Create the Second IoT Hub
- In the Azure Portal, click + Add to create a new resource.
- Search for and select IoT Hub.
- For Subscription, use the lab provided subscription.
- For Resource group, select the the lab provided Resource Group.
- For Region, use the same location as the lab provided Resource Group.
- Enter "IoTHub2-S1-XXXXX" as the IoT hub name.
- Click Next: Size and scale >.
- Choose Public Endpoint (All Networks)
- Select S1: Standard Tier for the Pricing and scale tier.
- Keep Number of S1 IoT hub units set to 1.
- Keep the Defender for iot option On.
- Click Review + create, and then Create.
- Note: A log analytics workspace is no longer automatically created.
About the author
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.