Hi Shaik Abdul Mannan,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here
Based on your query,
Block the File Uploads from my Azure virtual machine to any other cloud storage or Emails need to do ports block in the NSG outbound should be deny for VM. By blocking these ports like 25, 587, and 465 will prevent users from sending emails, especially with attachments. These ports are used for various email protocols, with 25 being for standard SMTP, 587 for encrypted email submission using STARTTLS, and 465 for secure email submission using SSL. If you block port 80, users won't be able to upload files over unsecured web connections, while blocking port 443 will stop file uploads over secure HTTPS connections. Additionally, blocking port 445, which is used for SMB file sharing, will prevent users from transferring files to shared network drives.
For port use case please refer below documents
Port and protocol requirements for servers
SMTP
SMTP with STARTTLS
Note: - Before making any changes or setting things up, please make sure backup and all configuration
If I have understood your requirement correctly, if not please let me know. If you have any further queries, feel free to ask, and I will assist you as needed!
If you found this information helpful, please click an accepting the answerĀ and š"Upvote" on my post for other community member's reference