Share via

NSG Subnet Implementation

FunMum 140 Reputation points
2024-09-06T20:29:07.2133333+00:00

We are running 10 virtual machines on a production subnet in a vnet. We want to now implement an NSG and associate with the subnet running those 10 virtual machines without disruption to traffic. Is there a way to analyze network traffic in order to set up the NSG prior to associating it with the subnet? Thank you!

Azure Virtual Network
Azure Virtual Network

An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.

0 comments No comments

2 answers

Sort by: Most helpful
  1. KapilAnanth 49,876 Reputation points Moderator
    2024-09-10T10:30:59.3033333+00:00

    @FunMum ,

    Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.

    To address your question,

    • No
    • You should attach an NSG to a Subnet and enable Flow Logs for the platform to log the traffic flows.

    Wrt the Rule you shared,

    • From the naming convention you shared, I believe this is an outbound rule.
    • And this Allows Any to Any
    • So, this should not block any traffic and in fact, allow all outbound traffic
    • If your VMs only required outbound access and not any inbound access, this rule should not cause any service disruption
    • However, note that if your VMs require inbound traffic, you should also have a Any-to-Any Inbound Rule.

    Note:

    Please let us know if we can be of any further assistance here.

    Thanks,

    Kapil


    Please Accept an answer if correct.

    Original posters help the community find answers faster by identifying the correct answer.

    Was this answer helpful?

    0 comments No comments

  2. Abiola Akinbade 30,490 Reputation points Volunteer Moderator
    2024-09-06T23:36:10.7366667+00:00

    You can analyze traffic using network watcher. See:

    https://learn.microsoft.com/en-us/azure/network-watcher/usage-scenarios-traffic-analytics

    https://learn.microsoft.com/en-us/azure/network-watcher/traffic-analytics

    Search for Network Watcher in portal and enable and Use IP flow verify to understand existing traffic patterns.

    Based on the traffic patterns you've observed, you can create a test NSG with rules that you think will be appropriate for your environment.

    You can mark it 'Accept Answer' and 'Upvote' if this helped you

    Regards,

    Abiola

    Was this answer helpful?


Your answer

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