|
| 1 | +--- |
| 2 | +title: Disable disaster recovery in IoT Hub |
| 3 | +titleSuffix: Azure IoT Hub |
| 4 | +description: How to send cloud-to-device messages from a back-end app and receive them on a device app using the Azure IoT SDKs for C#, Python, Java, and Node.js. |
| 5 | +author: kgremban |
| 6 | +ms.author: kgremban |
| 7 | +ms.service: azure-iot-hub |
| 8 | +ms.topic: how-to |
| 9 | +ms.date: 04/09/2025 |
| 10 | + |
| 11 | +#Customer intent: As an engineer responsible for business continuity, I want to learn how to disable disaster recovery in IoT Hub so that I can avoid data replication outside of the region. |
| 12 | +--- |
| 13 | + |
| 14 | +# Disable disaster recovery in IoT Hub |
| 15 | + |
| 16 | +IoT Hub provides Microsoft-initiated failover and manual failover by replicating data to the [paired region](../reliability//regions-paired.md) for each IoT hub. For some regions, you can avoid data replication outside of the region by disabling disaster recovery when creating an IoT hub. |
| 17 | + |
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +To disable disaster recovery in IoT Hub, you need the following: |
| 21 | + |
| 22 | +* An Azure subscription. If you don't have an Azure subscription, create a [free account](https://azure.microsoft.com/free/). |
| 23 | +* An Azure IoT Hub. If you don't have an IoT hub, create one using the [Azure portal](https://portal.azure.com/). |
| 24 | +* The following regions support disabling disaster recovery: |
| 25 | + * **Brazil South**; paired region, South Central US. |
| 26 | + * **Southeast Asia (Singapore)**; paired region, East Asia (Hong Kong SAR). |
| 27 | + |
| 28 | +## Disable disaster recovery for new IoT hubs |
| 29 | + |
| 30 | +To disable disaster recovery in the Azure portal, follow these steps: |
| 31 | + |
| 32 | +1. Log on to the [Azure portal](https://portal.azure.com/). |
| 33 | + |
| 34 | +1. In the Azure portal, [create your IoT hub](/azure/iot-hub/create-hub?tabs=portal) in one of the [supported regions](#prerequisites). Make sure that **Disaster recovery enabled** is unselected: |
| 35 | + |
| 36 | + :::image type="content" source="media/iot-hub-ha-dr/singapore.png" alt-text="Screenshot that shows disaster recovery option for an IoT hub in Singapore region."::: |
| 37 | + |
| 38 | +1. Note that failover capability won't be available if you disable disaster recovery for an IoT hub. |
| 39 | + |
| 40 | + :::image type="content" source="media/iot-hub-ha-dr/disaster-recovery-disabled.png" alt-text="Screenshot that shows disaster recovery disabled for an IoT hub in Singapore region."::: |
| 41 | + |
| 42 | +You can also disable disaster recovery when you create an IoT hub using an [ARM template](/azure/templates/microsoft.devices/iothubs?tabs=bicep#iothubproperties). |
| 43 | + |
| 44 | +## Disable disaster recovery for existing IoT hubs |
| 45 | + |
| 46 | +To configure your existing IoT hub to disable disaster recovery: |
| 47 | + |
| 48 | +1. [Create a new IoT hub with disaster recovery disabled](#disable-disaster-recovery-for-new-iot-hubs). |
| 49 | +1. Follow [How to migrate an IoT hub](migrate-hub-state-cli.md) to manually migrate your existing IoT hub. |
| 50 | + |
| 51 | +## Related content |
| 52 | + |
| 53 | +- [Reliability in IoT Hub](../reliability/reliability-iot-hub.md) |
0 commit comments