Monday, November 1, 2021

Use “Azure Notification Hub Lab” tool to import/export registration.

This article introduce how to use the “Azure Notification Hub Lab” tool to import and export registration.

 

Pre-requirement: the namespace must be standard tier. Since free/basic tier dose not support job API.

 

We can access this tool at https://azurenotificationhublab.azurewebsites.net/

 

  • Input the standard tier namespace connection string.

Hai_Yue_0-1635753477085.png

 

  • After finish loading, please load the hub data that we want to export.

Hai_Yue_1-1635753477095.png

 

  • We can export this hub registration. It need a blob storage account to store the exported registration. So we need to input the storage account name, key and container name. Those information can be found on Azure storage portal.

 

  Then we can click the Export button to export the registration. It may take a while. After the state changed from ‘Start’ to ‘Completed’. We can download the exported registration file.

Hai_Yue_2-1635753477102.png

 

Hai_Yue_3-1635753477114.png

 

  • After finish download this registration file. Please upload that registration file to a storage account. (Please notice that there is a random folder name in the exported registration blob file. So please do not use the storage setting in exported tab. )

Hai_Yue_4-1635753477124.png

 

After finish upload the registration file. Please input the uploaded storage blob file information in “Import Registration” page. Then we can import registration.

When its state changed from “Started” to “Completed”, it will finish import the registration. We can download the output log or error log to check the imported registrations and confirm whether there is any error.

Hai_Yue_5-1635753477132.png

 

Hai_Yue_6-1635753477139.png

 

  • We can also query the registration with registration id, channel id or tag to confirm whether the registration already been imported in the hub.

Hai_Yue_7-1635753477149.png

 

This tool will be useful if we want to make a backup of the registration. Or if we want to setup a secondary namespace for disaster recovery.

Please email to yuhai@microsoft.com if you have any feedback and get any issue. Thanks.

 

 

Posted at https://sl.advdat.com/3q3kpHY