Azure / Azure/azure-cli

Azure service Bus geo-recovery automation using az bash commands

Open
#28,386 5 comments 0 reactions 0 assignees View on GitHub
act-observability-squad Auto-Assign customer-reported Service Attention Service Bus
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

In MS docs for AzureCLI, we couldn't find, az command to do perform the Switchover activity from our primary Service Bus to the Secondary Service Bus.

We are performing, below activities as part of the switchover and couldn't find the required AZ commands to fulfill our requirements.

Task 1. Re-initiate the Pairing with secondary namespace (for which the alias already present, for which we already have the alias created). Here we cold find only to create a new paring , but not with existing.

az servicebus georecovery-alias create --alias --namespace-name --partner-namespace --resource-group

Perform Failover:-

az servicebus georecovery-alias fail-over --ids --is-safe-failover y -namespace-name --resource-group

task3:- Once Failover done, Delete Ques and topics from the Primary-SB-instance Namespace. Here how to find the pending ques and topics in the primary instance to set it for deletion

az servicebus topic delete --ids pending-TopicIds --name yyyy --namespace-name --resource-group --subscription ssssss

For ques

az servicebus queue delete --ids pending-queids --name que-name --namespace-name --resource-group --subscription ssssssss

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.