Skip to content

Commit 59523d5

Browse files
authored
Merge pull request #109425 from sunasing/patch-24
Updated simplified script and minor fixes
2 parents 0b2edc1 + 156d530 commit 59523d5

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

articles/industry/agriculture/get-sensor-data-from-sensor-partner.md

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,39 @@ After you start the streaming of sensor data, you can begin the process of getti
3434

3535
You can generate the above information by following these steps: (Please note these steps are required to be done on Azure so you will need access to the Azure subscription where FarmBeats is deployed)
3636

37-
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.
37+
1. Sign in to https://portal.azure.com/.
3838

39-
2. Sign in to https://portal.azure.com/.
39+
2. **If you are on FarmBeats version 1.2.7 or later, please skip steps 2a, 2b and 2c, and go to step 3.**. You can check FarmBeats version by clicking on the Settings icon on the top-right side of the FarmBeats UI.
4040

41-
3. **If you are on FarmBeats version 1.2.7 or later, please skip steps 3a, 3b and 3c, and go to step 4.**. You can check FarmBeats version by clicking on the Settings icon on the top-right side of the FarmBeats UI.
41+
2a. Go to Azure Active Directory -> App Registrations
4242

43-
3a. Go to Azure Active Directory -> App Registrations
43+
2b. Click on the App Registration that was created as part of your FarmBeats deployment. It will have the same name as your FarmBeats data hub.
4444

45-
3b. Click on the App Registration that was created as part of your FarmBeats deployment. It will have the same name as your FarmBeats data hub.
45+
2c. 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.
4646

47-
3c. 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.
48-
49-
4. Open Cloud Shell. This option is available on the toolbar in the upper-right corner of the Azure portal.
47+
3. Open Cloud Shell. This option is available on the toolbar in the upper-right corner of the Azure portal.
5048

5149
![Azure portal toolbar](./media/get-drone-imagery-from-drone-partner/navigation-bar-1.png)
5250

5351
5. Make sure the environment is set to **PowerShell**. By default, it's set to Bash.
5452

5553
![PowerShell toolbar setting](./media/get-sensor-data-from-sensor-partner/power-shell-new-1.png)
5654

57-
6. Upload the file from step 1 in your Cloud Shell instance.
55+
6. Go to your home directory.
56+
57+
```azurepowershell-interactive 
58+
59+
cd
5860
59-
![Upload toolbar button](./media/get-sensor-data-from-sensor-partner/power-shell-two-1.png)
61+
```
62+
63+
7. Run the following command. This will download a script to your home directory.
6064
61-
7. Go to the directory where the file was uploaded. By default, files get uploaded to the home directory under the username.
65+
```azurepowershell-interactive 
66+
67+
wget –q https://aka.ms/farmbeatspartnerscriptv3 -O ./generatePartnerCredentials.ps1
68+
69+
```
6270
6371
8. Run the following script. The script asks for the Tenant ID which can be obtained from Azure Active Directory -> Overview page.
6472
@@ -79,10 +87,14 @@ Now you have the following information generated from the previous section.
7987
- Client secret
8088
- Tenant ID
8189
82-
You will need to provide this to your device partner for linking FarmBeats. Go to the device partner portal for doing the same. For example, in case you are using devices from Davis Instruments, please go to the below page:
90+
You will need to provide this to your device partner for linking FarmBeats. Go to the device partner portal for doing the same. For example, in case you are using devices from Davis Instruments, Teralytic or Pessl Instruments (Metos.at) please go to the corresponding pages as mentioned below:
8391
8492
[Davis Instruments](https://weatherlink.github.io/azure-farmbeats/setup)
8593
94+
[Teralytic](https://app.teralytic.com/)
95+
96+
[Pessl Instruments](https://ng.fieldclimate.com/user-api-services)
97+
8698
The device provider confirms a successful integration. Upon confirmation, you can view all the devices and sensors on Azure FarmBeats.
8799
88100
## View devices and sensors

0 commit comments

Comments
 (0)