This snapshot portion of the replication is now working. There is a special procedure available only from the command line to create the authentication for the connection from the MI to the Azure Storage account. Without that, authentication won't work.
SQL Server Managed Instance Replication Snapshot
SQL Server Managed Instance Replication Snapshot
I am working on setting up transactional replication from a SQL Managed Instance to a VM hosted SQL Server. SQL MI requires the snapshot folder for initial replication to be in Azure Storage. SQL MI does not allow Active Directory (Windows) logins.
This means I have to use an SQL login or an Azure Active Directory login to create the snapshot in the snapshot folder. When I use a SQL login, the snapshot agent service starts, but the login cannot create the snapshot subdirectory. When I use an integrated Azure Active Directory login with permissions to the Azure Storage account and file share, the snapshot agent will not start.
What is the magic combination to get the snapshot working?
Azure SQL Database
8 answers
Sort by: Most helpful
-
-
Oury Ba-MSFT 21,126 Reputation points Microsoft Employee Moderator2022-10-31T21:26:13.907+00:00 I checked this internally with our product group but seems like part of the confi is only possible only from T-SQL, not command line.
There is a blog post that talks about setting that direction. there are details on how to setup azure storage for tran replication purpose.
Database migration from Managed Instance to SQL Server with transactional replicationPlease let me know if you need more details on that
Hope this helps
Regards,
Oury -
Ray R. Mosely 1 Reputation point
2022-10-31T21:35:21.917+00:00 Correct, my mistake. It is a T-SQL process not command line. The command line is not available from an MI.
Thanks, Ray