I see that you are testing outbound connectivity on TCP Port 25 on your virtual machine.
Outbound SMTP traffic on TCP port 25 is blocked by the Azure platform to ensure better security for Microsoft partners and customers, protect the Azure platform, and conform to industry standards. This block applies to Azure Virtual Machines. More information and suggestions can be found here.
Microsoft recommends using authenticated SMTP relay services for sending email from Azure Virtual Machines. These services typically connect through TCP port 587, but they may also support other ports. Authenticated SMTP relay services, such as Exchange Online Protection and SendGrid, specialize in sender reputation to minimize the possibility that third-party email providers reject messages.
Using authenticated SMTP relay services is not restricted in Azure, regardless of your subscription type. If you need to send emails from your Azure VMs, consider using one of these services as an alternative to sending emails directly over TCP port 25.
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.