Hi Nitya V,
Thank you for reaching out and welcome to Microsoft Q&A.
I understand that you would like to know the root cause of the "Agent message code 20084. The process could not connect to Distributor" on a Pull subscription(SQL MI) and Publisher/Distributor (ON Prem SQL Server).
If you are sure that the firewall and network (include DNS) are fine. Try the followings:
- Ensure that the SQL Server Agent service accounts on both the Publisher/Distributor and the Subscriber have the necessary permissions. Such as db_owner.
- Validate connections by running this query:
sqlcmd -S <Distributor_IP>,<Port> -U <Username> -P <Password>
SELECT @@SERVERNAME;
- On both Distributor and Subscriber, check SQL Server error logs, this will let us know the root cause of the issue.
EXEC xp_readerrorlog;
I hope this is helpful! Do not hesitate to let me know if you have any other questions.
** Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful ** so that others in the community facing similar issues can easily find the solution.
Best Regards,
Sina Salam