A grain-elevator NSG has an Allow on TCP 443 at priority 400 and a Deny on TCP 443 at priority 200. Operators argue the Allow should win because it was added last. Which rule takes effect?
Select an answer to reveal the explanation.
Short Explanation
NSG priority is a race number, not a calendar. Two hundred beats four hundred—so that Deny on 443 lands first and the late Allow never gets a turn.
Full Explanation
NSG rules are processed by priority number: the lowest number has the highest priority and is evaluated first. A Deny at 200 for TCP 443 is applied before an Allow at 400 for the same traffic, so the Deny wins regardless of when either rule was created. Display names and creation order do not change evaluation. Traffic that matches no explicit rule hits the platform default DenyAll inbound rule, not an implicit VirtualNetwork allow for arbitrary internet-facing flows.