Should I enable diagnostics on an internal Load Balancer or NSG on the subnet to get info on IP Addresses that connect to an internal Load Balancer ?

Shridhar Srinivasan 220 Reputation points
2023-07-21T15:10:00.0633333+00:00

Should I enable diagnostics on an

internal Load Balancer

or

NSG on the subnet

to get info on IP Addresses that connect to an internal Load Balancer ?

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.
2,510 questions
Azure Network Watcher
Azure Network Watcher
An Azure service that is used to monitor, diagnose, and gain insights into network performance and health.
173 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 26,216 Reputation points Microsoft Employee
    2023-07-22T00:52:01.53+00:00

    @Shridhar Srinivasan

    Thank you for reaching out.

    If I understand correctly, you wish get information on the source IP address of the traffic going through your internal load balancer.

    I think going the NSG route will be a better option here as you will be able enable NSG Flow logs. Network security groups flow logging is a feature of Azure Network Watcher that allows you to log information about IP traffic flowing through a network security group. You need to know the current state of the network, who's connecting, and where users are connecting from. You also need to know which ports are open to the internet, what network behavior is expected, what network behavior is irregular, and when sudden rises in traffic happen.

    Flow logs are the source of truth for all network activity in your cloud environment. Whether you're in a startup that's trying to optimize resources or a large enterprise that's trying to detect intrusion, flow logs can help. You can use them for optimizing network flows, monitoring throughput, verifying compliance, detecting intrusions, and more.

    [Addition]:

    Using Azure Load Balancer diagnostics, you cannot get the source IP address of the traffic going through an internal load balancer.

    Hope this helps! Please let me know if you have any additional questions. Thank you!


    ​​Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

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.