CmdID / az / az sql / az sql db / az sql db replica
az sql db replica set-primary
Set the primary replica database by failing over from the current primary replica database. Azure CLI reference
3 options Its page in the Azure CLI reference
Options
--database-nameName of the database to fail over.--resource-group-nameName of the resource group containing the secondary replica that will become the new primary.--server-nameName of the server containing the secondary replica that will become the new primary.