- Azure IoT Development Cookbook
- Yatish Patil
- 193字
- 2021-07-02 20:50:31
How to do it...
In this section, let's look at creating an IoT Hub using CLI:
- Open the Command Prompt within administrator mode.
- Use the login command in Command Prompt:
azure login
- It will ask you to login using a web browser with the link displayed in the Command Prompt:

Login command
- The web link will validate the code generated in Command Prompt:

Login authenticate through web
- Once you successfully log in, it will show a message on the browser and you can go back to the Command Prompt for your work:

Login validated successfully
- Now, select the account with which you want to work and create the IoT Hub:
azure account set “Visual Studio Enterprise”

Select Azure account
- Now, we need to create a resource group, which this IoT Hub will be a part of:
azure group create -n MyBookIoTHub -l westus
- We use the following command to create a new IoT Hub using the Command Prompt:
azure iothub create -g MyBookIoTHub -n MyBookIoTHub -l westus -k s1 -u 1
In the preceding create IoT Hub command, the parameters are resource group, IoT Hub name, location, instance size, and unit.
推薦閱讀
- OpenDaylight Cookbook
- 編程卓越之道(卷3):軟件工程化
- INSTANT Sencha Touch
- 算法精粹:經(jīng)典計算機(jī)科學(xué)問題的Python實現(xiàn)
- Visual Basic程序設(shè)計教程
- Hands-On JavaScript High Performance
- 零基礎(chǔ)學(xué)Java(第4版)
- Java應(yīng)用開發(fā)技術(shù)實例教程
- Android驅(qū)動開發(fā)權(quán)威指南
- Python函數(shù)式編程(第2版)
- Android高級開發(fā)實戰(zhàn):UI、NDK與安全
- 軟件測試技術(shù)
- 零基礎(chǔ)學(xué)編程系列(全5冊)
- Go語言編程之旅:一起用Go做項目
- The Python Apprentice