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
Copy file name to clipboardExpand all lines: articles/industry/agriculture/ingest-historical-telemetry-data-in-azure-farmbeats.md
+27-16Lines changed: 27 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,37 +32,48 @@ Follow these steps:
32
32
> [!NOTE]
33
33
> You must be an administrator to do the following steps.
34
34
35
-
1.Download the [zip file](https://aka.ms/farmbeatspartnerscriptv2), and extract it to your local drive. There will be one file inside the zip file.
35
+
1.Sign in to https://portal.azure.com/.
36
36
37
-
2.Sign in to https://portal.azure.com/and go to **Azure Active Directory** > **App Registrations**.
37
+
2.**If you are on FarmBeats version 1.2.7 or later, skip steps a, b and c, and go to step 3.** You can check FarmBeats version by selecting the **Settings** icon on the top-right corner of the FarmBeats UI.
38
38
39
-
3. Select the **App Registration** that was created as part of your FarmBeats deployment. It will have the same name as your FarmBeats Datahub.
39
+
a. Go to **Azure Active Directory** > **App Registrations**
40
40
41
-
4. Select **Expose an API** > Select **Add a client application**and enter **04b07795-8ddb-461a-bbee-02f9e1bf7b46** and check **Authorize Scope**. This will give access to the Azure CLI (Cloud Shell) to perform the following steps:
41
+
b. Select the **App Registration**that was created as part of your FarmBeats deployment. It will have the same name as your FarmBeats datahub.
42
42
43
-
5. Open Cloud Shell. This option is available on the toolbar in the upper-right corner of the Azure portal.
43
+
c. Select **Expose an API** > select **Add a client application** and enter **04b07795-8ddb-461a-bbee-02f9e1bf7b46** and check **Authorize Scope**. This will give access to the Azure CLI (Cloud Shell) to perform the below steps:
44
+
45
+
3. Open Cloud Shell. This option is available on the toolbar in the upper-right corner of the Azure portal.
7. Run the following script. The script asks for the Tenant ID, which can be obtained from **Azure Active Directory** > **Overview** page.
68
+
69
+
```azurepowershell-interactive
60
70
61
71
./generatePartnerCredentials.ps1
62
72
63
73
```
64
74
65
-
10. Follow the onscreen instructions to capture the values for **API Endpoint**, **Tenant ID**, **Client ID**, **Client Secret**, and **EventHub Connection String**.
75
+
8. Follow the onscreen instructions to capture the values for **API Endpoint**, **Tenant ID**, **Client ID**, **Client Secret**, and **EventHub Connection String**.
76
+
66
77
67
78
## Create device or sensor metadata
68
79
@@ -346,11 +357,11 @@ Convert the historical sensor data format to a canonical format that Azure FarmB
346
357
"sensordata": [
347
358
{
348
359
"timestamp": "< timestamp in ISO 8601 format >",
349
-
"<sensor measure name (as defined in the Sensor Model)>": "<value>"
360
+
"<sensor measure name (as defined in the Sensor Model)>": <value>
350
361
},
351
362
{
352
363
"timestamp": "<timestamp in ISO 8601 format>",
353
-
"<sensor measure name (as defined in the Sensor Model)>": "<values>"
364
+
"<sensor measure name (as defined in the Sensor Model)>": <value>
354
365
}
355
366
]
356
367
}
@@ -424,11 +435,11 @@ Here's an example of a telemetry message:
424
435
"sensordata": [
425
436
{
426
437
"timestamp": "< timestamp in ISO 8601 format >",
427
-
"<sensor measure name (as defined in the Sensor Model)>": "<value>"
438
+
"<sensor measure name (as defined in the Sensor Model)>": <value>
428
439
},
429
440
{
430
441
"timestamp": "<timestamp in ISO 8601 format>",
431
-
"<sensor measure name (as defined in the Sensor Model)>": "<value>"
442
+
"<sensor measure name (as defined in the Sensor Model)>": <value>
0 commit comments