官术网_书友最值得收藏!

How to do it...

In this section, let's look at creating an IoT Hub using CLI:

  1. Open the Command Prompt within administrator mode.
  2. Use the login command in Command Prompt:
azure login
  1. It will ask you to login using a web browser with the link displayed in the Command Prompt:
Login command
  1. The web link will validate the code generated in Command Prompt:
Login authenticate through web
  1. 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
  1. Now, select the account with which you want to work and create the IoT Hub:
azure account set “Visual Studio Enterprise”
Select Azure account
  1. Now, we need to create a resource group, which this IoT Hub will be a part of:
azure group create -n MyBookIoTHub -l westus
  1. 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.

主站蜘蛛池模板: 海城市| 涡阳县| 乐安县| 临澧县| 南丹县| 鹤峰县| 闽侯县| 广宗县| 石林| 博乐市| 仁怀市| 贵溪市| 壤塘县| 工布江达县| 凤庆县| 永年县| 宣恩县| 保靖县| 新营市| 嫩江县| 温州市| 和平县| 成武县| 舞钢市| 政和县| 克什克腾旗| 凤城市| 黄冈市| 延寿县| 广州市| 通化县| 兴文县| 东乌珠穆沁旗| 军事| 张掖市| 崇仁县| 镇赉县| 桃江县| 奉节县| 定兴县| 大名县|