Skip to content

Commit 4725166

Browse files
committed
ready to test md files-samples hosting sh scripts
1 parent 96f6d8f commit 4725166

19 files changed

Lines changed: 39 additions & 50 deletions

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -397,9 +397,7 @@ This script uses the following commands. Each command in the table links to comm
397397

398398
# [Azure CLI](#tab/azure-cli)
399399

400-
```azurecli-interactive
401400
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="4-47":::
402-
```
403401

404402
This script uses the following commands. Each command in the table links to command specific documentation.
405403

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,15 +34,13 @@ az account set -s $subscription # ...or use 'az login'
3434

3535
### Run the script
3636

37-
```azurecli-interactive
3837
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-single-db-to-failover-group-az-cli.sh" range="4-47":::
39-
```
4038

4139
### Clean up deployment
4240

4341
Use the following command to remove the resource group and all resources associated with it.
4442

45-
```azurecli-interactive
43+
```azurecli
4644
az group delete --name $resourceGroup
4745
```
4846

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ az account set -s $subscription # ...or use 'az login'
3232

3333
### Run the script
3434

35-
```azurecli-interactive
3635
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/failover-groups/add-elastic-pool-to-failover-group-az-cli.sh" range="4-62":::
37-
```
3836

3937
### Clean up deployment
4038

4139
Use the following command to remove the resource group and all resources associated with it.
4240

43-
```azurecli-interactive
41+
```azurecli
4442
az group delete --name $resourceGroup
4543
```
4644

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,13 @@ az account set -s $subscription # ...or use 'az login'
3232

3333
### Run the script
3434

35-
```azurecli-interactive
36-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/create-and-configure-database/create-and-configure-database.sh" range="4-37":::
37-
```
35+
:::code language="code-azurecli" source="~/azure_cli_scripts/sql-database/database-auditing-and-threat-detection/database-auditing-and-threat-detection.sh" range="4-37":::
3836

3937
### Clean up deployment
4038

4139
Use the following command to remove the resource group and all resources associated with it.
4240

43-
```azurecli-interactive
41+
```azurecli
4442
az group delete --name $resourceGroup
4543
```
4644

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

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,14 +34,6 @@ az account set -s $subscription # ...or use 'az login'
3434

3535
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/backup-database/backup-database.sh" range="4-40":::
3636

37-
### Run the script
38-
39-
:::code language="azurecli-interactive" source="~/azure_cli_scripts/sql-database/backup-database/backup-database.sh" range="4-40":::
40-
41-
### Run the script
42-
43-
:::code language="code-azurecli-interactive" source="~/azure_cli_scripts/sql-database/backup-database/backup-database.sh" range="4-40":::
44-
4537
### Clean up deployment
4638

4739
Use the following command to remove the resource group and all resources associated with it.

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,15 @@ az account set -s $subscription # ...or use 'az login'
3232

3333
### Run the script
3434

35-
[!code-azurecli-interactive[main](../../../../cli_scripts/sql-database/copy-database-to-new-server/copy-database-to-new-server.sh "Copy database to new server")]
36-
37-
```azurecli-interactive
3835
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/copy-database-to-new-server/copy-database-to-new-server.sh" range="4-36":::
39-
```
4036

4137
### Clean up deployment
4238

4339
Use the following command to remove the resource group and all resources associated with it.
4440

45-
```azurecli-interactive
46-
az group delete --name $resourceGroup
41+
```azurecli
4742
az group delete --name $targetResourceGroup
43+
az group delete --name $resourceGroup
4844
```
4945

5046
## Sample reference

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,13 @@ az account set -s $subscription # ...or use 'az login'
3535

3636
### Run the script
3737

38-
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/create-and-configure-database/create-and-configure-database.sh" range="15-20":::
38+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/create-and-configure-database/create-and-configure-database.sh" range="3-33":::
3939

4040
### Clean up deployment
4141

4242
Use the following command to remove the resource group and all resources associated with it.
4343

44-
```azurecli-interactive
44+
```azurecli
4545
az group delete --name $resourceGroup
4646
```
4747

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,13 @@ az account set -s $subscription # ...or use 'az login'
3333

3434
### Run the script
3535

36-
[!code-azurecli-interactive[main](../../../../cli_scripts/sql-database/import-from-bacpac/import-from-bacpac.sh "Create SQL Database")]
36+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/import-from-bacpac/import-from-bacpac.sh" range="4-48":::
3737

3838
### Clean up deployment
3939

4040
Use the following command to remove the resource group and all resources associated with it.
4141

42-
```azurecli-interactive
42+
```azurecli
4343
az group delete --name $resourceGroup
4444
```
4545

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ az account set -s $subscription # ...or use 'az login'
3535

3636
### Run the script
3737

38-
[!code-azurecli-interactive[main](../../../../cli_scripts/sql-database/monitor-and-scale-database/monitor-and-scale-database.sh "Monitor and scale a database in Azure SQL Database")]
38+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/monitor-and-scale-database/monitor-and-scale-database.sh" range="4-32":::
3939

4040
> [!TIP]
4141
> 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.
@@ -44,7 +44,7 @@ az account set -s $subscription # ...or use 'az login'
4444

4545
Use the following command to remove the resource group and all resources associated with it.
4646

47-
```azurecli-interactive
47+
```azurecli
4848
az group delete --name $resourceGroup
4949
```
5050

azure-sql/database/scripts/move-database-between-elastic-pools-cli.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ az account set -s $subscription # ...or use 'az login'
3232

3333
### Run the script
3434

35-
[!code-azurecli-interactive[main](../../../../cli_scripts/sql-database/move-database-between-pools/move-database-between-pools.sh "Move database between pools")]
35+
:::code language="azurecli" source="~/azure_cli_scripts/sql-database/move-database-between-pools/move-database-between-pools.sh" range="4-39":::
3636

3737
### Clean up deployment
3838

3939
Use the following command to remove the resource group and all resources associated with it.
4040

41-
```azurecli-interactive
41+
```azurecli
4242
az group delete --name $resourceGroup
4343
```
4444

0 commit comments

Comments
 (0)