Hi @Shanuka Thushara ,
there are limitations running an SMTP service in an Azure VM:
Troubleshoot outbound SMTP connectivity problems in Azure
In summary the limitations are based on the type of Azure Subscription:
(If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)
Regards
Andreas Baumgarten