Azure gives you a lot of security controls and turns surprisingly few of them on by default. The CIS Microsoft Azure Foundations Benchmark is the community's answer to "which ones matter?". This post turns it into 27 checks a small team can test with read-only access and fix in an afternoon or two.
CIS has reorganised the Azure benchmark several times. Version 4.0.0 moved most compute and database recommendations into separate benchmarks, and version 6.0.0 moved Entra ID checks to the Microsoft 365 benchmark. We have kept the database and VM essentials here because a small company runs them in the same subscription.
Access you need: an Entra app registration (or a user) with Reader and Security Reader on the subscription.
1. Microsoft Defender for Cloud
- Defender plans are on for the resource types you run: Servers, SQL, App Service, Storage, Key Vault, Resource Manager and Containers. Check
Microsoft.Security/pricings; anything still on the Free tier has no threat detection. - A security contact email is set and alert notifications are on for high-severity alerts, so Microsoft can reach a person when Defender finds something.
2. Identity and access (RBAC)
- No more than three Owners on the subscription. Count role assignments for the Owner role definition. Every extra Owner is a full-control account to protect.
- No custom role grants
*actions at subscription scope. A custom "owner" is easy to miss in reviews. - MFA, Conditional Access and guest settings now live in the CIS Microsoft 365 benchmark. Check them there or in your identity provider.
3. Logging and monitoring
- The activity log is exported by a subscription diagnostic setting covering at least the Administrative, Security, Alert and Policy categories, to Log Analytics or a storage account.
- Activity log alerts exist for creating or deleting policy assignments, network security groups and their rules, security solutions, SQL firewall rules and public IP addresses.
- Network Watcher is enabled in every region you use, so you have flow logs and connection troubleshooting when you need them.
4. Storage accounts
| Check | Setting |
|---|---|
| Secure transfer required | supportsHttpsTrafficOnly = true |
| Minimum TLS 1.2 | minimumTlsVersion = TLS1_2 |
| Public blob access disabled | allowBlobPublicAccess = false |
| Network access denied by default | networkAcls.defaultAction = Deny (with allowed networks or private endpoints) |
| Shared key access disabled where possible | allowSharedKeyAccess = false, so access goes through Entra ID |
Public blob access and an open network default are the two that turn a misconfiguration into a data leak.
5. Azure SQL
- No firewall rule allows 0.0.0.0–255.255.255.255 (or the "Allow Azure services" rule where you do not need it).
- Auditing is on for every server.
- An Entra ID administrator is configured, so database access can follow your identity policies.
- Public network access is disabled where private endpoints are an option.
6. Networking
- No NSG allows RDP (3389) or SSH (22) from the internet (source
*,Internet,0.0.0.0/0or::/0). Use Azure Bastion or just-in-time access. - No NSG allows UDP from the internet unless you know exactly why.
- No NSG exposes database ports (1433, 3306, 5432, 6379, 27017) to the internet.
7. Key Vault, App Service and VMs
- Key Vault: purge protection on, RBAC permission model, public network access restricted.
- App Service: HTTPS only, minimum TLS 1.2, FTP disabled or FTPS only.
- Virtual machines: managed disks only. Unmanaged VHDs in storage accounts are harder to encrypt and protect.
What to fix first
- Close RDP and SSH to the internet and any public database port.
- Disable public blob access and set storage network defaults to Deny.
- Set a security contact and export the activity log.
- Reduce Owners to three or fewer and remove wildcard custom roles.
- Turn on the Defender plans for what you actually run.
Running the checks continuously
Argyx runs these 27 checks against your subscription with Reader and Security Reader, alongside Defender for Cloud's own recommendations when Defender is on. Each check shows pass or fail with every affected resource and the fix, and the results feed your SOC 2, ISO 27001 and CIS Controls evidence. See cloud security posture, or the checklists for AWS and Google Cloud.