Skip to content

Commit f54446f

Browse files
committedMay 7, 2021
refactoring
1 parent 1b93415 commit f54446f

13 files changed

+159
-152
lines changed
 

‎articles/iot-hub/iot-hub-arduino-iot-devkit-az3166-get-started.md

Lines changed: 106 additions & 147 deletions
Large diffs are not rendered by default.

‎articles/iot-hub/iot-hub-create-use-iot-toolkit.md

Lines changed: 53 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,69 @@ To complete this article, you need the following:
2323

2424
- [Visual Studio Code](https://code.visualstudio.com/)
2525

26-
- [Azure IoT Tools](https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-tools) for Visual Studio Code.
26+
- [Azure IoT Tools](https://marketplace.visualstudio.com/items?itemName=vsciot-vscode.azure-iot-tools) installed for Visual Studio Code.
2727

28-
## Create an IoT hub
28+
29+
## Create an IoT hub and device in an IoT Project
30+
31+
The following steps show how you can create an IoT Hub and register a device to the hub within an IoT Project in Visual Studio Code.
32+
33+
Instead of provisioning an Azure IoT Hub and device from the Azure portal. You can do it in the VS Code without leaving the development environment. The steps in this section show how to do this.
34+
35+
1. In the new opened project window, click `F1` to open the command palette, type and select **Azure IoT Device Workbench: Provision Azure Services...**. Follow the step-by-step guide to finish provisioning your Azure IoT Hub and creating the IoT Hub device.
36+
37+
![Provision command](media/iot-hub-create-use-iot-toolkit/provision.png)
38+
39+
> [!NOTE]
40+
> If you have not signed in Azure. Follow the pop-up notification for signing in.
41+
42+
1. Select the subscription you want to use.
43+
44+
![Select sub](media/iot-hub-create-use-iot-toolkit/select-subscription.png)
45+
46+
1. Then select and existing resource group or create a new [resource group](../azure-resource-manager/management/overview.md#terminology).
47+
48+
![Select resource group](media/iot-hub-create-use-iot-toolkit/select-resource-group.png)
49+
50+
1. In the resource group you specified, follow the prompts to select an existing IoT Hub or create a new Azure IoT Hub.
51+
52+
![Select IoT Hub steps](media/iot-hub-create-use-iot-toolkit/iot-hub-provision.png)
53+
54+
![Select IoT Hub](media/iot-hub-create-use-iot-toolkit/select-iot-hub.png)
55+
56+
![Selected IoT Hub](media/iot-hub-create-use-iot-toolkit/iot-hub-selected.png)
57+
58+
1. In the output window, you will see the Azure IoT Hub provisioned.
59+
60+
![IoT Hub Provisioned](media/iot-hub-create-use-iot-toolkit/iot-hub-provisioned.png)
61+
62+
1. Select or create a new IoT Hub Device in the Azure IoT Hub you provisioned.
63+
64+
![Select IoT Device steps](media/iot-hub-create-use-iot-toolkit/iot-device-provision.png)
65+
66+
![Select IoT Device Provisioned](media/iot-hub-create-use-iot-toolkit/select-iot-device.png)
67+
68+
1. Now you have Azure IoT Hub provisioned and device created in it. Also the device connection string will be saved in VS Code.
69+
70+
![Provision done](media/iot-hub-create-use-iot-toolkit/provision-done.png)
71+
72+
73+
74+
## Create an IoT hub without an IoT Project
75+
76+
The following steps show how you can create an IoT Hub without an IoT Project in Visual Studio Code.
2977

3078
1. In Visual Studio Code, open the **Explorer** view.
3179

32-
2. At the bottom of the Explorer, expand the **Azure IoT Hub Devices** section.
80+
2. At the bottom of the Explorer, expand the **Azure IoT Hub** section.
3381

3482
![Expand Azure IoT Hub Devices](./media/iot-hub-create-use-iot-toolkit/azure-iot-hub-devices.png)
3583

36-
3. Click on the **...** in the **Azure IoT Hub Devices** section header. If you don't see the ellipsis, hover over the header.
84+
3. Click on the **...** in the **Azure IoT Hub** section header. If you don't see the ellipsis, hover over the header.
3785

3886
4. Choose **Create IoT Hub**.
3987

40-
5. A pop-up will show in the bottom right corner to let you sign in to Azure for the first time.
88+
5. A pop-up will show in the bottom-right corner to let you sign in to Azure for the first time.
4189

4290
6. Select Azure subscription.
4391

Loading

0 commit comments

Comments
 (0)