Process Flow - NSG rules (inbound, outbound)
Start: Packet arrives
Check Inbound NSG Rules
Match Rule?
No→Drop Packet
Yes
Allow or Deny?
If Allow -> Packet forwarded to VM
Packet leaves VM
Check Outbound NSG Rules
Match Rule?
No→Drop Packet
Yes
Allow or Deny?
If Allow -> Packet sent out
When a network packet arrives, inbound NSG rules are checked first to allow or deny it. If allowed, the packet reaches the VM. When leaving, outbound NSG rules are checked similarly.