From c0d5f462b43a645457b054f2d29bce4f97a352f9 Mon Sep 17 00:00:00 2001 From: Masha at MSFT <32783170+MashaMSFT@users.noreply.github.com> Date: Thu, 8 Aug 2019 10:07:45 -0700 Subject: [PATCH] added missing parameter while this script was working, it was not actually adding the database to the failover group... --- .../failover-groups/add-single-db-to-failover-group-az-cli.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh b/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh index e9dcac32..5b38755b 100644 --- a/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh +++ b/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh @@ -51,7 +51,7 @@ az sql server firewall-rule create \ --start-ip-address $startip \ --end-ip-address $endip -# Create a gen5 1vCore database in the server +# Create a gen5 2vCore database in the server echo "Creating a gen5 2 vCore database..." az sql db create \ --resource-group $resourceGroupName \ @@ -78,6 +78,7 @@ az sql failover-group create \ --partner-server $drServerName \ --resource-group $resourceGroupName \ --server $serverName \ + --add-db $databaseName --failover-policy Automatic # Verify which server is secondary