- 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.
推薦閱讀
- Android和PHP開(kāi)發(fā)最佳實(shí)踐(第2版)
- Java從入門(mén)到精通(第5版)
- Elastic Stack應(yīng)用寶典
- Scratch 3游戲與人工智能編程完全自學(xué)教程
- Mastering ServiceNow(Second Edition)
- Active Directory with PowerShell
- FPGA Verilog開(kāi)發(fā)實(shí)戰(zhàn)指南:基于Intel Cyclone IV(進(jìn)階篇)
- C#開(kāi)發(fā)案例精粹
- 圖數(shù)據(jù)庫(kù)實(shí)戰(zhàn)
- Visual Basic程序設(shè)計(jì)(第三版)
- JavaScript+jQuery網(wǎng)頁(yè)特效設(shè)計(jì)任務(wù)驅(qū)動(dòng)教程
- Orchestrating Docker
- Angular應(yīng)用程序開(kāi)發(fā)指南
- Node.js實(shí)戰(zhàn):分布式系統(tǒng)中的后端服務(wù)開(kāi)發(fā)
- Learning WordPress REST API