Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 769766f

Browse files
committedMar 11, 2021
Clarify portal steps
1 parent 08e1e73 commit 769766f

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed
 

‎articles/digital-twins/how-to-ingest-iot-hub-data.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ When the twin is created successfully, the CLI output from the command should lo
9898
9999
## Create a function
100100

101-
In this section, you'll create an Azure function to access Azure Digital Twins and update twins based on IoT telemetry events from IoT Hub. Follow the steps below to create and publish the function.
101+
In this section, you'll create an Azure function to access Azure Digital Twins and update twins based on IoT telemetry events that it receives. Follow the steps below to create and publish the function.
102102

103103
#### Step 1: Create a function app project
104104

@@ -129,17 +129,19 @@ Next, **assign an access role** for the function and **configure the application
129129

130130
## Connect your function to IoT Hub
131131

132-
Set up an event destination for hub data.
132+
In this section, you'll set up your function as an event destination for the IoT hub device data. This will ensure that the data from the device in IoT Hub will be sent to the Azure function for processing.
133+
133134
In the [Azure portal](https://portal.azure.com/), navigate to your IoT Hub instance that you created in the [*Prerequisites*](#prerequisites) section. Under **Events**, create a subscription for your function.
134135

135136
:::image type="content" source="media/how-to-ingest-iot-hub-data/add-event-subscription.png" alt-text="Screenshot of the Azure portal that shows Adding an event subscription.":::
136137

137138
In the **Create Event Subscription** page, fill the fields as follows:
138-
1. Under **Name**, name the subscription what you would like.
139-
2. Under **Event Schema**, choose _Event Grid Schema_.
140-
3. Under **Event Types**, choose the _Device Telemetry_ checkbox and uncheck other event types.
141-
4. Under **Endpoint Type**, Select _Azure Function_.
142-
5. Under **Endpoint**, Choose _Select an endpoint_ link to create an endpoint.
139+
1. For **Name**, choose whatever name you want for the event subscription.
140+
2. For **Event Schema**, choose _Event Grid Schema_.
141+
3. For **System Topic Name**, choose whatever name you want.
142+
1. For **Filter to Event Types**, choose the _Device Telemetry_ checkbox and uncheck other event types.
143+
1. For **Endpoint Type**, Select _Azure Function_.
144+
1. For **Endpoint**, use the _Select an endpoint_ link to choose what Azure Function to use for the endpoint.
143145

144146
:::image type="content" source="media/how-to-ingest-iot-hub-data/create-event-subscription.png" alt-text="Screenshot of the Azure portal to create the event subscription details":::
145147

@@ -148,13 +150,13 @@ In the _Select Azure Function_ page that opens up, verify the below details.
148150
2. **Resource group**: Your resource group.
149151
3. **Function app**: Your function app name.
150152
4. **Slot**: _Production_.
151-
5. **Function**: Select your function from the dropdown.
153+
5. **Function**: Select the function from earlier, *IoTHubtoTwins*, from the dropdown.
152154

153-
Save your details by selecting _Confirm Selection_ button.
155+
Save your details with the _Confirm Selection_ button.
154156

155157
:::image type="content" source="media/how-to-ingest-iot-hub-data/select-azure-function.png" alt-text="Screenshot of the Azure portal to select the function.":::
156158

157-
Select _Create_ button to create event subscription.
159+
Select the _Create_ button to create the event subscription.
158160

159161
## Send simulated IoT data
160162

Loading

0 commit comments

Comments
 (0)
Please sign in to comment.