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

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.

主站蜘蛛池模板: 宁远县| 安康市| 进贤县| 奇台县| 永泰县| 常德市| 四会市| 旺苍县| 剑川县| 牟定县| 筠连县| 盖州市| 紫云| 民丰县| 区。| 马尔康县| 万州区| 南平市| 阿巴嘎旗| 哈巴河县| 手机| 华容县| 石景山区| 剑河县| 重庆市| 德安县| 无为县| 华蓥市| 多伦县| 利川市| 金平| 绍兴市| 潮安县| 额敏县| 阿拉善左旗| 宁城县| 新干县| 甘孜县| 奎屯市| 涞水县| 大石桥市|