Harden every Azure service you run.
One page per Azure service, from Entra ID to Azure Functions, written for cloud engineers, platform teams and security reviewers.
Each page opens with a baseline controls table, then gives the CLI checks, policy JSON, portal paths and KQL to apply and enforce every control, mapped to the Microsoft cloud security benchmark.
Azure Hardening is an independent, non-commercial resource. It is not affiliated with, endorsed or sponsored by Microsoft Corporation. Microsoft, Azure and Entra are trademarks of the Microsoft group of companies.
The services
Thirteen services in five categories. Every page has the same shape: summary, baseline controls, how to check and enforce each one, logging, common mistakes, references.
Identity and access
Who can sign in, with what, and what they can touch once they are in.
- Entra IDHarden a Microsoft Entra ID tenant: Conditional Access, consent and guest settings, PIM, emergency access accounts and secretless workload identities.12 controls
- Azure RBACHarden Azure RBAC: group-based assignments at the right scope, few Owners, PIM eligibility, narrow custom roles, conditional delegation and access reviews.9 controls
Governance and logging
Guardrails that stop drift across subscriptions, and the logs and alerts that show you when something changes.
- Azure PolicySecure the management group hierarchy and tenant root, then enforce a baseline with Azure Policy: deny guardrails, MCSB and CIS initiatives, safe rollout and audits.12 controls
- Defender for CloudHarden Microsoft Defender for Cloud: CSPM and workload plans enforced by policy, alert routing, continuous export, secure score triage and governance rules.11 controls
- Azure MonitorHarden Azure Monitor and Log Analytics: activity and Entra log export, diagnostic settings at scale, workspace access, retention, log protection, alerts.10 controls
Data
Where data and secrets live: storage accounts, vaults and databases, and how each one leaks.
- Storage accountsHarden Azure Storage accounts: no anonymous blob access, no shared keys, short SAS, private endpoints, TLS 1.2, customer-managed keys, soft delete and logging.11 controls
- Key VaultHarden Azure Key Vault: RBAC permission model, purge protection, private endpoints and firewall, key rotation, secret expiry, Defender alerts and audit logs.12 controls
- SQL DatabaseHarden Azure SQL Database: Entra-only authentication, firewall without Azure-wide rules, private endpoints, TLS, TDE with customer-managed keys, auditing and Defender.11 controls
Network and compute
Exposure, segmentation and egress control, then the virtual machines behind them.
- Virtual NetworkHarden Azure Virtual Network: NSGs without internet management ports, private subnets, Azure Firewall egress, private endpoints, DDoS, Bastion, flow logs.11 controls
- Virtual MachinesHarden Azure VMs: Trusted Launch, no public IPs, JIT and Bastion access, Entra ID login, encryption at host, Update Manager patching and Defender for Servers.11 controls
Containers and serverless
Kubernetes clusters, web apps and functions: managed platforms with their own identity, network and deployment surface.
- AKSHarden AKS clusters: private API server, Entra ID with Azure RBAC, workload identity, pod security policy, network policy, egress lockdown and audit logs.11 controls
- App ServiceHarden Azure App Service: HTTPS and TLS, basic auth and FTP off, access restrictions, private endpoints, Key Vault references, logging and dangling DNS.12 controls
- Azure FunctionsHarden Azure Functions: access keys and Entra auth, master key exposure, identity-based storage, network isolation, Flex Consumption, CORS and logging.11 controls
Measure first, then enforce
Every guardrail on these pages follows the same rollout, so a new deny policy never breaks a deployment pipeline on day one.
Read the Azure Policy page- 01Measured
Audit
Assign the audit initiatives
Microsoft cloud security benchmark and CIS at the top management group. They report, they do not block.
- 02Measured
DoNotEnforce
Assign deny policies in DoNotEnforce
The assignment evaluates and lists non-compliant resources without rejecting anything.
- 03Measured
Exempt
Fix or exempt what exists
Remediate, or record an exemption with a justification and an expiry date.
- 04Enforced
Deny
Switch to Default enforcement
New non-compliant create and update requests are now rejected.
How every service page is written
Settings, not slogans
Each control comes with the portal path, the CLI command, the policy JSON or the KQL query that applies or checks it.
Mapped to the benchmarks
Controls cite the CIS Microsoft Azure Foundations Benchmark v7.0.0, the CIS Azure Compute, Database and Storage Services Benchmarks, and the Microsoft cloud security benchmark, so findings land in your audit trail.
Safe to roll out
Every change that can block a deployment is introduced in audit mode first, with the rollback written down next to it.
01 / Identity and access
Microsoft Entra ID security hardening