You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
title: Create an Azure IoT Hub using Azure IoT Tools for VS Code | Microsoft Docs
2
+
title: Create an Azure IoT Hub using Azure IoT Tools for Visual Studio Code | Microsoft Docs
3
3
description: Learn how to use the Azure IoT tools for Visual Studio Code to create an Azure IoT hub in a resource group.
4
4
author: formulahendry
5
5
ms.service: iot-hub
@@ -31,35 +31,35 @@ The following steps show how to create an IoT Hub without an IoT Project in Visu
31
31
32
32
1. In VS Code, open the **Explorer** view.
33
33
34
-
2. At the bottom of the Explorer, expand the **Azure IoT Hub** section.
34
+
2. At the bottom of the Explorer, expand the **Azure IoT Hub** section.
35
35
36
-
:::image type="content" source="./media/iot-hub-create-use-iot-toolkit/azure-iot-hub-devices.png" alt-text="A screenshot that shows the location of the Azure IoT Hub section in VS Code." lightbox="./media/iot-hub-create-use-iot-toolkit/azure-iot-hub-devices.png":::
36
+
:::image type="content" source="./media/iot-hub-create-use-iot-toolkit/azure-iot-hub-devices.png" alt-text="A screenshot that shows the location of the Azure IoT Hub section in Visual Studio Code." lightbox="./media/iot-hub-create-use-iot-toolkit/azure-iot-hub-devices.png":::
37
37
38
-
3. Select **Create IoT Hub** from the list in the **Azure IoT Hub** section.
38
+
3. Select **Create IoT Hub** from the list in the **Azure IoT Hub** section.
39
39
40
-
:::image type="content" source="./media/iot-hub-create-use-iot-toolkit/create-iot-hub.png" alt-text="A screenshot that shows the location of the Create IoT Hub list item in VS Code." lightbox="./media/iot-hub-create-use-iot-toolkit/create-iot-hub.png":::
40
+
:::image type="content" source="./media/iot-hub-create-use-iot-toolkit/create-iot-hub.png" alt-text="A screenshot that shows the location of the Create IoT Hub list item in Visual Studio Code." lightbox="./media/iot-hub-create-use-iot-toolkit/create-iot-hub.png":::
41
41
42
-
5. A pop-up will show in the bottom-right corner to let you sign in to Azure for the first time, if you're not signed in already.
42
+
4. A pop-up shows in the bottom-right corner to let you sign in to Azure for the first time, if you're not signed in already.
43
43
44
-
6. From the command palette at the top of VS Code, select your Azure subscription.
44
+
5. From the command palette at the top of VS Code, select your Azure subscription.
45
45
46
-
7. Select your resource group.
46
+
6. Select your resource group.
47
47
48
-
8. Select a location.
48
+
7. Select a location.
49
49
50
-
9. Select a pricing tier.
50
+
8. Select a pricing tier.
51
51
52
-
10. Enter a globally unique name for your IoT hub, then press **Enter**.
52
+
9. Enter a globally unique name for your IoT hub, then press **Enter**.
53
53
54
-
11. Wait a few minutes until the IoT hub is created. You'll see a confirmation in the output console.
54
+
10. Wait a few minutes until the IoT hub is created. You'll see a confirmation in the output console.
55
55
56
56
## Create an IoT hub and device in an existing IoT project
57
57
58
58
The following steps show how to create an IoT Hub and register a device to the hub within an existing IoT project in Visual Studio (VS) Code.
59
59
60
-
This method allows you to provision in VS Code without leaving your development environment.
60
+
This method allows you to provision in Visual Studio Code without leaving your development environment.
61
61
62
-
1. In the new opened project window, click`F1` to open the command palette, type and select **Azure IoT Device Workbench: Provision Azure Services...**.
62
+
1. In the new opened project window, press`F1` to open the command palette, type and select **Azure IoT Device Workbench: Provision Azure Services...**.
63
63
64
64
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/provision.png" alt-text="A screenshot that shows how to open the command palette in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/provision.png":::
65
65
@@ -68,43 +68,43 @@ This method allows you to provision in VS Code without leaving your development
68
68
69
69
1. Select the subscription you want to use.
70
70
71
-
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/select-subscription.png" alt-text="A screenshot that shows how to choose your Azure subscription in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/select-subscription.png":::
71
+
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/select-subscription.png" alt-text="A screenshot that shows how to choose your Azure subscription in Visual Studio Code." lightbox="media/iot-hub-create-use-iot-toolkit/select-subscription.png":::
72
72
73
73
1. Select an existing resource group or create a new [resource group](../azure-resource-manager/management/overview.md#terminology).
74
74
75
-
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/select-resource-group.png" alt-text="A screenshot that shows how to choose a resource group or create a new one in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/select-resource-group.png":::
75
+
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/select-resource-group.png" alt-text="A screenshot that shows how to choose a resource group or create a new one in Visual Studio Code." lightbox="media/iot-hub-create-use-iot-toolkit/select-resource-group.png":::
76
76
77
77
1. In the resource group you specified, follow the prompts to select an existing IoT Hub or create a new Azure IoT Hub.
78
78
79
-
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/iot-hub-provision.png" alt-text="A screenshot that shows the first prompt in choosing an existing IoT Hub in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/iot-hub-provision.png":::
79
+
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/iot-hub-provision.png" alt-text="A screenshot that shows the first prompt in choosing an existing IoT Hub in Visual Studio Code." lightbox="media/iot-hub-create-use-iot-toolkit/iot-hub-provision.png":::
80
80
81
-
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/select-iot-hub.png" alt-text="A screenshot that shows the second prompt in choosing an existing IoT Hub in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/select-iot-hub.png":::
81
+
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/select-iot-hub.png" alt-text="A screenshot that shows the second prompt in choosing an existing IoT Hub in Visual Studio Code." lightbox="media/iot-hub-create-use-iot-toolkit/select-iot-hub.png":::
82
82
83
-
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/iot-hub-selected.png" alt-text="A screenshot that shows the third prompt in choosing an existing IoT Hub in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/iot-hub-selected.png":::
83
+
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/iot-hub-selected.png" alt-text="A screenshot that shows the third prompt in choosing an existing IoT Hub in Visual Studio Code." lightbox="media/iot-hub-create-use-iot-toolkit/iot-hub-selected.png":::
84
84
85
-
1. In the output window, you'll see the Azure IoT Hub provisioned.
85
+
1. In the output window, you see the Azure IoT Hub provisioned.
86
86
87
-
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/iot-hub-provisioned.png" alt-text="A screenshot that shows the output window in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/iot-hub-provisioned.png":::
87
+
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/iot-hub-provisioned.png" alt-text="A screenshot that shows the output window in Visual Studio Code." lightbox="media/iot-hub-create-use-iot-toolkit/iot-hub-provisioned.png":::
88
88
89
89
1. Select or create a new IoT Hub Device in the Azure IoT Hub you provisioned.
90
90
91
-
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/iot-device-provision.png" alt-text="A screenshot that shows the fourth prompt in choosing an existing IoT Hub in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/iot-device-provision.png":::
91
+
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/iot-device-provision.png" alt-text="A screenshot that shows the fourth prompt in choosing an existing IoT Hub in Visual Studio Code." lightbox="media/iot-hub-create-use-iot-toolkit/iot-device-provision.png":::
92
92
93
-
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/select-iot-device.png" alt-text="A screenshot that shows an example of an existing IoT Hub in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/select-iot-device.png":::
93
+
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/select-iot-device.png" alt-text="A screenshot that shows an example of an existing IoT Hub in Visual Studio Code." lightbox="media/iot-hub-create-use-iot-toolkit/select-iot-device.png":::
94
94
95
-
1. Now you have an Azure IoT Hub provisioned and a device created in it. The device connection string will be saved in VS Code.
95
+
1. Now you have an Azure IoT Hub provisioned and a device created in it. The device connection string is saved in VS Code.
96
96
97
-
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/provision-done.png" alt-text="A screenshot that shows IoT Hub details in the output window in VS Code." lightbox="media/iot-hub-create-use-iot-toolkit/provision-done.png":::
97
+
:::image type="content" source="media/iot-hub-create-use-iot-toolkit/provision-done.png" alt-text="A screenshot that shows IoT Hub details in the output window in Visual Studio Code." lightbox="media/iot-hub-create-use-iot-toolkit/provision-done.png":::
98
98
99
99
> [!TIP]
100
-
> To delete a device from your IoT hub, use the `Azure IoT Hub: Delete Device` option from the Command Palette. There is no option to delete your IoT hub in Visual Studio Code, however you can [delete your hub in the Azure portal](iot-hub-create-through-portal.md#delete-the-iot-hub).
100
+
> To delete a device from your IoT hub, use the `Azure IoT Hub: Delete Device` option from the Command Palette. There is no option to delete your IoT hub in Visual Studio Code, however you can [delete your hub in the Azure portal](iot-hub-create-through-portal.md#delete-an-iot-hub).
101
101
102
102
## Next steps
103
103
104
104
Now that you've deployed an IoT hub using the Azure IoT Tools for Visual Studio Code, explore these articles:
105
105
106
-
*[Use the Azure IoT Tools for Visual Studio Code to send and receive messages between your device and an IoT Hub](iot-hub-vscode-iot-toolkit-cloud-device-messaging.md).
106
+
-[Use the Azure IoT Tools for Visual Studio Code to send and receive messages between your device and an IoT Hub](iot-hub-vscode-iot-toolkit-cloud-device-messaging.md).
107
107
108
-
*[Use the Azure IoT Tools for Visual Studio Code for Azure IoT Hub device management](iot-hub-device-management-iot-toolkit.md)
108
+
-[Use the Azure IoT Tools for Visual Studio Code for Azure IoT Hub device management](iot-hub-device-management-iot-toolkit.md)
109
109
110
-
*[See the Azure IoT Hub for VS Code wiki page](https://github.com/microsoft/vscode-azure-iot-toolkit/wiki).
110
+
-[See the Azure IoT Hub for Visual Studio Code wiki page](https://github.com/microsoft/vscode-azure-iot-toolkit/wiki).
Copy file name to clipboardExpand all lines: articles/iot-hub/iot-hub-query-avro-data.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.author: asrastog
12
12
13
13
This article discusses how to query Avro data to efficiently route messages from Azure IoT Hub to Azure services. [Message Routing](iot-hub-devguide-messages-d2c.md) allows you to filter data using rich queries based on message properties, message body, device twin tags, and device twin properties. To learn more about the querying capabilities in Message Routing, see the article about [message routing query syntax](iot-hub-devguide-routing-query-syntax.md).
14
14
15
-
The challenge has been that when Azure IoT Hub routes messages to Azure Blob storage, by default IoT Hub writes the content in Avro format, which has both a message body property and a message property. The Avro format is not used for any other endpoints. Although the Avro format is great for data and message preservation, it's a challenge to use it to query data. In comparison, JSON or CSV format is much easier for querying data. IoT Hub now supports writing data to Blob storage in JSON as well as AVRO.
15
+
The challenge has been that when Azure IoT Hub routes messages to Azure Blob storage, by default IoT Hub writes the content in Avro format, which has both a message body property and a message property. The Avro format isn't used for any other endpoints. Although the Avro format is great for data and message preservation, it's a challenge to use it to query data. In comparison, JSON or CSV format is easier for querying data. IoT Hub now supports writing data to Blob storage in JSON and AVRO.
16
16
17
17
For more information, see [Using Azure Storage as a routing endpoint](iot-hub-devguide-messages-d2c.md#azure-storage-as-a-routing-endpoint).
18
18
@@ -30,13 +30,13 @@ In this section, you query Avro data and export it to a CSV file in Azure Blob s
For more information on settings up routes and custom endpoints, see [Message Routing for an IoT hub](iot-hub-create-through-portal.md#message-routing-for-an-iot-hub).
33
+
For more information on settings up routes and custom endpoints, see [Message Routing for an IoT hub](how-to-routing-portal.md).
34
34
35
-
2. Ensure that your device has the encoding, content type, and needed data in either the properties or the message body, as referenced in the product documentation. When you view these attributes in Device Explorer, as shown here, you can verify that they are set correctly.
35
+
2. Ensure that your device has the encoding, content type, and needed data in either the properties or the message body, as referenced in the product documentation. When you view these attributes in Device Explorer, as shown here, you can verify that they're set correctly.
36
36
37
37

38
38
39
-
3. Set up an Azure Data Lake Store instance and a Data Lake Analytics instance. Azure IoT Hub does not route to a Data Lake Store instance, but a Data Lake Analytics instance requires one.
39
+
3. Set up an Azure Data Lake Store instance and a Data Lake Analytics instance. Azure IoT Hub doesn't route to a Data Lake Store instance, but a Data Lake Analytics instance requires one.
40
40
41
41

0 commit comments