You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you choose to install and use the PowerShell locally, this tutorial requires AZ PowerShell 1.4.0 or later. If you need to upgrade, see [Install Azure PowerShell module](/powershell/azure/install-az-ps). If you are running PowerShell locally, you also need to run `Connect-AzAccount` to create a connection with Azure.
@@ -29,28 +31,27 @@ The following table includes links to sample Azure PowerShell scripts for Azure
29
31
|Link|Description|
30
32
|---|---|
31
33
|**Create and configure single databases and elastic pools**||
32
-
|[Create a single database and configure a server-level firewall rule](scripts/create-and-configure-database-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script creates a single database and configures a server-level IP firewall rule. |
33
-
|[Create elastic pools and move pooled databases](scripts/move-database-between-elastic-pools-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script creates elastic pools, moves pooled databases, and changes compute sizes.|
34
+
|[Create a single database and configure a server-level firewall rule](scripts/create-and-configure-database-powershell.md)| This PowerShell script creates a single database and configures a server-level IP firewall rule. |
35
+
|[Create elastic pools and move pooled databases](scripts/move-database-between-elastic-pools-powershell.md)| This PowerShell script creates elastic pools, moves pooled databases, and changes compute sizes.|
34
36
|**Configure geo-replication and failover**||
35
-
|[Configure and fail over a single database using active geo-replication](scripts/setup-geodr-and-failover-database-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script configures active geo-replication for a single database and fails it over to the secondary replica. |
36
-
|[Configure and fail over a pooled database using active geo-replication](scripts/setup-geodr-and-failover-elastic-pool-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script configures active geo-replication for a database in an elastic pool and fails it over to the secondary replica. |
37
+
|[Configure and fail over a single database using active geo-replication](scripts/setup-geodr-and-failover-database-powershell.md)| This PowerShell script configures active geo-replication for a single database and fails it over to the secondary replica. |
38
+
|[Configure and fail over a pooled database using active geo-replication](scripts/setup-geodr-and-failover-elastic-pool-powershell.md)| This PowerShell script configures active geo-replication for a database in an elastic pool and fails it over to the secondary replica. |
37
39
|**Configure a failover group**||
38
-
|[Configure a failover group for a single database](scripts/add-database-to-failover-group-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script creates a database and a failover group, adds the database to the failover group, and tests failover to the secondary server. |
39
-
|[Configure a failover group for an elastic pool](scripts/add-elastic-pool-to-failover-group-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script creates a database, adds it to an elastic pool, adds the elastic pool to the failover group, and tests failover to the secondary server. |
40
+
|[Configure a failover group for a single database](scripts/add-database-to-failover-group-powershell.md)| This PowerShell script creates a database and a failover group, adds the database to the failover group, and tests failover to the secondary server. |
41
+
|[Configure a failover group for an elastic pool](scripts/add-elastic-pool-to-failover-group-powershell.md)| This PowerShell script creates a database, adds it to an elastic pool, adds the elastic pool to the failover group, and tests failover to the secondary server. |
40
42
|**Scale a single database and an elastic pool**||
41
-
|[Scale a single database](scripts/monitor-and-scale-database-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script monitors the performance metrics of a single database, scales it to a higher compute size, and creates an alert rule on one of the performance metrics. |
42
-
|[Scale an elastic pool](scripts/monitor-and-scale-pool-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script monitors the performance metrics of an elastic pool, scales it to a higher compute size, and creates an alert rule on one of the performance metrics. |
43
+
|[Scale a single database](scripts/monitor-and-scale-database-powershell.md)| This PowerShell script monitors the performance metrics of a single database, scales it to a higher compute size, and creates an alert rule on one of the performance metrics. |
44
+
|[Scale an elastic pool](scripts/monitor-and-scale-pool-powershell.md)| This PowerShell script monitors the performance metrics of an elastic pool, scales it to a higher compute size, and creates an alert rule on one of the performance metrics. |
43
45
|**Restore, copy, and import a database**||
44
-
|[Restore a database](scripts/restore-database-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script restores a database from a geo-redundant backup and restores a deleted database to the latest backup. |
45
-
|[Copy a database to a new server](scripts/copy-database-to-new-server-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script creates a copy of an existing database in a new server. |
46
-
|[Import a database from a bacpac file](scripts/import-from-bacpac-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script imports a database into Azure SQL Database from a bacpac file. |
46
+
|[Restore a database](scripts/restore-database-powershell.md)| This PowerShell script restores a database from a geo-redundant backup and restores a deleted database to the latest backup. |
47
+
|[Copy a database to a new server](scripts/copy-database-to-new-server-powershell.md)| This PowerShell script creates a copy of an existing database in a new server. |
48
+
|[Import a database from a bacpac file](scripts/import-from-bacpac-powershell.md)| This PowerShell script imports a database into Azure SQL Database from a bacpac file. |
47
49
|**Sync data between databases**||
48
-
|[Sync data between databases](scripts/sql-data-sync-sync-data-between-sql-databases.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script configures Data Sync to sync between multiple databases in Azure SQL Database. |
49
-
|[Sync data between SQL Database and SQL Server on-premises](scripts/sql-data-sync-sync-data-between-azure-onprem.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script configures Data Sync to sync between a database in Azure SQL Database and a SQL Server on-premises database. |
50
-
|[Update the SQL Data Sync sync schema](scripts/update-sync-schema-in-sync-group.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script adds or removes items from the Data Sync sync schema. |
50
+
|[Sync data between databases](scripts/sql-data-sync-sync-data-between-sql-databases.md)| This PowerShell script configures Data Sync to sync between multiple databases in Azure SQL Database. |
51
+
|[Sync data between SQL Database and SQL Server on-premises](scripts/sql-data-sync-sync-data-between-azure-onprem.md)| This PowerShell script configures Data Sync to sync between a database in Azure SQL Database and a SQL Server on-premises database. |
52
+
|[Update the SQL Data Sync sync schema](scripts/update-sync-schema-in-sync-group.md)| This PowerShell script adds or removes items from the Data Sync sync schema. |
51
53
52
-
53
-
Learn more about the [Single-database Azure PowerShell API](single-database-manage.md#powershell).
54
+
Learn more about the [Single-database Azure PowerShell API](single-database-manage.md#powershell).
@@ -60,18 +61,17 @@ The following table includes links to sample Azure PowerShell scripts for Azure
60
61
|---|---|
61
62
|**Create and configure managed instances**||
62
63
|[Create and manage a managed instance](../managed-instance/scripts/create-configure-managed-instance-powershell.md)| This PowerShell script shows you how to create and manage a managed instance using Azure PowerShell. |
63
-
|[Create and manage a managed instance using the Azure Resource Manager template](../managed-instance/create-template-quickstart.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script shows you how to create and manage a managed instance using Azure PowerShell and the Azure Resource Manager template.|
64
+
|[Create and manage a managed instance using the Azure Resource Manager template](../managed-instance/create-template-quickstart.md)| This PowerShell script shows you how to create and manage a managed instance using Azure PowerShell and the Azure Resource Manager template.|
64
65
|[Restore database to a managed instance in another geo-region](../managed-instance/scripts/restore-geo-backup.md)| This PowerShell script takes a backup of one database and restores it to another region. This is known as a geo-restore disaster-recovery scenario. |
65
66
|**Configure transparent data encryption**||
66
-
|[Manage transparent data encryption in a managed instance using your own key from Azure Key Vault](../managed-instance/scripts/transparent-data-encryption-byok-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script configures transparent data encryption in a Bring Your Own Key scenario for Azure SQL Managed Instance, using a key from Azure Key Vault.|
67
+
|[Manage transparent data encryption in a managed instance using your own key from Azure Key Vault](../managed-instance/scripts/transparent-data-encryption-byok-powershell.md)| This PowerShell script configures transparent data encryption in a Bring Your Own Key scenario for Azure SQL Managed Instance, using a key from Azure Key Vault.|
67
68
|**Configure a failover group**||
68
-
|[Configure a failover group for a managed instance](../managed-instance/scripts/add-to-failover-group-powershell.md?toc=%2fpowershell%2fmodule%2ftoc.json)| This PowerShell script creates two managed instances, adds them to a failover group, and then tests failover from the primary managed instance to the secondary managed instance. |
69
-
69
+
|[Configure a failover group for a managed instance](../managed-instance/scripts/add-to-failover-group-powershell.md)| This PowerShell script creates two managed instances, adds them to a failover group, and then tests failover from the primary managed instance to the secondary managed instance. |
70
70
71
71
Learn more about [PowerShell cmdlets for Azure SQL Managed Instance](../managed-instance/api-references-create-manage-instance.md#powershell-create-and-configure-managed-instances).
72
72
73
73
---
74
74
75
-
## Additional resources
75
+
## Next steps
76
76
77
-
The examples listed on this page use the [PowerShell cmdlets](/powershell/module/az.sql/) for creating and managing Azure SQL resources. Additional cmdlets for running queries and performing many database tasks are located in the [sqlserver](/powershell/module/sqlserver/) module. For more information, see [SQL Server PowerShell](/sql/powershell/sql-server-powershell/).
77
+
The examples listed on this page use [az.sql PowerShell cmdlets](/powershell/module/az.sql/) for creating and managing Azure SQL resources. Additional cmdlets for running queries and performing many database tasks are located in the [SqlServer PowerShell cmdlets](/powershell/module/sqlserver/). For more information, see [SQL Server PowerShell](/sql/powershell/sql-server-powershell/).
0 commit comments