Skip to content

Commit 29077d7

Browse files
authored
Merge pull request #186059 from carlrab/azurecli_azuresql
update includes
2 parents 515d11b + 34b2e01 commit 29077d7

File tree

4 files changed

+56
-44
lines changed

4 files changed

+56
-44
lines changed

articles/azure-sql/database/failover-group-add-elastic-pool-tutorial.md

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,13 @@ ms.topic: tutorial
1010
author: emlisa
1111
ms.author: emlisa
1212
ms.reviewer: kendralittle, mathoma
13-
ms.date: 01/17/2022
13+
ms.date: 01/24/2022
1414
---
1515
# Tutorial: Add an Azure SQL Database elastic pool to a failover group
1616

1717
[!INCLUDE[appliesto-sqldb](../includes/appliesto-sqldb.md)]
1818

19-
Configure a failover group for an Azure SQL Database elastic pool and test failover using the Azure portal. In this tutorial, you will learn how to:
19+
Configure a failover group for an Azure SQL Database elastic pool and test failover using the Azure portal. In this tutorial, you'll learn how to:
2020

2121
> [!div class="checklist"]
2222
>
@@ -42,26 +42,29 @@ To complete the tutorial, make sure you have the following items:
4242

4343
# [Azure CLI](#tab/azure-cli)
4444

45-
To complete the tutorial, make sure you have the following items:
45+
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
4646

47-
- An Azure subscription. [Create a free account](https://azure.microsoft.com/free/) if you don't already have one.
48-
- The latest version of [the Azure CLI](/cli/azure/install-azure-cli).
47+
[!INCLUDE [azure-cli-prepare-your-environment-h3.md](../../../includes/azure-cli-prepare-your-environment-h3.md)]
48+
49+
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](../../../includes/cli-launch-cloud-shell-sign-in.md)]
4950

5051
---
5152

5253
## 1 - Create a single database
5354

55+
In this step, you create a resource group, server, single database, and server-level IP firewall rule for access to the server.
56+
5457
[!INCLUDE [sql-database-create-single-database](../includes/sql-database-create-single-database.md)]
5558

5659
## 2 - Add the database to an elastic pool
5760

58-
In this step, you will create an elastic pool and add your database to it.
61+
In this step, you'll create an elastic pool and add your database to it.
5962

6063
# [Azure portal](#tab/azure-portal)
6164

6265
Create your elastic pool using the Azure portal.
6366

64-
1. Select **Azure SQL** in the left-hand menu of the Azure portal. If **Azure SQL** is not in the list, select **All services**, then type "Azure SQL" in the search box. (Optional) Select the star next to **Azure SQL** to favorite it and add it as an item in the left-hand navigation.
67+
1. Select **Azure SQL** in the left-hand menu of the Azure portal. If **Azure SQL** isn't in the list, select **All services**, then type "Azure SQL" in the search box. (Optional) Select the star next to **Azure SQL** to favorite it and add it as an item in the left-hand navigation.
6568
1. Select **+ Add** to open the **Select SQL deployment option** page. You can view additional information about the different databases by selecting Show details on the Databases tile.
6669
1. Select **Elastic pool** from the **Resource type** drop-down in the **SQL Databases** tile. Select **Create** to create your elastic pool.
6770

@@ -142,19 +145,19 @@ In this step, you create your elastic pool and add your database to the elastic
142145

143146
### Set additional parameter values to create elastic pool
144147

145-
Set these additional parameter values for use in creating the an elastic pool.
148+
Set these additional parameter values for use in creating the elastic pool.
146149

147150
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="12-13":::
148151

149152
### Create elastic pool on primary server
150153

151-
Use this script to create an elastic pool with the [az sql elastic-pool create](/cli/azure/sql/elastic-pool#az-sql-elastic-pool-create) command.
154+
Use the [az sql elastic-pool create](/cli/azure/sql/elastic-pool#az-sql-elastic-pool-create) command to create an elastic pool.
152155

153156
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="29-31":::
154157

155158
### Add database to elastic pool
156159

157-
Use this script to add a database to an elastic pool with the [az sql db update](/cli/azure/sql/db#az_sql_db_update) command.
160+
Use the [az sql db update](/cli/azure/sql/db#az_sql_db_update) command to add a database to an elastic pool.
158161

159162
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="32-34":::
160163

@@ -169,13 +172,13 @@ This portion of the tutorial uses the following Azure CLI cmdlets:
169172

170173
## 3 - Create the failover group
171174

172-
In this step, you will create a [failover group](auto-failover-group-overview.md) between an existing server and a new server in another region. Then add the elastic pool to the failover group.
175+
In this step, you'll create a [failover group](auto-failover-group-overview.md) between an existing server and a new server in another region. Then add the elastic pool to the failover group.
173176

174177
# [Azure portal](#tab/azure-portal)
175178

176179
Create your failover group using the Azure portal.
177180

178-
1. Select **Azure SQL** in the left-hand menu of the [Azure portal](https://portal.azure.com). If **Azure SQL** is not in the list, select **All services**, then type Azure SQL in the search box. (Optional) Select the star next to **Azure SQL** to favorite it and add it as an item in the left-hand navigation.
181+
1. Select **Azure SQL** in the left-hand menu of the [Azure portal](https://portal.azure.com). If **Azure SQL** isn't in the list, select **All services**, then type Azure SQL in the search box. (Optional) Select the star next to **Azure SQL** to favorite it and add it as an item in the left-hand navigation.
179182
1. Select the elastic pool created in the previous section, such as `myElasticPool`.
180183
1. On the **Overview** pane, select the name of the server under **Server name** to open the settings for the server.
181184

@@ -191,7 +194,7 @@ Create your failover group using the Azure portal.
191194
- **Server name**: Type in a unique name for the secondary server, such as `mysqlsecondary`.
192195
- **Server admin login**: Type `azureuser`
193196
- **Password**: Type a complex password that meets password requirements.
194-
- **Location**: Choose a location from the drop-down, such as `East US`. This location cannot be the same location as your primary server.
197+
- **Location**: Choose a location from the drop-down, such as `East US`. This location can't be the same location as your primary server.
195198

196199
> [!NOTE]
197200
> The server login and firewall settings must match that of your primary server.
@@ -200,7 +203,7 @@ Create your failover group using the Azure portal.
200203

201204
1. Select **Databases within the group** then select the elastic pool you created in section 2. A warning should appear, prompting you to create an elastic pool on the secondary server. Select the warning, and then select **OK** to create the elastic pool on the secondary server.
202205

203-
![Add elastic pool to failover group](./media/failover-group-add-elastic-pool-tutorial/add-elastic-pool-to-failover-group.png)
206+
![Add elastic pool to the failover group](./media/failover-group-add-elastic-pool-tutorial/add-elastic-pool-to-failover-group.png)
204207

205208
1. Select **Select** to apply your elastic pool settings to the failover group, and then select **Create** to create your failover group. Adding the elastic pool to the failover group will automatically start the geo-replication process.
206209

@@ -288,39 +291,39 @@ This portion of the tutorial uses the following PowerShell cmdlets:
288291

289292
# [Azure CLI](#tab/azure-cli)
290293

291-
In this step, you create your secondary server, failover group, elastic pool, and add a database to failover group using the Azure CLI.
294+
In this step, you use the Azure CLI to create your secondary server, failover group, elastic pool, and add a database to the failover group.
292295

293296
### Set additional parameter values to create failover group
294297

295-
Set these additional parameter values for use in creating the failover group, in addition to the values defined in the preceding script that created the primary resource group and server.
298+
Set these additional parameter values for use in creating the failover group.
296299

297300
Change the failover location as appropriate for your environment.
298301

299302
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="14-17":::
300303

301304
### Create secondary server
302305

303-
Use this script to create a secondary server with the [az sql server create](/cli/azure/sql/server#az_sql_server_create) command.
306+
Use the [az sql server create](/cli/azure/sql/server#az_sql_server_create) command to create a secondary server.
304307
> [!NOTE]
305308
> The server login and firewall settings must match that of your primary server.
306309
307310
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="35-37":::
308311

309312
### Create elastic pool on secondary server
310313

311-
Use this script to create an elastic pool on the secondary server with the [az sql elastic-pool create](/cli/azure/sql/elastic-pool#az-sql-elastic-pool-create) command.
314+
Use the [az sql elastic-pool create](/cli/azure/sql/elastic-pool#az-sql-elastic-pool-create) command to create an elastic pool on the secondary server.
312315

313316
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="38-40":::
314317

315318
### Create failover group
316319

317-
Use this script to create a failover group with the [az sql failover-group create](/cli/azure/sql/failover-group#az_sql_failover_group_create) command.
320+
Use the [az sql failover-group create](/cli/azure/sql/failover-group#az_sql_failover_group_create) command to create a failover group.
318321

319322
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="41-43":::
320323

321-
### Add database to failover group
324+
### Add database to the failover group
322325

323-
Use this script to add a database to the failover group with the command.
326+
Use the [az sql failover-group update](/cli/azure/sql/failover-group#az_sql_failover_group_update) command to add a database to the failover group.
324327

325328
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="44-48":::
326329

@@ -339,13 +342,13 @@ This portion of the tutorial uses the following Azure CLI cmdlets:
339342

340343
## 4 - Test failover
341344

342-
In this step, you will fail your failover group over to the secondary server, and then fail back using the Azure portal.
345+
In this step, you'll fail your failover group over to the secondary server, and then fail back using the Azure portal.
343346

344347
# [Azure portal](#tab/azure-portal)
345348

346349
Test failover of your failover group using the Azure portal.
347350

348-
1. Select **Azure SQL** in the left-hand menu of the [Azure portal](https://portal.azure.com). If **Azure SQL** is not in the list, select **All services**, then type Azure SQL in the search box. (Optional) Select the star next to **Azure SQL** to favorite it and add it as an item in the left-hand navigation.
351+
1. Select **Azure SQL** in the left-hand menu of the [Azure portal](https://portal.azure.com). If **Azure SQL** isn't in the list, select **All services**, then type Azure SQL in the search box. (Optional) Select the star next to **Azure SQL** to favorite it and add it as an item in the left-hand navigation.
349352
1. Select the elastic pool created in the previous section, such as `myElasticPool`.
350353
1. Select the name of the server under **Server name** to open the settings for the server.
351354

@@ -443,19 +446,19 @@ Test failover using the Azure CLI.
443446

444447
### Verify the roles of each server
445448

446-
Use this script to confirm the roles of each server with the [az sql failover-group show](/cli/azure/sql/failover-group#az_sql_failover_group_show) command.
449+
Use the [az sql failover-group show](/cli/azure/sql/failover-group#az_sql_failover_group_show) command to confirm the roles of each server in the failover group.
447450

448451
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="49-51":::
449452

450453
### Fail over to the secondary server
451454

452-
Use this script to failover to the secondary server and verify a successful failover with the [az sql failover-group set-primary](/cli/azure/sql/failover-group#az_sql_failover_group_set_primary) and [az sql failover-group show](/cli/azure/sql/failover-group#az_sql_failover_group_show) commands.
455+
Use the [az sql failover-group set-primary](/cli/azure/sql/failover-group#az_sql_failover_group_set_primary) command to fail over to the secondary server. Use the [az sql failover-group show](/cli/azure/sql/failover-group#az_sql_failover_group_show) command to verify a successful failover.
453456

454457
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="52-57":::
455458

456459
### Revert failover group back to the primary server
457460

458-
Use this script to fail back to the primary server with the [az sql failover-group set-primary](/cli/azure/sql/failover-group#az_sql_failover_group_set_primary) command.
461+
Use the [az sql failover-group set-primary](/cli/azure/sql/failover-group#az_sql_failover_group_set_primary) command to fail back to the primary server.
459462

460463
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="58-60":::
461464

articles/azure-sql/database/failover-group-add-single-database-tutorial.md

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ ms.topic: tutorial
1010
author: emlisa
1111
ms.author: emlisa
1212
ms.reviewer: kendralittle, mathoma
13-
ms.date: 01/17/2022
13+
ms.date: 01/24/2022
1414
---
1515
# Tutorial: Add an Azure SQL Database to an autofailover group
1616

@@ -41,15 +41,18 @@ To complete the tutorial, make sure you have the following items:
4141

4242
# [Azure CLI](#tab/azure-cli)
4343

44-
To complete the tutorial, make sure you have the following items:
44+
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
4545

46-
- An Azure subscription. [Create a free account](https://azure.microsoft.com/free/) if you don't already have one.
47-
- The latest version of [the Azure CLI](/cli/azure/install-azure-cli).
46+
[!INCLUDE [azure-cli-prepare-your-environment-h3.md](../../../includes/azure-cli-prepare-your-environment-h3.md)]
47+
48+
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](../../../includes/cli-launch-cloud-shell-sign-in.md)]
4849

4950
---
5051

5152
## 1 - Create a database
5253

54+
In this step, you create a resource group, server, single database, and server-level IP firewall rule for access to the server.
55+
5356
[!INCLUDE [sql-database-create-single-database](../includes/sql-database-create-single-database.md)]
5457

5558
## 2 - Create the failover group
@@ -181,15 +184,15 @@ Change the failover location as appropriate for your environment.
181184

182185
### Create the secondary server
183186

184-
Use this script to create a secondary server with the [az sql server create](/cli/azure/sql/server#az_sql_server_create) command.
187+
Use the [az sql server create](/cli/azure/sql/server#az_sql_server_create) command to create a secondary server with .
185188
> [!NOTE]
186189
> The server login and firewall settings must match that of your primary server.
187190
188191
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="27-29":::
189192

190193
### Create the failover group
191194

192-
Use this script to create a failover group with the [az sql failover-group create](/cli/azure/sql/failover-group#az_sql_failover_group_create) command.
195+
Use the [az sql failover-group create](/cli/azure/sql/failover-group#az_sql_failover_group_create) command to create a failover group.
193196

194197
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="30-32":::
195198

@@ -299,19 +302,19 @@ Test failover using the Azure CLI.
299302

300303
### Verify the roles of each server
301304

302-
Use this script to confirm the roles of each server with the [az sql failover-group show](/cli/azure/sql/failover-group#az_sql_failover_group_show) command.
305+
Use the [az sql failover-group show](/cli/azure/sql/failover-group#az_sql_failover_group_show) command to confirm the roles of each server.
303306

304307
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="33-35":::
305308

306309
### Fail over to the secondary server
307310

308-
Use this script to failover to the secondary server and verify a successful failover with the [az sql failover-group set-primary](/cli/azure/sql/failover-group#az_sql_failover_group_set_primary) and [az sql failover-group show](/cli/azure/sql/failover-group#az_sql_failover_group_show) commands.
311+
Use the [az sql failover-group set-primary](/cli/azure/sql/failover-group#az_sql_failover_group_set_primary) to fail over to the secondary server. Use the [az sql failover-group show](/cli/azure/sql/failover-group#az_sql_failover_group_show) command to verify a successful failover.
309312

310313
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="36-41":::
311314

312315
### Revert failover group back to the primary server
313316

314-
Use this script to fail back to the primary server with the [az sql failover-group set-primary](/cli/azure/sql/failover-group#az_sql_failover_group_set_primary) command.
317+
Use the [az sql failover-group set-primary](/cli/azure/sql/failover-group#az_sql_failover_group_set_primary) command to fail back to the primary server.
315318

316319
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="42-44":::
317320

0 commit comments

Comments
 (0)