Skip to content

Commit 9918c25

Browse files
committed
Merge branch 'tsi-improvements' of https://github.com/v-lakast/azure-docs-pr into tsi-improvements
2 parents 0f0ef31 + 4d400b8 commit 9918c25

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

articles/digital-twins/how-to-integrate-time-series-insights.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ Before creating the event hubs, you'll first create an event hub namespace that
5353
az eventhubs namespace create --name <name-your-event-hubs-namespace> --resource-group <your-resource-group> -l <region>
5454
```
5555

56+
> [!TIP]
57+
> If you get an error stating `BadRequest: The specified service namespace is invalid.`, make sure the name you've chosen for your namespace meets the naming requirements described in this reference document: [Create Namespace](/rest/api/servicebus/create-namespace).
58+
5659
You'll be using this event hubs namespace to hold the two event hubs that are needed for this article:
5760

5861
1. **Twins hub** - Event hub to receive twin change events
@@ -161,7 +164,7 @@ In this section, you'll create an Azure function that will convert twin update e
161164
162165
### Step 1: Add a new function
163166
164-
Inside your function app project created in the [prerequisites](#prerequisites) section, you'll create a new Azure function of type **Event Hub trigger** function to update device telemetry events to the Time Series Insights.
167+
Inside your function app project created in the [prerequisites](#prerequisites) section, create a new Azure function called *ProcessDTUpdatetoTSI.cs* to update device telemetry events to the Time Series Insights. The function type will be **Event Hub trigger**.
165168
166169
:::image type="content" source="media/how-to-integrate-time-series-insights/create-event-hub-trigger-function.png" alt-text="Screenshot of Visual Studio to create a new Azure function of type event hub trigger.":::
167170
@@ -172,7 +175,7 @@ Add the following packages to your project:
172175
* [Microsoft.Azure.WebJobs.Extensions.EventHubs](https://www.nuget.org/packages/Microsoft.Azure.WebJobs/)
173176
* [Microsoft.NET.Sdk.Functions](https://www.nuget.org/packages/Microsoft.NET.Sdk.Functions/)
174177
175-
Rename the *Function1.cs* sample function that Visual Studio has generated to *ProcessDTUpdatetoTSI.cs*. Replace the code in the file with the following code:
178+
Replace the code in the *ProcessDTUpdatetoTSI.cs* file with the following code:
176179
177180
:::code language="csharp" source="~/digital-twins-docs-samples/sdks/csharp/updateTSI.cs":::
178181
2.97 KB
Loading

0 commit comments

Comments
 (0)