Maximum number of IPs in a NSG rule

sdon 20 Reputation points
2023-08-22T22:14:33.34+00:00

What is the limit for the number if IP addresses that can be set as destination IP per NSG rule?

For example, if I needed to allow 100+ IPs in an outbound NSG rule, is there a limit that preventing me adding multiple IPs?

Thanks.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,033 questions
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,772 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 57,831 Reputation points Volunteer Moderator
    2023-08-22T22:59:42.7333333+00:00

    Hello sdon,

    You can only add up to 4,000 Source IPs. To save on space (and if possible), I'd suggest you use CIDR notation (for a range).

    You should be good to use 100+ IPs in an outbound NSG rule.

    Networking limits - Azure Resource Manager

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/management/azure-subscription-service-limits?toc=%2Fazure%2Fvirtual-network%2Ftoc.json#networking-limits

    User's image


    If this is helpful please accept answer.


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.