Skip to content

Commit 421f79c

Browse files
authored
Merge pull request #191204 from carlrab/html_azuresql
Html azuresql
2 parents 2ea50d0 + c4da004 commit 421f79c

21 files changed

+69
-77
lines changed

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

Lines changed: 17 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ ms.date: 01/26/2022
1616
[!INCLUDE[appliesto-sqldb](../includes/appliesto-sqldb.md)]
1717

1818
> [!div class="op_single_selector"]
19-
> * [Azure SQL Database (single database)](failover-group-add-single-database-tutorial.md)
20-
> * [Azure SQL Database (elastic pool)](failover-group-add-elastic-pool-tutorial.md)
21-
> * [Azure SQL Managed Instance](../managed-instance/failover-group-add-instance-tutorial.md)
22-
19+
>
20+
> - [Azure SQL Database (single database)](failover-group-add-single-database-tutorial.md)
21+
> - [Azure SQL Database (elastic pool)](failover-group-add-elastic-pool-tutorial.md)
22+
> - [Azure SQL Managed Instance](../managed-instance/failover-group-add-instance-tutorial.md)
2323
24-
Configure an [auto-failover group](auto-failover-group-sql-db.md) for an Azure SQL Database elastic pool and test failover using the Azure portal.
24+
Configure an [auto-failover group](auto-failover-group-sql-db.md) for an Azure SQL Database elastic pool and test failover using the Azure portal.
2525

2626
In this tutorial, you'll learn how to:
2727

@@ -51,10 +51,6 @@ To complete the tutorial, make sure you have the following items:
5151

5252
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
5353

54-
[!INCLUDE [azure-cli-prepare-your-environment-h3.md](../../../includes/azure-cli-prepare-your-environment-h3.md)]
55-
56-
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](../../../includes/cli-launch-cloud-shell-sign-in.md)]
57-
5854
---
5955

6056
## 1 - Create a single database
@@ -154,19 +150,19 @@ In this step, you create your elastic pool and add your database to the elastic
154150

155151
Set these additional parameter values for use in creating the elastic pool.
156152

157-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="12-13":::
153+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="SetPoolParameterValues":::
158154

159155
### Create elastic pool on primary server
160156

161157
Use the [az sql elastic-pool create](/cli/azure/sql/elastic-pool#az-sql-elastic-pool-create) command to create an elastic pool.
162158

163-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="29-31":::
159+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="CreateElasticPool":::
164160

165161
### Add database to elastic pool
166162

167163
Use the [az sql db update](/cli/azure/sql/db#az_sql_db_update) command to add a database to an elastic pool.
168164

169-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="32-34":::
165+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="AddDatabaseToPool":::
170166

171167
This portion of the tutorial uses the following Azure CLI cmdlets:
172168

@@ -306,33 +302,33 @@ Set these additional parameter values for use in creating the failover group.
306302

307303
Change the failover location as appropriate for your environment.
308304

309-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="14-17":::
305+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="SetFailoverParameterValues":::
310306

311307
### Create secondary server
312308

313309
Use the [az sql server create](/cli/azure/sql/server#az_sql_server_create) command to create a secondary server.
314310
> [!NOTE]
315311
> The server login and firewall settings must match that of your primary server.
316312
317-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="35-37":::
313+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="CreateSecondaryServer":::
318314

319315
### Create elastic pool on secondary server
320316

321317
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.
322318

323-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="38-40":::
319+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="CreateElasticPoolOnSecondary":::
324320

325321
### Create failover group
326322

327323
Use the [az sql failover-group create](/cli/azure/sql/failover-group#az_sql_failover_group_create) command to create a failover group.
328324

329-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="41-43":::
325+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="CreateFailoverGroup":::
330326

331327
### Add database to the failover group
332328

333329
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.
334330

335-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="44-48":::
331+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="AddDatabaseToFailoverGroup":::
336332

337333
### Azure CLI failover group creation reference
338334

@@ -455,19 +451,19 @@ Test failover using the Azure CLI.
455451

456452
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.
457453

458-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="49-51":::
454+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="VerifyRoles":::
459455

460456
### Fail over to the secondary server
461457

462458
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.
463459

464-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="52-57":::
460+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="FailingOver":::
465461

466462
### Revert failover group back to the primary server
467463

468464
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.
469465

470-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="58-60":::
466+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="FailingBack":::
471467

472468
### Azure CLI failover group management reference
473469

@@ -555,7 +551,7 @@ This script uses the following commands. Each command in the table links to comm
555551

556552
# [Azure CLI](#tab/azure-cli)
557553

558-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="4-60":::
554+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="FullScript":::
559555

560556
# [Azure portal](#tab/azure-portal)
561557

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

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,6 @@ To complete the tutorial, make sure you have the following items:
4747

4848
[!INCLUDE [quickstarts-free-trial-note](../../../includes/quickstarts-free-trial-note.md)]
4949

50-
[!INCLUDE [azure-cli-prepare-your-environment-h3.md](../../../includes/azure-cli-prepare-your-environment-h3.md)]
51-
52-
[!INCLUDE [cli-launch-cloud-shell-sign-in.md](../../../includes/cli-launch-cloud-shell-sign-in.md)]
53-
5450
---
5551

5652
## 1 - Create a database
@@ -184,21 +180,21 @@ Set these additional parameter values for use in creating the failover group, in
184180

185181
Change the failover location as appropriate for your environment.
186182

187-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="12-15":::
183+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" id="SetAdditionalParameterValues":::
188184

189185
### Create the secondary server
190186

191187
Use the [az sql server create](/cli/azure/sql/server#az_sql_server_create) command to create a secondary server with .
192188
> [!NOTE]
193189
> The server login and firewall settings must match that of your primary server.
194190
195-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="27-29":::
191+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" id="CreateSecondaryServer":::
196192

197193
### Create the failover group
198194

199195
Use the [az sql failover-group create](/cli/azure/sql/failover-group#az_sql_failover_group_create) command to create a failover group.
200196

201-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="30-32":::
197+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" id="CreateFailoverGroup":::
202198

203199
### Azure CLI failover group creation reference
204200

@@ -308,19 +304,19 @@ Test failover using the Azure CLI.
308304

309305
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.
310306

311-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="33-35":::
307+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" id="VerifyRole":::
312308

313309
### Fail over to the secondary server
314310

315311
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.
316312

317-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="36-41":::
313+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" id="FailingOver":::
318314

319315
### Revert failover group back to the primary server
320316

321317
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.
322318

323-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="42-44":::
319+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" id="FailingBack":::
324320

325321
### Azure CLI failover group management reference
326322

@@ -409,7 +405,7 @@ This script uses the following commands. Each command in the table links to comm
409405

410406
# [Azure CLI](#tab/azure-cli)
411407

412-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="4-47":::
408+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" id="FullScript":::
413409

414410
This script uses the following commands. Each command in the table links to command specific documentation.
415411

articles/azure-sql/database/scripts/add-database-to-failover-group-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: kendralittle, mathoma
1313
ms.date: 01/26/2022
1414
---
1515

16-
# Use Azure CLI to add a database to a failover group
16+
# Add a database to a failover group using the Azure CLI
1717

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

@@ -29,7 +29,7 @@ This Azure CLI script example creates a database in Azure SQL Database, creates
2929

3030
### Run the script
3131

32-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="4-47":::
32+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" id="FullScript":::
3333

3434
## Clean up resources
3535

articles/azure-sql/database/scripts/add-elastic-pool-to-failover-group-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: mathoma
1313
ms.date: 01/26/2022
1414
---
1515

16-
# Use CLI to add an Azure SQL Database elastic pool to a failover group
16+
# Add an Azure SQL Database elastic pool to a failover group using the Azure CLI
1717

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

@@ -29,7 +29,7 @@ This Azure CLI script example creates a single database, adds it to an elastic p
2929

3030
### Run the script
3131

32-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="4-62":::
32+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" id="FullScript":::
3333

3434
## Clean up resources
3535

articles/azure-sql/database/scripts/auditing-threat-detection-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: vanto
1313
ms.date: 01/26/2022
1414
---
1515

16-
# Use CLI to configure SQL Database auditing and Advanced Threat Protection
16+
# Configure SQL Database auditing and Advanced Threat Protection using the Azure CLI
1717

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

@@ -29,7 +29,7 @@ This Azure CLI script example configures SQL Database auditing and Advanced Thre
2929

3030
### Run the script
3131

32-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/database-auditing-and-threat-detection/database-auditing-and-threat-detection.sh" range="4-37":::
32+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/database-auditing-and-threat-detection/database-auditing-and-threat-detection.sh" id="FullScript":::
3333

3434
## Clean up resources
3535

articles/azure-sql/database/scripts/backup-database-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: mathoma
1313
ms.date: 01/26/2022
1414
---
1515

16-
# Use CLI to backup an Azure SQL single database to an Azure storage container
16+
# Backup an Azure SQL single database to an Azure storage container using the Azure CLI
1717

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

@@ -29,7 +29,7 @@ This Azure CLI example backs up a database in SQL Database to an Azure storage c
2929

3030
### Run the script
3131

32-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/backup-database/backup-database.sh" range="4-40":::
32+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/backup-database/backup-database.sh" id="FullScript":::
3333

3434
## Clean up resources
3535

articles/azure-sql/database/scripts/copy-database-to-new-server-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: mathoma
1313
ms.date: 01/26/2022
1414
---
1515

16-
# Use CLI to copy a database in Azure SQL Database to a new server
16+
# Copy a database in Azure SQL Database to a new server using the Azure CLI
1717

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

@@ -29,7 +29,7 @@ This Azure CLI script example creates a copy of an existing database in a new se
2929

3030
### Run the script
3131

32-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/copy-database-to-new-server/copy-database-to-new-server.sh" range="4-36":::
32+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/copy-database-to-new-server/copy-database-to-new-server.sh" id="FullScript":::
3333

3434
## Clean up resources
3535

articles/azure-sql/database/scripts/create-and-configure-database-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: kendralittle, mathoma
1313
ms.date: 01/26/2022
1414
---
1515

16-
# Use Azure CLI to create a single database and configure a firewall rule
16+
# Create a single database and configure a firewall rule using the Azure CLI
1717

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

@@ -29,7 +29,7 @@ This Azure CLI script example creates a single database in Azure SQL Database an
2929

3030
### Run the script
3131

32-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/create-and-configure-database/create-and-configure-database.sh" range="4-33":::
32+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/create-and-configure-database/create-and-configure-database.sh" id="FullScript":::
3333

3434
## Clean up resources
3535

articles/azure-sql/database/scripts/import-from-bacpac-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: mathoma
1313
ms.date: 01/26/2022
1414
---
1515

16-
# Use CLI to import a BACPAC file into a database in SQL Database
16+
# Import a BACPAC file into a database in SQL Database using the Azure CLI
1717

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

@@ -29,7 +29,7 @@ This Azure CLI script example imports a database from a *.bacpac* file into a da
2929

3030
### Run the script
3131

32-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/import-from-bacpac/import-from-bacpac.sh" range="4-48":::
32+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/import-from-bacpac/import-from-bacpac.sh" id="FullScript":::
3333

3434
## Clean up resources
3535

articles/azure-sql/database/scripts/monitor-and-scale-database-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ ms.reviewer: kendralittle, mathoma
1313
ms.date: 01/26/2022
1414
---
1515

16-
# Use the Azure CLI to monitor and scale a single database in Azure SQL Database
16+
# Monitor and scale a single database in Azure SQL Database using the Azure CLI
1717

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

@@ -29,7 +29,7 @@ This Azure CLI script example scales a single database in Azure SQL Database to
2929

3030
### Run the script
3131

32-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/monitor-and-scale-database/monitor-and-scale-database.sh" range="4-32":::
32+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/monitor-and-scale-database/monitor-and-scale-database.sh" id="FullScript":::
3333

3434
> [!TIP]
3535
> Use [az sql db op list](/cli/azure/sql/db/op?#az_sql_db_op_list) to get a list of operations performed on the database, and use [az sql db op cancel](/cli/azure/sql/db/op#az_sql_db_op_cancel) to cancel an update operation on the database.

0 commit comments

Comments
 (0)