|
| 1 | +--- |
| 2 | +title: Disaster recovery for FarmBeats |
| 3 | +description: This article describes how data recovery protects from losing your data. |
| 4 | +author: uhabiba04 |
| 5 | +ms.topic: article |
| 6 | +ms.date: 04/13/2020 |
| 7 | +ms.author: v-umha |
| 8 | +--- |
| 9 | + |
| 10 | +# Disaster recovery for FarmBeats |
| 11 | + |
| 12 | +Data recovery protects you from losing your data in an event like collapse of Azure region. In such an event, you can start failover, and recover the data stored in your FarmBeats deployment. |
| 13 | + |
| 14 | +Data recovery is not a default feature in Azure FarmBeats. You can configure this feature manually by configuring the required Azure resources that are used by FarmBeats to store data in an Azure paired region. Use Active – Passive approach to enable recovery. |
| 15 | + |
| 16 | +The following sections provide information about how you can configure data recovery in Azure FarmBeats: |
| 17 | + |
| 18 | +- [Enable data redundancy](#enable-data-redundancy) |
| 19 | +- [Restore service from online backup](#restore-service-from-online-backup) |
| 20 | + |
| 21 | + |
| 22 | +## Enable data redundancy |
| 23 | + |
| 24 | +FarmBeats stores data in three Azure first party services, which are **Azure storage**, **Cosmos DB** and **Time Series Insights**. Use the following steps to enable data redundancy for these services to a paired Azure region: |
| 25 | + |
| 26 | +1. **Azure Storage** - Follow this guideline to enable data redundancy for each storage account in your FarmBbeats deployment. |
| 27 | +2. **Azure Cosmos DB** - Follow this guideline to enable data redundancy for Cosmos DB account your FarmBeats deployment. |
| 28 | +3. **Azure Time Series Insights (TSI)** - TSI currently doesn't offer data redundancy. To recover Time Series Insights data, go to your sensor/weather partner and push the data again to FarmBeats deployment. |
| 29 | + |
| 30 | +## Restore service from online backup |
| 31 | + |
| 32 | +You can initiate failover and recover data stored for which, each of the above mentioned data stores for your FarmBeats deployment. Once you've recovered the data for Azure storage and Cosmos DB, create another FarmBeats deployment in the Azure paired region and then configure the new deployment to use data from restored data stores (i.e. Azure Storage and Cosmos DB) by using the below steps: |
| 33 | + |
| 34 | +1. [Configure Cosmos DB](#configure-cosmos-db) |
| 35 | +2. [Configure Storage Account](#configure-storage-account) |
| 36 | + |
| 37 | + |
| 38 | +### Configure Cosmos DB |
| 39 | + |
| 40 | +Copy the access key of the restored Cosmos DB and update the new FarmBeats Datahub Key Vault. |
| 41 | + |
| 42 | + |
| 43 | +  |
| 44 | + |
| 45 | +> [!NOTE] |
| 46 | +> Copy the URL of restored Cosmos DB and update it in the new FarmBeats Datahub App Service Configuration. You can now delete Cosmos DB account in the new FarmBeats deployment. |
| 47 | +
|
| 48 | +  |
| 49 | + |
| 50 | +### Configure Storage Account |
| 51 | + |
| 52 | +Copy the access key of the restored storage account and update it in the new FarmBeats Datahub Key Vault. |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +>[!NOTE] |
| 57 | +> Ensure to Update Storage Account name in the new FarmBeats Batch VM config file. |
| 58 | +
|
| 59 | + |
| 60 | + |
| 61 | +Similarly, if you have enabled data recovery for your Accelerator storage account, follow the step 2 to update the accelerator Storage Account access key and name, in the new FarmBeats instance. |
0 commit comments