Hi Tim Cruise
It's possible to use port 25 for outbound communication on Azure App Service and Azure Functions through the virtual network integration feature or when using App Service Environment v3. It's also possible to send port 25 outbound communication through Azure Firewall. Sending email on Port 25 is unsupported for all other Azure Platform-as-a-Service (PaaS) resources. This is in place to prevent abuse of the service and stop spammers etc.+
Recommended method of sending email
We recommend you use authenticated SMTP relay services to send email from Azure VMs or from Azure App Service. Connections to authenticated SMTP relay services are typically on TCP port 587 which is not blocked.
Depending on your subscription type it may be possible to have this block removed by logging a support ticket with Microsoft and requesting the block to be removed for your subscription.
Hope this helps.
--please don't forget to upvote
and Accept as answer
if the reply is helpful--