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/get-sensor-data-from-sensor-partner.md
+17-8Lines changed: 17 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,28 +36,37 @@ The previous information is provided to you by your system integrator. For any i
36
36
37
37
Alternatively, you can generate the credentials by running this script from Azure Cloud Shell. Follow these steps.
38
38
39
-
1. Download the [zip file](https://aka.ms/farmbeatspartnerscript), and extract it to your local drive. Two files are inside the zip file.
40
-
2. Sign in to https://portal.azure.com/ and open Cloud Shell. This option is available on the toolbar in the upper-right corner of the Azure portal.
39
+
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.
40
+
2. Sign in to https://portal.azure.com/ and go to Azure Active Directory -> App Registrations
41
+
42
+
3. Click on the App Registration that was created as part of your FarmBeats deployment. It will have the same name as your FarmBeats Datahub.
43
+
44
+
4. Click on “Expose an API” -> Click “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.
45
+
46
+
5. Open Cloud Shell. This option is available on the toolbar in the upper-right corner of the Azure portal.
5. Go to the directory where the files were uploaded. By default, they're uploaded to the home directory under the username.
53
-
6. Run the following script:
58
+
8. Go to the directory where the file was uploaded. By default, files get uploaded to the home directory under the username.
59
+
60
+
9. Run the following script.
54
61
55
62
```azurepowershell-interactive
56
63
57
-
./generateCredentials.ps1
64
+
./generatePartnerCredentials.ps1
58
65
59
66
```
60
-
7. Follow the onscreen instructions to capture the values for **API Endpoint**, **Tenant ID**, **Client ID**, **Client Secret**, and **EventHub Connection String**. The EventHub connection string is available as part of the API response in Swagger.
67
+
The tenant ID can be obtained from Azure Active Directory -> Overview page.
68
+
69
+
10. Follow the onscreen instructions to capture the values for **API Endpoint**, **Tenant ID**, **Client ID**, **Client Secret**, and **EventHub Connection String**.
61
70
62
71
### Integrate device data by using the generated credentials
0 commit comments