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
description: This article describes how to install Azure FarmBeats in your Azure subscription
4
4
author: usha-rathnavel
5
5
ms.topic: article
6
-
ms.date: 12/11/2019
7
-
ms.author: usrathna
6
+
ms.date: 1/17/2020
7
+
ms.author: atinb
8
8
---
9
9
10
10
# Install Azure FarmBeats
@@ -15,11 +15,13 @@ Azure FarmBeats is a business-to-business offering available in Azure Marketplac
15
15
16
16
-**Datahub**: An API layer that enables aggregation, normalization, and contextualization of various agriculture data sets across different providers.
17
17
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.
19
19
20
20
## Before you start
21
+
21
22
### Components installed
22
23
24
+
//AtinB: need to understand what new components are installed now
23
25
When you install Azure FarmBeats, the following resources are provisioned in your Azure subscription:
@@ -41,6 +43,7 @@ When you install Azure FarmBeats, the following resources are provisioned in you
41
43
42
44
### Costs incurred
43
45
46
+
//AtinB: Do the costs remain the same now?
44
47
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:
45
48
46
49
* 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
49
52
### Regions supported
50
53
51
54
Currently, Azure FarmBeats is supported in public cloud environments in the following regions:
55
+
52
56
* Australia East
53
-
* Central US
57
+
* Australia Southeast
58
+
* Canada Central
59
+
* Canada East
54
60
* East US
55
-
* East US 2
56
-
* West US
57
-
* West US 2
58
61
* North Europe
59
62
* West Europe
60
-
*Southeast Asia
63
+
*West US
61
64
62
65
### Time taken
63
66
64
67
The entire setup of Azure FarmBeats, including the preparation and installation will take less than an hour.
65
68
66
-
## Prerequisites
69
+
## Prerequisites
67
70
68
71
Before you start the actual installation of Azure FarmBeats, you'll need to complete the following steps:
69
72
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
-
81
73
### Decide Subscription and Region
82
74
83
75
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.
84
76
85
77
Make a note of the **Azure Subscription ID** and the **Azure Region**.
86
78
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
97
80
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 -
99
82
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
101
85
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.
103
87
88
+
1. Download and extract the [AAD app generator script](https://aka.ms/FarmBeatsAADScript)
104
89
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.
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.
119
94
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
121
99
122
-
```azurepowershell-interactive
100
+
```azurepowershell-interactive
123
101
./create_aad_script.ps1
124
102
```
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.
149
103
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.
152
105
153
-
A sample JSON file is provided below. Download the sample and update the required details.
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.
169
109
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:
171
111
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.
186
115
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**.
188
117
189
118
## Install
190
119
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.
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.
198
122
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.
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**.
206
126
207
-
- Next, you will be prompted to enter an access token forthe 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.
208
128
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.
210
130
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.
214
132
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
219
134
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.
221
136
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.
225
138
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.
231
140
232
141
## Upgrade
233
-
In the Public Preview version, to upgrade an existing installation of Azure FarmBeats, you will have to run the Installation commandin 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.
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
250
144
251
145
## Uninstall
252
146
253
147
To uninstall Azure FarmBeats Datahub or Accelerator, complete the following steps:
254
148
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.
256
150
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.
258
152
259
153
## Next steps
154
+
260
155
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