How to check SNAT port usage of NatGateway with existing IP

Shijun Lv 106 Reputation points Microsoft Employee
2024-10-31T10:48:48.39+00:00

Hi exports,

Our team will use NatGateway with public ip as the explicit outbound connectivity method of VMs.

May I ask is there any way to monitor current usage of SNAT Port on NatGateway?

For example, if there is a method to let us know that currently more than 80% of existing SNAT port are occupied, we can add additional IP to the NAT Gateway. Or If we can know currently it is only 1% SNAT port usage, we can decrease the IP to save the cost. Thanks.

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,498 questions
Azure NAT Gateway
Azure NAT Gateway
NAT Gateway is a fully managed service that securely routes internet traffic from a private virtual network with enterprise-grade performance and low latency.
37 questions
0 comments No comments
{count} votes

Accepted answer
  1. Timmy Malmgren 1,361 Reputation points
    2024-10-31T22:59:13.36+00:00

    Hello

    I have not used this myself but there seem to be metrics for it, you can also use AMBA to deploy them. Down below are some links with explanation for them, amba also provides recommended thresholds from Microsoft for alerting on these metrics.

    https://learn.microsoft.com/en-us/azure/nat-gateway/nat-metrics#total-snat-connection-count

    AMBA

    https://azure.github.io/azure-monitor-baseline-alerts/services/Network/natGateways/#snatconnectioncount

    Hope this is helpful and remember shared knowledge is the best knowledge 😊

    Best Regards,

    Timmy Malmgren


    If the Answer is helpful, please click "Accept Answer" and upvote it as it helps others to find what they are looking for faster!


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.