Can Merge Replication is possible Between Azure Iaas SQL VM to On- Prem SQL VM ?

Lakshmanan, Archana 6 Reputation points
2022-10-01T00:56:50.21+00:00

Please let me know how to setup merge replication between Azure Iaas to on -prem VM .
We tried it, but it failing when creating the Subscription part.

Parameter 2 is incorrect for this DBCC statement.
Supply either @credential_id or @credential_name.
Changed database context to 'reservesT'.
Warning: The merge agent job has been implicitly created and will run under the SQL Server Agent Service Account. (.Net SqlClient Data Provider)

------------------------------

For help, click: https://learn.microsoft.com/sql/relational-databases/errors-events/mssqlserver-2560-database-engine-error

------------------------------

Server Name: demo-db
Error Number: 2560
Severity: 16
State: 9
Procedure: distribution.sys.sp_MSadd_merge_agent
Line Number: 376

SQL Server on Azure Virtual Machines
Azure Site Recovery
Azure Site Recovery
An Azure native disaster recovery service. Previously known as Microsoft Azure Hyper-V Recovery Manager.
634 questions
0 comments No comments
{count} vote

3 answers

Sort by: Most helpful
  1. risolis 8,701 Reputation points
    2022-10-03T02:35:46.1+00:00

    Hello @Lakshmanan, Archana

    Thank you for posting on this community space.

    I am wondering If you are referring to a specific issue with your SQL VM server or if you are referring to Azure Site Recovery replication procedure.

    Also, from what I understood about your case scenario description was to keep an identical replica data between azure and on-premises environment but please feel free to correct me on this one.

    Looking forward to your feedback.

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    0 comments No comments

  2. Lakshmanan, Archana 6 Reputation points
    2022-10-03T13:42:08.143+00:00

    Yes I am looking for solving existing issue..

    Our scenario is we need to have merge replica between a Azure Iaas VM and On-prem Iaas SQL.

    Presently we have merge replication between 3 different location on- Prem SQL VM. Now we migrated one central US SQL On -prem VM to Azure VM.

    Remaining 2 location On-Prem are not planned for migration to Azure this year.

    So we like to know whether it possible to setup merge replica between a Azure Iaas VM and On-prem Iaas SQL?

    Please let us know , What are the options available to setup this?

    Hope this clarify your question.

    0 comments No comments

  3. risolis 8,701 Reputation points
    2022-10-04T06:34:54.737+00:00

    Hello @Lakshmanan, Archana

    Many thanks for sharing that great info.

    It is possible to do that with just re-protecting the VM stated from on-premises... Moreover, I am wondering if you are using the Classic ASR or the Preview feature for ASR at this moment.

    Looking forward to your feedback.

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.