Block File uploads outside my virtual machine

Shaik Abdul Mannan 0 Reputation points
2025-01-08T10:05:07.9733333+00:00

I want to Block the File Uploads from my Azure virtual machine to any other cloud storage or Emails. what are the possible ways to achieve this solution?

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
8,278 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Akshay kumar Mandha 2,185 Reputation points Microsoft Vendor
    2025-01-08T18:30:30.5466667+00:00

    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

    User's image


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.