Skip to content

Commit 0eec58b

Browse files
authored
Merge pull request #76957 from v-krghan/Includes
Remove redundant includes
2 parents 4d7f7b9 + 40ca812 commit 0eec58b

23 files changed

+1078
-1169
lines changed

articles/iot-accelerators/iot-accelerators-device-simulation-time-series-insights.md

Lines changed: 92 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,91 @@ This article assumes the name of your solution accelerator is **contoso-simulati
2424

2525
[!INCLUDE [cloud-shell-try-it.md](../../includes/cloud-shell-try-it.md)]
2626

27-
[!INCLUDE [iot-accelerators-create-tsi.md](../../includes/iot-accelerators-create-tsi.md)]
27+
## Create a consumer group
28+
29+
You need to create a dedicated consumer group in your IoT hub to stream telemetry to Time Series Insights. An event source in Time Series Insights should have the exclusive use of an IoT Hub consumer group.
30+
31+
The following steps use the Azure CLI in the Azure Cloud Shell to create the consumer group:
32+
33+
1. The IoT hub is one of several resources created when you deployed the Device Simulation solution accelerator. Execute the following command find the name of your IoT hub - remember to use the name of your solution accelerator:
34+
35+
```azurecli-interactive
36+
az resource list --resource-group contoso-simulation -o table
37+
```
38+
39+
The IoT hub is the resource of type **Microsoft.Devices/IotHubs**.
40+
41+
1. Add a consumer group called **devicesimulationtsi** to the hub. In the following command use the name of your hub and solution accelerator:
42+
43+
```azurecli-interactive
44+
az iot hub consumer-group create --hub-name contoso-simulation7d894 --name devicesimulationtsi --resource-group contoso-simulation
45+
```
46+
47+
You can now close the Azure Cloud Shell.
48+
49+
## Create a new Time Series Insights environment
50+
51+
[Azure Time Series Insights](../../articles/time-series-insights/time-series-insights-overview.md) is a fully managed analytics, storage, and visualization service for managing IoT-scale time-series data in the cloud. To create a new Time Series Insights environment:
52+
53+
1. Sign in to the [Azure portal](https://portal.azure.com/).
54+
55+
1. Select **Create a resource** > **Internet of Things** > **Time Series Insights**:
56+
57+
![New Time Series Insights](./media/iot-accelerators-device-simulation-time-series-insights/new-time-series-insights.png)
58+
59+
1. To create your Time Series Insights environment in the same resource group as your solution accelerator, use the values in the following table:
60+
61+
| Setting | Value |
62+
| ------- | ----- |
63+
| Environment Name | The following screenshot uses the name **Contoso-TSI**. Choose your own unique name when you complete this step. |
64+
| Subscription | Select your Azure subscription in the drop-down. |
65+
| Resource group | **contoso-simulation**. Use the name of your solution accelerator. |
66+
| Location | This example uses **East US**. Create your environment in the same region as your Device simulation accelerator. |
67+
| Sku |**S1** |
68+
| Capacity | **1** |
69+
70+
![Create Time Series Insights](./media/iot-accelerators-device-simulation-time-series-insights/new-time-series-insights-create.png)
71+
72+
> [!NOTE]
73+
> Adding the Time Series Insights environment to the same resource group as the solution accelerator means that it's deleted when you delete the solution accelerator.
74+
75+
1. Click **Create**. It can take a few minutes for the environment to be created.
76+
77+
## Create event source
78+
79+
Create a new event source to connect to your IoT hub. Use the consumer group you created in the previous steps. A Time Series Insights event source requires a dedicated consumer group not in use by another service.
80+
81+
1. In the Azure portal, navigate to your new Time Series Environment.
82+
83+
1. On the left, click **Event Sources**:
84+
85+
![View Event Sources](./media/iot-accelerators-device-simulation-time-series-insights/time-series-insights-event-sources.png)
86+
87+
1. Click **Add**:
88+
89+
![Add Event Source](./media/iot-accelerators-device-simulation-time-series-insights/time-series-insights-event-sources-add.png)
90+
91+
1. To configure your IoT hub as a new event source, use the values in the following table:
92+
93+
| Setting | Value |
94+
| ------- | ----- |
95+
| Event source Name | The following screenshot uses the name **contoso-iot-hub**. Use your own unique name when you complete this step. |
96+
| Source | **IoT Hub** |
97+
| Import option | **Use IoT Hub from available subscriptions** |
98+
| Subscription ID | Select your Azure subscription in the drop-down. |
99+
| Iot hub name | **contoso-simulation7d894**. Use the name of your IoT hub from your Device Simulation solution accelerator. |
100+
| Iot hub policy name | **iothubowner** |
101+
| Iot hub policy key | This field is populated automatically. |
102+
| Iot hub consumer group | **devicesimulationtsi** |
103+
| Event serialization format | **JSON** |
104+
| Timestamp property name | Leave blank |
105+
106+
![Create Event Source](./media/iot-accelerators-device-simulation-time-series-insights/time-series-insights-event-source-create.png)
107+
108+
1. Click **Create**.
109+
110+
> [!NOTE]
111+
> You can [grant additional users access](../../articles/time-series-insights/time-series-insights-data-access.md#grant-data-access) to the Time Series Insights explorer.
28112
29113
## Start a simulation
30114
@@ -74,7 +158,13 @@ The Time Series Insights explorer is a web app you can use to visualize your tel
74158
75159
![Time Series Insights explorer dashboard](./media/iot-accelerators-device-simulation-time-series-insights/time-series-insights-dashboard.png)
76160
77-
[!INCLUDE [iot-accelerators-cleanup-tsi.md](../../includes/iot-accelerators-cleanup-tsi.md)]
161+
## Clean up resources
162+
163+
If you plan to explore further, leave the solution accelerator deployed.
164+
165+
If you no longer need the solution accelerator, delete it from the [Provisioned solutions](https://www.azureiotsolutions.com/Accelerators#dashboard) page, by selecting it, and then clicking **Delete Solution**.
166+
167+
If you added the Time Series Insights environment to the solution accelerator's resource group, it is automatically deleted when you delete the solution accelerator. Otherwise you must manually remove the Time Series Insights environment from the Azure portal.
78168
79169
## Next Steps
80170

0 commit comments

Comments
 (0)