Module 6: Security & Cost Management
Overview
Learn security best practices, use Azure Security Center, configure NSGs and firewalls, and monitor costs in Azure.
Lesson 6.1: Security Best Practices Every SRE Must Know
- Least Privilege Access, MFA, Encryption, Regular Updates
- Demo: Enable MFA in Azure portal
Lesson 6.2: Using Azure Security Center & Defender
- Security recommendations, Secure Score, threat detection
- Demo: Show Secure Score, fix a recommendation
Lesson 6.3: Network Security Groups & Firewalls
- NSG rules, Azure Firewall, DDoS Protection
- Demo:
az network nsg create --resource-group DemoGroup --name DemoNSG
az network nsg rule create --resource-group DemoGroup --nsg-name DemoNSG --name AllowSSH --protocol tcp --direction inbound --priority 1000 --source-address-prefix '*' --source-port-range '*' --destination-address-prefix '*' --destination-port-range 22 --access Allow
Lesson 6.4: Cost Monitoring & Budget Alerts in Azure
- Cost Analysis, Budgets, Alerts
- Demo:
- Create budget and set alert in Azure portal
Assessment
- Lab: Secure resources and set up cost alerts
Troubleshooting Tips & Common Mistakes
- Always enable MFA for all users to prevent unauthorized access.
- If NSG rules block access, check priorities and source/destination settings.
- Common mistake: Not setting cost alerts, leading to budget overruns.
- Review Secure Score regularly for actionable recommendations.
Visual Guide
Sample Security Center dashboard.
Quick Quiz
- What is the purpose of NSGs in Azure?
- How do you set a budget alert for a Resource Group?
- Why is Secure Score important?
Discuss your answers in the course forum or with your instructor.
Community & Discussion
- Join the Azure SRE Learners Forum to ask questions, share projects, and connect with peers.
Goal: Apply security and cost management best practices.
Tasks:
- Create a Resource Group and deploy a VM.
- Configure NSG to allow only SSH (port 22).
- Enable MFA for your Azure account.
- Set up a budget and alert for the Resource Group.
- Review Secure Score in Azure Security Center.
Submission:
- Submit screenshots of NSG rules, MFA setup, budget alert, and Secure Score.
Hands-On Assignment
Scenario: You are responsible for securing a new Azure environment.
Instructions:
- List three security measures you would implement for VMs and networks.
- Describe how you would monitor and control costs for the environment.
- Share your security and cost plan in the course forum or with your instructor.