Reputation: 1565
Is it possible to restore all subscriptions of an Azure ServiceBus topic as a backup copy and to import them into another ServiceBus namespace? We have a ServiceBus namespace with 1000 topic subscriptions and would like to back them up in the event that the ServiceBus namespace is accidentally deleted, for example.
Update: I found out that I can export the template of the ServiceBus Namespace Resource which includes the subscriptions. How can I export the template automatically and periodically?
Upvotes: 0
Views: 1989
Reputation: 26012
There are likely various ways to achieve it. A simple export could be done from the portal by navigating to the source namespace and under the Automation
section choosing Export template.
That will generate an ARM template that can be tweaked and used to generate another Azure Service Bus namespace with all the entities and their settings.
The same mechanism can be used later to upload your ARM template and parameters file and rebuild/create a namespace.
Alternatively, you could use Azure PowerShell or AZ CLI to deploy.
Upvotes: 1