← All cybersecurity posts

Azure Security Best Practices for Startups and SaaS Teams

Azure combines cloud infrastructure with Microsoft Entra ID, the identity platform behind Microsoft 365. That tight integration is powerful, and it means identity mistakes can affect both your infrastructure and your company's email and documents.

1. Secure identity first

  • Enforce MFA for all users through Conditional Access, especially administrators.
  • Use Privileged Identity Management where licensing allows, so admin roles are activated just in time rather than permanently assigned.
  • Limit Global Administrators to a small number of break-glass and named accounts.
  • Review app registrations and service principals, including their secrets, certificates and API permissions. Unused credentials are a common gap.
  • Block legacy authentication protocols that bypass MFA.

2. Use managed identities instead of secrets

Managed identities let Azure resources authenticate to other Azure services without stored credentials. Use them for App Service, Functions, VMs and containers, and grant only the roles each one needs.

3. Lock down storage accounts

  • Disable anonymous blob access at the storage account level.
  • Prefer Entra ID authentication over shared keys, and consider disabling shared key access.
  • Use short-lived, narrowly scoped SAS tokens, preferably user delegation SAS.
  • Restrict network access with private endpoints or firewall rules for sensitive accounts.

4. Minimise network exposure

  • Avoid public IPs on VMs; use Azure Bastion for administration.
  • Restrict network security group rules, especially for RDP, SSH and database ports.
  • Use private endpoints for databases, storage and Key Vault.
  • Put internet-facing apps behind Application Gateway or Front Door with a WAF.

5. Protect secrets with Key Vault

  • Store secrets, keys and certificates in Key Vault, not in app settings or code.
  • Use Azure RBAC for Key Vault access, granting least privilege.
  • Enable soft delete and purge protection.

6. Apply least privilege with Azure RBAC

  • Assign roles at the narrowest scope: resource or resource group rather than subscription.
  • Avoid Owner and Contributor for applications.
  • Review custom roles for wildcard actions.

7. Enable logging and detection

  • Send activity logs and resource logs to a Log Analytics workspace.
  • Enable Microsoft Defender for Cloud plans appropriate to your workloads.
  • Alert on high-risk events, such as new role assignments and Key Vault access anomalies.

8. Patch and harden compute

Use update management for VMs, keep container base images current, and enable secure configurations for App Service, such as HTTPS only and minimum TLS 1.2.

Azure quick checklist

AreaKey control
IdentityMFA via Conditional Access, few Global Admins
WorkloadsManaged identities
StorageNo anonymous access, scoped SAS
NetworkPrivate endpoints, no public RDP or SSH
SecretsKey Vault with RBAC
MonitoringDefender for Cloud, centralised logs

Testing your Azure exposure

SecurityInfinity tests internet-facing Azure resources, such as App Services, storage accounts, exposed management ports and application flaws that could lead into your cloud. Start free.

Frequently asked questions

Do I need approval to pentest Azure?

Microsoft does not require prior approval for testing your own Azure resources, but you must follow its rules of engagement, which prohibit certain activities.

What is the biggest Azure security risk?

Identity misconfiguration, such as accounts without MFA or over-privileged service principals, is among the most significant.

Is Defender for Cloud required?

Not required, but it provides posture management and threat detection that would otherwise take significant effort to build.

Find what attackers can see, before they do.

AI pentesting agents test your web app, API and cloud, and every finding comes with evidence and a fix. First report in about 10 minutes.

Stay ahead of attackers.

New vulnerabilities, breach write-ups and practical fixes. A few emails a month.