Primary server 'XYZ' can not write to shared drive during availability group configuration
PORT 5022 was not added to secondary node's firewall

After adding rule, it worked like charm

This is how I found the solution

Open command prompt

     Telnet NODE2 5022 


This failed