Create an IoT hub using the Azure IoT Tools for Visual Studio Code

This article shows you how to use the Azure IoT Tools for Visual Studio Code to create an Azure IoT hub.

Note

This article has been updated to use the new Azure PowerShell Az module. You can still use the AzureRM module, which will continue to receive bug fixes until at least December 2020. To learn more about the new Az module and AzureRM compatibility, see Introducing the new Azure PowerShell Az module. For Az module installation instructions, see Install Azure PowerShell.

To complete this article, you need the following:

Create an IoT hub

  1. In Visual Studio Code, open the Explorer view.

  2. At the bottom of the Explorer, expand the Azure IoT Hub Devices section.

    Expand Azure IoT Hub Devices

  3. Click on the ... in the Azure IoT Hub Devices section header. If you don't see the ellipsis, hover over the header.

  4. Choose Create IoT Hub.

  5. A pop-up will show in the bottom right corner to let you sign in to Azure for the first time.

  6. Select Azure subscription.

  7. Select resource group.

  8. Select location.

  9. Select pricing tier.

  10. Enter a globally unique name for your IoT Hub.

  11. Wait a few minutes until the IoT Hub is created.

Next steps

Now you have deployed an IoT hub using the Azure IoT Tools for Visual Studio Code. To explore further, check out the following articles: