question

CarolinaZamisnicu-1887 avatar image
0 Votes"
CarolinaZamisnicu-1887 asked PRADEEPCHEEKATLA-MSFT commented

EventHubs - moving event hubs entities from one namespace to another

Hello,

I have a namespace which contains five event hubs entities, but I want to organize them based on namespace. Basically, all I need to do is to move three out of five event hubs entities into another namespace. How can I move an event hub entity from one namespace to another?
Thanks in advance!

azure-event-hubs
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
0 Votes"
PRADEEPCHEEKATLA-MSFT answered PRADEEPCHEEKATLA-MSFT commented

Hello @CarolinaZamisnicu-1887,

Thanks for the question and using MS Q&A platform.

In this example I moving (four out of six) Event Hub namespace contents from on namespace to another.

103268-image.png

Steps to move event hubs entities from one namespace to another:

Step1: Export a Resource Manager template.

  • Select All resources and then select your Event Hubs namespace.

  • Select > Automation > Export template.

  • Choose Download in the Export template page.

103296-image.png

Step2: Modifying the downloaded template.

  • Select the downloaded folder and click on extract all.

  • Open the template file in the notepad or vs code and modify accordingly.

Example to remove the Event Hub entity named twitterrepro, and twittereventhub search with name and remove the references in the template.

103269-eventhubentity.gif

Step3: Deploy the template to create an Event Hubs namespace in the target region.

  • In the Azure portal, select Create a resource.

  • In Search the Marketplace, type template deployment, and select Template deployment (deploy using custom templates).

  • Select Build your own template in the editor.

  • Select Load file, and then follow the instructions to load the template.json file that you downloaded in the last section.

  • Update the value of the location property to point to the new region. To obtain location codes, see Azure locations. The code for a region is the region name with no spaces, for example, West US is equal to westus.

  • Select Save to save the template.

  • On the Custom deployment page, follow these steps:

  • Select an Azure subscription.

  • 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.

  • Select the target location or region. If you selected an existing resource group, this setting is read-only.

  • In the SETTINGS section, do the following steps:

  • Enter the new namespace name.

  • Select Review + create at the bottom of the page.

  • On the Review + create page, review settings, and then select Create.

103351-eventhubentitydeployment.gif

We have successfully moved Event Hubs entities from one namespace to another.

103327-image.png

For more details, refer to Move an Azure Event Hubs namespace to another region.

Hope this helps. Do let us know if you any further queries.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


image.png (67.8 KiB)
image.png (180.4 KiB)
eventhubentity.gif (1.8 MiB)
image.png (54.7 KiB)
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you very much for your answer!

1 Vote 1 ·

Hello @CarolinaZamisnicu-1887,

Glad to know it helped.

0 Votes 0 ·