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

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.

主站蜘蛛池模板: 东兴市| 六枝特区| 阳春市| 虹口区| 喀什市| 虹口区| 翁源县| 叶城县| 铁岭县| 镇远县| 睢宁县| 临江市| 香河县| 伊金霍洛旗| 河北省| 汉寿县| 万州区| 托克逊县| 临清市| 电白县| 瑞丽市| 鹿泉市| 栾城县| 忻州市| 抚州市| 信阳市| 石棉县| 玛纳斯县| 彰武县| 蚌埠市| 英山县| 和田市| 高雄市| 油尖旺区| 德保县| 马山县| 潼南县| 石狮市| 正镶白旗| 包头市| 江门市|