Skip to content

Commit 569cb66

Browse files
authored
Merge pull request #100447 from sunasing/patch-6
Support new script for partner registration
2 parents 5a42aee + 42f56a4 commit 569cb66

File tree

1 file changed

+17
-8
lines changed

1 file changed

+17
-8
lines changed

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

Lines changed: 17 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,28 +36,37 @@ The previous information is provided to you by your system integrator. For any i
3636

3737
Alternatively, you can generate the credentials by running this script from Azure Cloud Shell. Follow these steps.
3838

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.
4147

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

44-
3. Make sure the environment is set to **PowerShell**. By default, it's set to Bash.
50+
6. Make sure the environment is set to **PowerShell**. By default, it's set to Bash.
4551

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

48-
4. Upload the two files from step 1 in your Cloud Shell instance.
54+
7. Upload the file from step 1 in your Cloud Shell instance.
4955

5056
![Upload toolbar button](./media/get-sensor-data-from-sensor-partner/power-shell-two-1.png)
5157

52-
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.
5461

5562
```azurepowershell-interactive 
5663
57-
./generateCredentials.ps1
64+
./generatePartnerCredentials.ps1
5865
5966
```
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**.
6170
6271
### Integrate device data by using the generated credentials
6372

0 commit comments

Comments
 (0)