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.
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:
An Azure subscription. If you don't have an Azure subscription, create a free account before you begin.
Azure IoT Tools for Visual Studio Code.
Create an IoT hub
In Visual Studio Code, open the Explorer view.
At the bottom of the Explorer, expand the Azure IoT Hub Devices section.
Click on the ... in the Azure IoT Hub Devices section header. If you don't see the ellipsis, hover over the header.
Choose Create IoT Hub.
A pop-up will show in the bottom right corner to let you sign in to Azure for the first time.
Select Azure subscription.
Select resource group.
Select pricing tier.
Enter a globally unique name for your IoT Hub.
Wait a few minutes until the IoT Hub is created.
Now you have deployed an IoT hub using the Azure IoT Tools for Visual Studio Code. To explore further, check out the following articles:
Send feedback about: