- Lab
- A Cloud Guru
Create Azure IoT Hubs by Two Different Methods
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 backend 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 2 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.
Path Info
Table of Contents
-
Challenge
Create Azure IoT Hub #1
See the Additional Resources section of this lab to read the context and technical requirements for this hub.
- Log in to the Azure portal, in anInPrivate or incognito window, using the credentials provided with this lab.
- Take note of the location of the resource group automatically created for you in the lab environment
- Navigate the portal to begin creating a new Azure IoT Hub.
- Once in the Hub creation forms, use the lab-defined subscription and resource group already created.
- For Region, use the same location as the resource group location you noted in the second step, above.
- Give your hub a universally unique name. See the Additional Resources section for tips on naming.
- When prompted, choose Public Endpoint (All Networks), versus private.
- Select the correct Pricing and scale tier to fulfill the requirements described in the Additional Resources section of this lab. Do not use the Free tier. Choose between Standard and Basic.
- Set IoT hub units to the number of units that will fulfill the requirements described in the Additional Resources section of this lab.
- Enable Defender for IoT .
- Review your settings and create the hub, confirming that it deployed successfully. (This may take a few minutes.)
-
Challenge
Create Azure IoT Hub #2
See the Additional Resources section of this lab to read the context and technical requirements for this hub.
- Remain in the Azure portal or return to the portal, in an in-private or incognito window, using the credentials provided with this lab.
- Take note of the location of the resource group automatically created for you in the lab environment.
- Copy the name of the resource group for the lab into a text document for use in creating the hub.
- Open the Cloud Shell terminal window within the Azure portal.
- Click Bash and then Show advanced settings
- Leave defaults in place or choose the 1 available resource for Subscription, Resource group, and Region
- Create a universally unique name for Storage account. See the Additional Resources section for tips on naming.
- For File share, enter cloudshell.
- Once in the shell, confirm that you are using Bash and not PowerShell.
- Using the Azure CLI, execute a command to create a uniquely named hub in the same resource group and region as your first hub. Also, ensure the hub is set up with the correct SKU (tier and edition) and scale units required to fulfill the requirements described in the Additional Resources section of this lab. Do not use the Free tier. Choose between Standard and Basic. See links in the Additional Resources for the Azure CLI reference and hub SKU calculations.
- Once the deployment is complete in the terminal, go back to the resource group Overview page in the portal to confirm that you now have 2 hubs created. (You may need to refresh.)
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.