You have a Network Security Group (NSG) associated with an Azure subnet. The NSG contains the following two inbound security rules:
* `Rule1`: Priority , Source: `Internet`, Destination: `*`, Port: , Protocol: `TCP`, Action: `Deny`
* `Rule2`: Priority , Source: `Internet`, Destination: `*`, Port: , Protocol: `TCP`, Action: `Allow`
A user attempts to establish a Remote Desktop Protocol (RDP) connection from the Internet to a virtual machine in the subnet. Which of the following describes the outcome of this connection attempt?
- ABlocked, because Deny rules always override Allow rules in Network Security Groups
- Allowed, because the rule with priority is processed before the rule with priority Cevap
- CBlocked, because the rule with priority is processed before the rule with priority
- DAllowed, because default inbound rules permit RDP traffic from the Internet
Cevap
The connection is allowed because the rule with priority is evaluated before the rule with priority , and it permits the traffic.
In Azure Network Security Groups (NSGs), security rules are processed in priority order, where lower numbers have higher precedence. When traffic matches a rule, processing stops. Because the rule with priority (Allow) is lower than the rule with priority (Deny), the Allow rule is evaluated first and the traffic is permitted.
Adım Adım Çözüm
Anahtar Kavram
Azure NSG rule processing order is based on priority numbers, where smaller numbers have higher priority.