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
This article teaches you to use scripts, T-SQL and PowerShell, to setup[Managed Instance link feature](link-feature.md) to replicate your database from SQL Server to Azure SQL Managed Instance.
21
+
This article teaches you to use scripts, T-SQL and PowerShell, to set up[Managed Instance link feature](link-feature.md) to replicate your database from SQL Server to Azure SQL Managed Instance.
22
22
23
23
Before configuring replication for your database through the link feature, make sure you've [prepared your environment](managed-instance-link-preparation.md).
24
24
@@ -29,7 +29,7 @@ Before configuring replication for your database through the link feature, make
29
29
> Configuration on Azure side is done with PowerShell that calls SQL Managed Instance REST API. Support for Azure PowerShell and CLI will be released in the upcomming weeks. At that point this article will be updated with the simplified PowerShell scripts.
30
30
31
31
> [!TIP]
32
-
> SQL Managed Instance link database replication can be setup with [SSMS wizard](managed-instance-link-use-ssms-to-replicate-database.md).
32
+
> SQL Managed Instance link database replication can be set up with [SSMS wizard](managed-instance-link-use-ssms-to-replicate-database.md).
@@ -212,7 +212,7 @@ Finally, verify all created certificates by viewing the following DMV.
212
212
SELECT*FROMsys.certificates
213
213
```
214
214
215
-
## Mirroring endpoing on SQL Server
215
+
## Mirroring endpoint on SQL Server
216
216
217
217
If you don’t have existing Availability Group nor mirroring endpoint, the next step is to create a mirroring endpoint on SQL Server and secure it with the certificate. If you do have existing Availability Group or mirroring endpoint, go straight to the next section “Altering existing database mirroring endpoint”
218
218
To verify that you don't have an existing database mirroring endpoint created, use the following script.
@@ -312,7 +312,7 @@ With this you've successfully modified your database mirroring endpoint for SQL
312
312
313
313
## Availability Group on SQL Server
314
314
315
-
If you don't have existing AG the next step is to create an AG on SQL Server. If you do have existing AG go straight to the next section “Use existing Availability Group (AG) on SQL Serer”. A new AG needs to be created with the following parameters for Managed Instance link:
315
+
If you don't have existing AG the next step is to create an AG on SQL Server. If you do have existing AG go straight to the next section “Use existing Availability Group (AG) on SQL Server”. A new AG needs to be created with the following parameters for Managed Instance link:
316
316
- Specify SQL Server name
317
317
- Specify database name
318
318
- Failover mode MANUAL
@@ -365,11 +365,11 @@ Alternatively, in SSMS object explorer, expand the “Always On High Availabilit
365
365
366
366
## Creating SQL Managed Instance link
367
367
368
-
The final step of the setup is to create the SQL Managed Instance link. To accomplish this, a REST API call will be made. Invoking direct API calls will be replaced with PowerShell and CLI clients, which will be delivered in one of our next releases.
368
+
The final step of the set up is to create the SQL Managed Instance link. To accomplish this, a REST API call will be made. Invoking direct API calls will be replaced with PowerShell and CLI clients, which will be delivered in one of our next releases.
369
369
370
370
Invoking direct API call to Azure can be accomplished with various API clients. However, for simplicity of the process, execute the below PowerShell script from Azure Cloud Shell.
371
371
372
-
Login to Azure portal and execute the below PowerShell scripts in Azure Cloud Shell. Make the following replacements with the actual values in the script: Replace `<SubscriptionID>` with your Azure Subscription ID. Replace `<ManagedInstanceName>` with the short name of your managed instance. Replace `<AGName>` with the name of Availability Group created on SQL Server. Replace `<DAGName>` with the name of Distributed Availability Group create on SQL Server. Replace `<DatabaseName>` with the database replicated in Availability Group on SQL Server. Replace `<SQLServerAddress>` with the address address of the SQL Server. This can be a DNS name, or public IP or even private IP address, as long as the address provided can be resolved from the backend node hosting the SQL Managed Instance.
372
+
Log in to Azure portal and execute the below PowerShell scripts in Azure Cloud Shell. Make the following replacements with the actual values in the script: Replace `<SubscriptionID>` with your Azure Subscription ID. Replace `<ManagedInstanceName>` with the short name of your managed instance. Replace `<AGName>` with the name of Availability Group created on SQL Server. Replace `<DAGName>` with the name of Distributed Availability Group create on SQL Server. Replace `<DatabaseName>` with the database replicated in Availability Group on SQL Server. Replace `<SQLServerAddress>` with the address of the SQL Server. This can be a DNS name, or public IP or even private IP address, as long as the address provided can be resolved from the backend node hosting the SQL Managed Instance.
0 commit comments