Hello siri
Welcome to Microsoft Q&A Platform, thanks for posting your query here.
You mentioned you have already checked "Enabled the ports in network group validated the windows firewall defender, subnets looks okay"
To further troubleshoot this issue, check below recommendations to see if those help:
-Check if the RabbitMQ service is running on both virtual machines.
-Check if the RabbitMQ ports are open on both virtual machines. RabbitMQ uses port 5672 for non-SSL connections and port 5671 for SSL connections
-Check if the virtual machines are in the same subnet. If they are not in the same subnet, they will not be able to communicate with each other.
-Check if the network security group (NSG) rules allow traffic on the RabbitMQ ports. You can check the NSG rules by going to the Azure portal, selecting the NSG associated with the subnet of the virtual machines, and checking if there are any rules that block traffic on the RabbitMQ ports.
Hope this helps.