Skip to content

Commit b819fa6

Browse files
committed
Updating install help for FarmBeats
1 parent 4dc71d6 commit b819fa6

File tree

1 file changed

+51
-156
lines changed

1 file changed

+51
-156
lines changed

articles/industry/agriculture/install-azure-farmbeats.md

Lines changed: 51 additions & 156 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ title: Install Azure FarmBeats
33
description: This article describes how to install Azure FarmBeats in your Azure subscription
44
author: usha-rathnavel
55
ms.topic: article
6-
ms.date: 12/11/2019
7-
ms.author: usrathna
6+
ms.date: 1/17/2020
7+
ms.author: atinb
88
---
99

1010
# Install Azure FarmBeats
@@ -15,11 +15,13 @@ Azure FarmBeats is a business-to-business offering available in Azure Marketplac
1515

1616
- **Datahub**: An API layer that enables aggregation, normalization, and contextualization of various agriculture data sets across different providers.
1717

18-
- **Accelerator**: A sample web application that is built on top of Datahub. It jump-starts your model development and visualization. The accelerator uses Azure FarmBeats APIs to demonstrate visualization of ingested sensor data as charts and visualization of model output as maps.
18+
- **Accelerator**: Web application that is built on top of Datahub. It jump-starts your model development and visualization. The accelerator uses Azure FarmBeats APIs to demonstrate visualization of ingested sensor data as charts and visualization of model output as maps.
1919

2020
## Before you start
21+
2122
### Components installed
2223

24+
//AtinB: need to understand what new components are installed now
2325
When you install Azure FarmBeats, the following resources are provisioned in your Azure subscription:
2426

2527
| Azure Resources Installed | Azure FarmBeats component |
@@ -41,6 +43,7 @@ When you install Azure FarmBeats, the following resources are provisioned in you
4143

4244
### Costs incurred
4345

46+
//AtinB: Do the costs remain the same now?
4447
The cost of Azure FarmBeats is an aggregate of the cost of the underlying Azure services. Pricing information for Azure services can be calculated using the [Pricing Calculator](https://azure.microsoft.com/pricing/calculator). The actual cost of the total installation will vary based on the usage. The steady state cost for the two components is:
4548

4649
* Datahub - less than $10 per day
@@ -49,212 +52,104 @@ The cost of Azure FarmBeats is an aggregate of the cost of the underlying Azure
4952
### Regions supported
5053

5154
Currently, Azure FarmBeats is supported in public cloud environments in the following regions:
55+
5256
* Australia East
53-
* Central US
57+
* Australia Southeast
58+
* Canada Central
59+
* Canada East
5460
* East US
55-
* East US 2
56-
* West US
57-
* West US 2
5861
* North Europe
5962
* West Europe
60-
* Southeast Asia
63+
* West US
6164

6265
### Time taken
6366

6467
The entire setup of Azure FarmBeats, including the preparation and installation will take less than an hour.
6568

66-
## Prerequisites
69+
## Prerequisites
6770

6871
Before you start the actual installation of Azure FarmBeats, you'll need to complete the following steps:
6972

70-
### Create Sentinel account
71-
Your Azure FarmBeats setup enables you to get free satellite imagery from European Space Agency's [Sentinel-2](https://scihub.copernicus.eu/) satellite mission for your farm. To configure this setup, you require a Sentinel Account.
72-
73-
Follow the steps to create a free account with Sentinel:
74-
75-
1. Go to the official [sign-up](https://scihub.copernicus.eu/dhus/#/self-registration) page.
76-
2. Provide the required details (first name, last name, username, password, and email ID) and complete the form.
77-
3. A verification link will be sent to the registered email ID. Select the link provided in the email and complete the verification.
78-
79-
Your registration process is complete once you complete the verification. Make a note of your **Sentinel Username** and **Sentinel Password**.
80-
8173
### Decide Subscription and Region
8274

8375
You'll need the Azure subscription ID and the region where you want to install Azure FarmBeats. Choose one of the regions listed in the [Regions supported](#regions-supported) section.
8476

8577
Make a note of the **Azure Subscription ID** and the **Azure Region**.
8678

87-
### Verify Permissions
88-
89-
You'll need to verify if you have sufficient privileges and permissions in the Azure tenant you're looking to install Azure FarmBeats.
90-
91-
You can verify your access permissions in the Azure portal by following the instructions on [role based access control](https://docs.microsoft.com/azure/role-based-access-control/check-access)
92-
93-
For installing Azure FarmBeats, you need the following permissions:
94-
- Tenant - Read Access
95-
- Subscription - Contributor or owner
96-
- Resource group - Owner.
79+
### Create an AAD application
9780

98-
In addition, Azure FarmBeats requires Azure Active Directory application registrations. There are two ways to complete the required Azure AD setup:
81+
Azure FarmBeats requires Azure Active Directory application creation and registration. To successfully run the AAD creation script, the following permissions are needed -
9982

100-
**Case 1**: You have **write** permissions in the Azure Tenant you are installing to. This case means you have the necessary permissions to create the AAD app registration dynamically during the install.
83+
- Tenant - AAD app creator
84+
- Subscription - Owner
10185

102-
You can proceed directly to the [Complete the Marketplace sign-up](#complete-azure-marketplace-sign-up) section.
86+
Run the following in a Cloud Shell instance in your subscription. First time users will be prompted to select a subscription and create a storage account. Complete the setup as instructed.
10387

88+
1. Download and extract the [AAD app generator script](https://aka.ms/FarmBeatsAADScript)
10489

105-
**Case 2**: You do NOT have **write** permissions in the Azure tenant. This case is common when you are trying to install Azure FarmBeats in your company's Azure subscription and your **write** access is restricted to only the resource group you own.
106-
In this case, request your IT administrator to follow the below steps to automatically generate and complete the Azure AD app registration in the Azure portal.
107-
108-
1. Download and extract the [AAD app generator script](https://aka.ms/FarmBeatsAADScript) to your local machine.
109-
2. Sign in to the Azure portal and select your subscription and Azure AD tenant.
110-
3. Launch Cloud Shell from the toolbar at the top of the Azure portal.
111-
112-
![Project FarmBeats](./media/install-azure-farmbeats/navigation-bar-1.png)
113-
114-
4. Choose PowerShell as the preferred shell experience. First time users will be prompted to select a subscription and create a storage account. Complete the setup as instructed.
115-
5. Upload the script (from step 1) to Cloud Shell, and note the location of the uploaded file.
116-
117-
> [!NOTE]
118-
> By default, the file is uploaded to your home directory.
90+
```azurepowershell-interactive
91+
wget https://aka.ms/FarmBeatsAADScript
92+
```
93+
2. By default, the file is downloaded to your home directory. Navigate to the directory.
11994
120-
6. Go to the home directory by using the 'cd' command and run the following script:
95+
```azurepowershell-interactive
96+
cd
97+
```
98+
3. Run the AAD script
12199
122-
```azurepowershell-interactive
100+
```azurepowershell-interactive
123101
./create_aad_script.ps1
124102
```
125-
7. Enter the **Datahub website** name and the **Accelerator website** name. Make a note of the output of the script and share it with the person installing Azure FarmBeats.
126-
127-
Once your IT administrator provides you with the required details, make a note of the **AAD Client ID, AAD Client Secret, Datahub website name & Accelerator website name**.
128-
129-
> [!NOTE]
130-
> If you are following instructions from Case 2, do not forget to add the AAD Client ID & AAD Client Secret as separate parameters in the [Parameters file](#prepare-parameters-file)
131-
132-
Now, you have all the information required to proceed to the next section.
133-
134-
### Complete Azure Marketplace sign-up
135-
136-
You have to complete the sign-up to the Azure FarmBeats offer in Azure marketplace before you can start the cloud-shell based installation process. Follow the below steps to complete the sign-up:
137-
138-
1. Sign in to the Azure portal. Select your account in the top-right corner and switch to the Azure AD tenant where you want to install Azure FarmBeats.
139-
140-
2. Go to Azure Marketplace within the portal and search for **Azure FarmBeats** in the Marketplace
141-
142-
3. A new window with an overview of Azure FarmBeats appears. Select the **Create**.
143-
144-
4. A new window appears. Complete the sign-up process by choosing the correct subscription, resource group, and location to which you want to install Azure FarmBeats.
145-
146-
5. Once the entered details are validated, SELECT **OK**. The Terms of use page appears. Review the terms and select **Create** to complete the sign-up process.
147-
148-
This step completes the sign-up process in Azure Marketplace. You are now ready to start the Parameters file preparation.
149103
150-
### Prepare Parameters file
151-
The final step in the prerequisites phase is creating a JSON file that will serve as input during the Cloud Shell installation. The parameters in the JSON file will have to be replaced with appropriate values.
104+
4. The AAD script takes around 2 mins to run and outputs values to screen as well as to a json file in the same directory. If you had someone else run the script, please ask them to share this output with you.
152105
153-
A sample JSON file is provided below. Download the sample and update the required details.
106+
### Create Sentinel account
154107
155-
```json
156-
{
157-
"sku":"both",
158-
"subscriptionId":"da9xxxec-dxxf-4xxc-xxx21-xxx3ee7xxxxx",
159-
"datahubResourceGroup":"dummy-test-dh1",
160-
"location":"westus2",
161-
"datahubWebsiteName":"dummy-test-dh1",
162-
"acceleratorResourceGroup":"dummy-test-acc1",
163-
"acceleratorWebsiteName":"dummy-test-acc1",
164-
"sentinelUsername":"dummy-dev",
165-
"notificationEmailAddress":"[email protected]",
166-
"updateIfExists":true
167-
}
168-
```
108+
Your Azure FarmBeats setup enables you to get free satellite imagery from European Space Agency's [Sentinel-2](https://scihub.copernicus.eu/) satellite mission for your farm. To configure this setup, you require a Sentinel Account.
169109
170-
You can refer to the below parameter table to understand more on each of the parameters.
110+
Follow the steps to create a free account with Sentinel:
171111
172-
| Parameter | Value|
173-
|--- | ---|
174-
|sku | Provides the user a choice to install both Datahub and Accelerator or just the Datahub. To install only Datahub, use "datahub". To install Datahub and Accelerator, use "both"|
175-
|subscriptionId | Specifies the Azure subscription to install Azure FarmBeats|
176-
|datahubResourceGroup| Specifies the resource group name for your Datahub resources. Enter the resource group name that you created in the Azure Marketplace here|
177-
|location |The location/ Azure Region where you want to install Azure FarmBeats|
178-
|datahubWebsiteName | The unique URL prefix for your Datahub web application |
179-
|acceleratorResourceGroup | Specifies the resource group name for your Accelerator resources|
180-
|acceleratorWebsiteName |The unique URL prefix for your Accelerator web application|
181-
|sentinelUsername | The username to get Sentinel satellite imagery|
182-
|notificationEmailAddress | The email address to receive the notifications for any alerts that you configure within your Datahub|
183-
|updateIfExists| (Optional) A parameter to include in the Parameters file only if you want to upgrade an existing Azure FarmBeats instance. For an upgrade, other details, such as the resource group names and locations need to be the same|
184-
|aadAppClientId | (Optional) A parameter to include in the Parameters file only if you are using a pre-created AAD app. Refer to Case 2 in [Verify Permissions](#verify-permissions) section for more details |
185-
|aadAppClientSecret | (Optional) (Optional) A parameter to include in the Parameters file only if you are using a pre-created AAD app. Refer to Case 2 in [Verify Permissions](#verify-permissions) section for more details|
112+
1. Go to the official [sign-up](https://scihub.copernicus.eu/dhus/#/self-registration) page.
113+
2. Provide the required details (first name, last name, username, password, and email ID) and complete the form.
114+
3. A verification link will be sent to the registered email ID. Select the link provided in the email and complete the verification.
186115
187-
Based on the above table and the sample JSON file, create your parameters JSON file and save it in your local computer.
116+
Your registration process is complete once you complete the verification. Make a note of your **Sentinel Username** and **Sentinel Password**.
188117
189118
## Install
190119
191-
The actual installation of Azure FarmBeats resources happens in Cloud Shell browser-based command-line interface by using the Bash environment. Follow the instructions below to install Azure FarmBeats:
192-
193-
1. Sign in to the Azure portal. Select the Azure subscription and tenant you want to install Azure FarmBeats.
194-
2. Launch **Cloud Shell** from the toolbar on the top-right corner of the Azure portal.
195-
3. Choose Bash as the preferred shell experience. Select the **Upload** button (highlighted in the below image), and upload the prepared parameters JSON file.
196-
197-
![Project FarmBeats](./media/install-azure-farmbeats/bash-2-1.png)
120+
You are now ready to install FarmBeats. Follow the steps below to start the installation -
121+
1. Sign in to the Azure portal. Select your account in the top-right corner and switch to the Azure AD tenant where you want to install Azure FarmBeats.
198122
199-
4. **Copy** the below command and **replace the \<username>** with the correct value so that the command points to the correct path of the uploaded file.
123+
2. Go to Azure Marketplace within the portal and search for **Azure FarmBeats** in the Marketplace.
200124
201-
```bash
202-
wget -O farmbeats-installer.sh https://aka.ms/AzureFarmbeatsInstallerScript && bash farmbeats-installer.sh /home/<username>/input.json
203-
```
204-
5. Run the modified command to start the installation process. You will be prompted to:
205-
- Agree to the **Azure FarmBeats license** terms. Enter "Y" to proceed to the next step if you agree to the Terms of use. Enter "N" to terminate the installation, if you do not agree to the terms of use.
125+
3. A new window with an overview of Azure FarmBeats appears. Select **Create**.
206126
207-
- Next, you will be prompted to enter an access token for the installation. Copy the generated code and login to the [device login page](https://microsoft.com/devicelogin) with your **Azure credentials**.
127+
4. A new window appears. Complete the sign-up process by choosing the correct subscription, resource group, and location to which you want to install Azure FarmBeats.
208128
209-
- Once the sign-in is successfully completed, the installer will prompt for your Sentinel account password. Enter your **Sentinel account password**.
129+
5. Provide the email address that should receive any service alerts related to Azure FarmBeats in the **FarmBeats Service Alerts** section. Click Next at the bottom of the page to move to the **Dependencies** Tab.
210130
211-
6. The Parameters file is validated and the installation of the Azure resources starts. The installation takes about **25 minutes** to complete.
212-
> [!NOTE]
213-
> Inactive Cloud Shell sessions expire after **20 minutes**. Please keep the Cloud Shell session active while the installer is deploying the Azure resources. If the session times out, you will have to restart the install process.
131+
6. Copy the individual entries from the [output of AAD script](#Create-an-AAD-application) to the inputs in the AAD application section.
214132
215-
Once the installation is complete, you will receive the following output links:
216-
* **Datahub URL**: The Swagger link for accessing the Datahub APIs.
217-
* **Accelerator URL**: The web application for exploring the Azure FarmBeats Accelerator.
218-
* **Installer log file**: The log file that contains details of the installation. This log file can be used for troubleshooting the installation, if necessary.
133+
7. Enter the [Sentinel account](#Create-Sentinel-account) user name and password in the Sentinel Account section. Click Next to move to the **Review + Create** Tab
219134
220-
You can verify the completion of your Azure FarmBeats installation by doing the following checks:
135+
8. Once the entered details are validated, SELECT **OK**. The Terms of use page appears. Review the terms and select **Create** to start the installation. You will automatically be redirected to a page where you can follow the progress of the installation.
221136
222-
**Datahub**
223-
1. Log in to the Accelerator URL provided (in the format **https://\<yourdatahub-website-name>.azurewebsites.net/swagger**) with your Azure credentials.
224-
2. You should be able to see the different FarmBeats API objects and perform REST operations on the APIs.
137+
Once the installation is complete, you can verify the installation and start using FarmBeats portal by navigating to the website name you provided during installation: https://\<FarmBeats-website-name>.azurewebsites.net. You should see FarmBeats user interface with an option to create Farms.
225138
226-
**Accelerator**
227-
1. Log in to the Accelerator URL provided (in the format **https://\<youraccelerator-website-name>.azurewebsites.net/swagger**) with your Azure credentials.
228-
2. You should be able to see the Accelerator User Interface with an option to create Farms in your browser.
229-
230-
Your ability to perform the above operations indicates a successful installation of Azure FarmBeats.
139+
**Datahub** can be found at https://\<FarmBeats-website-name>-api.azurewebsites.net/swagger. Here you will see the different FarmBeats API objects and perform REST operations on the APIs.
231140
232141
## Upgrade
233-
In the Public Preview version, to upgrade an existing installation of Azure FarmBeats, you will have to run the Installation command in Cloud Shell again, with an additional “**updateIfExists**” parameter in the Parameters file set to “**true**”. Refer the last line of the below JSON sample for the update parameter.
234-
235-
```json
236-
{
237-
"sku":"both",
238-
"subscriptionId":"da9xxxec-dxxf-4xxc-xxx21-xxx3ee7xxxxx",
239-
"datahubResourceGroup":"dummy-test-dh1",
240-
"location":"westus2",
241-
"datahubWebsiteName":"dummy-test-dh1",
242-
"acceleratorResourceGroup":" dummy-test-acc1",
243-
"acceleratorWebsiteName":" dummy-test-acc1",
244-
"sentinelUsername":"dummy-dev",
245-
"notificationEmailAddress":"[email protected]",
246-
"updateIfExists":true
247-
}
248-
```
249-
The command updates the existing Azure FarmBeats installation to the latest version, and provides you with the output links.
142+
143+
//Atin to fill it in if we are shipping upgrades with mid-Jan
250144
251145
## Uninstall
252146
253147
To uninstall Azure FarmBeats Datahub or Accelerator, complete the following steps:
254148
255-
1. Log in to the Azure portal and **delete the resource groups** in which these components are installed.
149+
1. Log in to the Azure portal and **delete the resource groups** in which these components are installed.
256150
257-
2. Go to Azure Active Directory & **delete the Azure AD application** linked to the Azure FarmBeats installation. This will remove the Azure FarmBeats installation from your Azure subscription.
151+
2. Go to Azure Active Directory & **delete the Azure AD application** linked to the Azure FarmBeats installation. This will remove the Azure FarmBeats installation from your Azure subscription.
258152
259153
## Next steps
154+
260155
You have learned how to install Azure FarmBeats in your Azure subscription. Now, learn how to [add users](manage-users-in-azure-farmbeats.md#manage-users) to your Azure FarmBeats instance.

0 commit comments

Comments
 (0)