書名: Azure IoT Development Cookbook作者名: Yatish Patil本章字?jǐn)?shù): 193字更新時(shí)間: 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.
推薦閱讀
- 工程軟件開發(fā)技術(shù)基礎(chǔ)
- Learn Type:Driven Development
- Java EE 6 企業(yè)級(jí)應(yīng)用開發(fā)教程
- Scala Design Patterns
- Visual C++串口通信技術(shù)詳解(第2版)
- 鋒利的SQL(第2版)
- Python機(jī)器學(xué)習(xí)基礎(chǔ)教程
- 飛槳PaddlePaddle深度學(xué)習(xí)實(shí)戰(zhàn)
- 一塊面包板玩轉(zhuǎn)Arduino編程
- 軟件測(cè)試教程
- QGIS Python Programming Cookbook(Second Edition)
- Modern C++ Programming Cookbook
- Instant Debian:Build a Web Server
- OpenCV 3 Blueprints
- 3ds Max印象 電視欄目包裝動(dòng)畫與特效制作