Skip to content

Commit 56ec5b1

Browse files
Merge pull request #111154 from spelluru/ehubmove0413
Event Hubs - move across regions
2 parents a7b0951 + 077de90 commit 56ec5b1

File tree

5 files changed

+117
-0
lines changed

5 files changed

+117
-0
lines changed

articles/event-hubs/TOC.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@
126126
maintainContext: true
127127
- name: How-to guides
128128
items:
129+
- name: Move across regions
130+
href: move-across-regions.md
129131
- name: Use Blob Storage as checkpoint store on Azure Stack Hub
130132
href: use-blob-storage-checkpoint-store-azure-stack-hub.md
131133
- name: Migrate from Azure Service Manager (classic) APIs to Resource Manager APIs
42.7 KB
Loading
96.4 KB
Loading
118 KB
Loading
Lines changed: 115 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,115 @@
1+
---
2+
title: Move an Azure Event Hubs namespace to another region | Microsoft Docs
3+
description: This article shows you how to move an Azure Event Hubs namespace from the current region to another region.
4+
services: event-hubs
5+
author: spelluru
6+
7+
ms.service: event-hubs
8+
ms.topic: how-to
9+
ms.custom: subject-moving-resources
10+
ms.date: 04/14/2020
11+
ms.author: spelluru
12+
ms.reviewer: shvija
13+
#Customer intent: As an Azure administrator, I want to move an Event Hubs namespace to a different region so that it's closer to customers.
14+
---
15+
16+
# Move an Azure Event Hubs namespace to another region
17+
There are various scenarios in which you'd want to move your existing Event Hubs namespace from one region to another. For example, you may want to create a namespace with the same configuration for testing. You may also want to create a secondary namespace in another region as part of [disaster recovery planning](event-hubs-geo-dr.md#setup-and-failover-flow).
18+
19+
> [!NOTE]
20+
> This article shows you how to export an Azure Resource Manager template for an existing Event Hubs namespace and then use the template to create a namespace with same configuration settings in another region. However, this process doesn't move events that aren't processed yet. You need to process the events from the original namespace before deleting it.
21+
22+
## Prerequisites
23+
24+
- Ensure that the services and features that your account uses are supported in the target region.
25+
- For preview features, ensure that your subscription is whitelisted for the target region.
26+
- If you have **capture feature** enabled for event hubs in the namespace, move [Azure Storage or Azure Data Lake Store Gen 2](../storage/common/storage-account-move.md) or [Azure Data Lake Store Gen 1](../data-lake-store/data-lake-store-migration-cross-region.md) accounts before moving the Event Hubs namespace. You can also move the resource group that contains both Storage and Event Hubs namespaces to the other region by following steps similar to the ones described in this article.
27+
- If the Event Hubs namespace is in an **Event Hubs cluster**, [create a dedicated cluster](event-hubs-dedicated-cluster-create-portal.md) in the **target region** before you go through steps in this article.
28+
29+
## Prepare
30+
To get started, export a Resource Manager template. This template contains settings that describe your Event Hubs namespace.
31+
32+
1. Sign in to the [Azure portal](https://portal.azure.com).
33+
34+
2. Select **All resources** and then select your Event Hubs namespace.
35+
36+
3. Select > **Settings** > **Export template**.
37+
38+
4. Choose **Download** in the **Export template** page.
39+
40+
![Download Resource Manager template](./media/move-across-regions/download-template.png)
41+
42+
5. Locate the .zip file that you downloaded from the portal, and unzip that file to a folder of your choice.
43+
44+
This zip file contains the .json files that include the template and scripts to deploy the template.
45+
46+
47+
## Move
48+
49+
Deploy the template to create an Event Hubs namespace in the target region.
50+
51+
52+
1. In the Azure portal, select **Create a resource**.
53+
54+
2. In **Search the Marketplace**, type **template deployment**, and then press **ENTER**.
55+
56+
3. Select **Template deployment**.
57+
58+
4. Select **Create**.
59+
60+
5. Select **Build your own template in the editor**.
61+
62+
6. Select **Load file**, and then follow the instructions to load the **template.json** file that you downloaded in the last section.
63+
64+
7. Select **Save** to save the template.
65+
66+
8. On the **Custom deployment** page, follow these steps:
67+
68+
1. Select an Azure **subscription**.
69+
70+
2. Select an existing **resource group** or create one. If the source namespace was in an Event Hubs cluster, select the resource group that contains cluster in the target region.
71+
72+
3. Select the target **location** or region. If you selected an existing resource group, this setting is read-only.
73+
74+
4. In the **SETTINGS** section, do the following steps:
75+
76+
1. enter the new **namespace name**.
77+
78+
![Deploy Resource Manager template](./media/move-across-regions/deploy-template.png)
79+
80+
2. If your source namespace was in an **Event Hubs cluster**, enter names of **resource group** and **Event Hubs cluster** as part of **external ID**.
81+
82+
```
83+
/subscriptions/<AZURE SUBSCRIPTION ID>/resourceGroups/<CLUSTER'S RESOURCE GROUP>/providers/Microsoft.EventHub/clusters/<CLUSTER NAME>
84+
```
85+
3. If event hub in your namespace uses a Storage account for capturing events, specify the resource group name and the storage account for `StorageAccounts_<original storage account name>_external` field.
86+
87+
```
88+
/subscriptions/0000000000-0000-0000-0000-0000000000000/resourceGroups/<STORAGE'S RESOURCE GROUP>/providers/Microsoft.Storage/storageAccounts/<STORAGE ACCOUNT NAME>
89+
```
90+
5. Select the **I agree to the terms and conditions stated above** checkbox.
91+
92+
6. Now, select **Select Purchase** to start the deployment process.
93+
94+
## Discard or clean up
95+
After the deployment, if you want to start over, you can delete the **target Event Hubs namespace**, and repeat the steps described in the [Prepare](#prepare) and [Move](#move) sections of this article.
96+
97+
To commit the changes and complete the move of an Event Hubs namespace, delete the **source Event Hubs namespace**. Make sure that you processed all the events in the namespace before deleting the namespace.
98+
99+
To delete an Event Hubs namespace (source or target) by using the Azure portal:
100+
101+
1. In the search window at the top of Azure portal, type **Event Hubs**, and select **Event Hubs** from search results. You see the Event Hubs namespaces in a list.
102+
103+
2. Select the target namespace to delete, and select **Delete** from the toolbar.
104+
105+
![Delete namespace - button](./media/move-across-regions/delete-namespace-button.png)
106+
107+
3. On the **Delete Resources*** page, verify the selected resources, and confirm the deletion by typing **yes**, and then select **Delete**.
108+
109+
## Next steps
110+
111+
In this tutorial, you moved an Azure Event Hubs namespace from one region to another and cleaned up the source resources. To learn more about moving resources between regions and disaster recovery in Azure, refer to:
112+
113+
114+
- [Move resources to a new resource group or subscription](https://docs.microsoft.com/azure/azure-resource-manager/resource-group-move-resources)
115+
- [Move Azure VMs to another region](https://docs.microsoft.com/azure/site-recovery/azure-to-azure-tutorial-migrate)

0 commit comments

Comments
 (0)