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
Labs

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.

Azure icon
Labs

Path Info

Level
Clock icon Beginner
Duration
Clock icon 45m
Published
Clock icon Feb 25, 2022

Contact sales

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

Table of Contents

  1. Challenge

    Create Azure IoT Hub #1

    See the Additional Resources section of this lab to read the context and technical requirements for this hub.

    1. Log in to the Azure portal, in anInPrivate or incognito window, using the credentials provided with this lab.
    2. Take note of the location of the resource group automatically created for you in the lab environment
    3. Navigate the portal to begin creating a new Azure IoT Hub.
    4. Once in the Hub creation forms, use the lab-defined subscription and resource group already created.
    5. For Region, use the same location as the resource group location you noted in the second step, above.
    6. Give your hub a universally unique name. See the Additional Resources section for tips on naming.
    7. When prompted, choose Public Endpoint (All Networks), versus private.
    8. 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.
    9. Set IoT hub units to the number of units that will fulfill the requirements described in the Additional Resources section of this lab.
    10. Enable Defender for IoT .
    11. Review your settings and create the hub, confirming that it deployed successfully. (This may take a few minutes.)
  2. Challenge

    Create Azure IoT Hub #2

    See the Additional Resources section of this lab to read the context and technical requirements for this hub.

    1. Remain in the Azure portal or return to the portal, in an in-private or incognito window, using the credentials provided with this lab.
    2. Take note of the location of the resource group automatically created for you in the lab environment.
    3. Copy the name of the resource group for the lab into a text document for use in creating the hub.
    4. Open the Cloud Shell terminal window within the Azure portal.
    5. Click Bash and then Show advanced settings
    6. Leave defaults in place or choose the 1 available resource for Subscription, Resource group, and Region
    7. Create a universally unique name for Storage account. See the Additional Resources section for tips on naming.
    8. For File share, enter cloudshell.
    9. Once in the shell, confirm that you are using Bash and not PowerShell.
    10. 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.
    11. 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.)

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