Skip to content

Latest commit

 

History

History
73 lines (50 loc) · 2.24 KB

File metadata and controls

73 lines (50 loc) · 2.24 KB

Day 2 Tips: 🔒 Azure Firewall Proof of Concept Lab — Step-by-Step

Before you continue, consider reading this blog to understand the basics of network security in the cloud.

Overview of What We'll Do:

diagram-export-4-23-2025-9_47_58-AM

  • ✅ Create Resource Group & Virtual Network
  • ✅ Create Subnets (VM, Firewall, Firewall Management)
  • ✅ Create Public IP
  • ✅ Deploy Azure Firewall
  • ✅ Deploy a Test VM
  • ✅ Configure NSG
  • ✅ Create Firewall Rules (DNAT + Outbound)
  • ✅ Test access (RDP, outbound internet)

🛠️ Common Issues & Fixes

Can’t SSH?

  • Double-check DNAT and NSG rules
  • Verify VM has no public IP
  • Use correct key or password

No Internet?

  • Is 0.0.0.0/0 routing to firewall?
  • Did you allow TCP 80/443 outbound on firewall?
  • DNS might be the issue → use nslookup

Firewall Deployment Fails?

"LinkedAccessCheckFailed"
  • You need Network Contributor role on the subnet/resource group

Debug Tips

  • Effective Routes: On VM NIC, confirm next hop is the firewall
  • Effective Rules: Make sure NSG isn't blocking needed traffic
  • Use Azure Network Watcher to troubleshoot connections

Pro Tips

  • Use Azure Bastion as an alternative to SSH

  • Clean up easily:

    az group delete --name Lab-RG --yes
  • Tag your resources for easy management

  • Monitor with Azure Monitor or Log Analytics

Conclusion

You've now built a secure Azure lab with:

  • NSGs for basic security
  • Azure Firewall for advanced filtering
  • Custom routing and NAT rules

💡 Bonus Tips

  • ✅ Use Azure Bastion as a backup connection method if SSH fails
  • ✅ Tag each resource (Lab, Firewall, etc.) so you don’t delete wrong ones
  • ✅ Review Activity Log in the Azure portal if a deployment fails
  • ✅ Use Network Watcher > Connection Troubleshoot to test VM-to-internet reachability
  1. Refer to this walkthrough video if stuck: video
  2. Refer to this step by step blog if stuck: blog