Hi @MR BILL ,
Please read the related documents first:
Configure replication with Always On availability groups
Set up replication distribution database in Always On availability group
Replication Subscribers and Always On Availability Groups (SQL Server)
For merge subscribers, a replication administrator must manually reconfigure the subscriber, by recreating the subscription.
Here's an article for your reference, although the example in it is transactional replication.
https://www.sqlshack.com/configure-sql-server-replication-for-a-database-in-sql-server-always-on-availability-groups/
Best regards,
Seeya
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.