Filter Subnet Traffic with a Network Security Group
Stand up a virtual network, then put a network security group in front of its subnet and close the outbound path to the internet that Azure leaves open by default. The asymmetry between Azure's default inbound and outbound rules, learned by changing it.
- The workload subnet is carved at 10.42.1.0/24
- A custom rule denies traffic in the outbound direction
- That deny rule targets the Internet service tag, not Any
- That deny rule covers every port, not just one
- The workload subnet is protected by a network security group



