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

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.

主站蜘蛛池模板: 武平县| 定南县| 德令哈市| 柘荣县| 克东县| 彩票| 依兰县| 灵宝市| 宜城市| 盖州市| 苗栗县| 那坡县| 清水河县| 固阳县| 信阳市| 梓潼县| 新竹市| 墨竹工卡县| 冕宁县| 军事| 北宁市| 宾阳县| 兴海县| 永清县| 西丰县| 鄂尔多斯市| 新丰县| 徐闻县| 吉安市| 库伦旗| 和平区| 涟源市| 广饶县| 扶余县| 高雄县| 新丰县| 林口县| 河曲县| 康保县| 米脂县| 桃江县|