NSGs & Route Tables
Objective
Configure Network Security Groups and User-Defined Routes.
Tools & Technologies
Azure NSGUDRAzure CLI
Key Commands
az network nsg createaz network nsg rule create --priority 100 --access Allowaz network route-table createaz network route-table route createLab Steps
01
NSG Creation
Create NSGs with allow and deny rules.
02
NSG Association
Associate NSGs with subnets and NICs.
03
Route Tables
Create UDRs to force-tunnel traffic through NVAs.
04
Effective Routes
Check effective routes and security rules on a NIC.
Challenges Encountered
- NSG rule conflicts between subnet and NIC level NSGs
- UDR for 0.0.0.0/0 can break Azure management traffic
Key Takeaways
- NSG flow logs are essential for troubleshooting connectivity
- Effective Security Rules view shows the final combined rule set