I have an Azure SQL Managed Instance that is set up with geo-replication. I have a database on this MI that I want to swap out with another database by renaming them:
ALTER DATABASE mydb MODIFY NAME = mydb_old;
ALTER DATABASE mydb_new MODIFY NAME = mydb;
When I run this, I get an error error:
The operation cannot be performed since the database 'mydb' is in a replication relationship.
What do I need to do to allow me to rename the databases?