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

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.

主站蜘蛛池模板: 清远市| 普兰店市| 云和县| 乐至县| 清水县| 锡林郭勒盟| 东港市| 临潭县| 泾川县| 商丘市| 阳原县| 尖扎县| 邓州市| 台南市| 贵溪市| 固阳县| 丹寨县| 四会市| 铁岭县| 巧家县| 安国市| 永善县| 阿巴嘎旗| 万安县| 沙坪坝区| 阿尔山市| 临沂市| 澄江县| 张北县| 巴林左旗| 广昌县| 武义县| 怀化市| 中牟县| 旬阳县| 北安市| 凤台县| 横峰县| 宁明县| 内江市| 麦盖提县|