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

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.

主站蜘蛛池模板: 孟津县| 广灵县| 高雄县| 郎溪县| 遂昌县| 定兴县| 大竹县| 崇明县| 璧山县| 东城区| 芦山县| 额敏县| 汉源县| 满城县| 汝城县| 乌审旗| 龙南县| 吐鲁番市| 苏州市| 大丰市| 洮南市| 宜丰县| 澄迈县| 贵定县| 龙胜| 屯门区| 岚皋县| 靖西县| 那曲县| 庆城县| 巴里| 林芝县| 临城县| 阳泉市| 靖边县| 淮滨县| 汉川市| 安义县| 鲁山县| 濉溪县| 安吉县|