Free tech learning for everyone, from basics to pro

Photo: Valentin Lacoste on Unsplash

Security

AWS vs Azure security: how the two clouds compare

Identity, networks, threat detection, logging and keys: a side-by-side guide to how AWS and Microsoft Azure handle security, which one to learn first, and the mistakes that cause most cloud breaches on both.

AWS and Microsoft Azure solve the same security problems, but they use different names, different defaults and a different way of thinking about identity. If you know one cloud, this guide maps it to the other. If you are new to both, it shows where the real differences are, and where they are only names. For a general comparison of the two platforms, see AWS vs Azure: what is the difference?

The same starting point: shared responsibility

On both clouds, the provider secures the data centres, hardware and core services. You secure everything you configure: who can log in, which ports are open, whether storage is public and whether data is encrypted. Almost every cloud breach in the news is on the customer's side of that line. Our note on the shared responsibility model explains it in detail.

Side by side

Security jobAWSAzure
Identity and sign-inIAM users, roles and JSON policies; IAM Identity Center for single sign-onMicrosoft Entra ID (formerly Azure AD), with role-based access control (RBAC)
Organising accountsAWS Organizations, with service control policies (SCPs) as guardrailsManagement groups and subscriptions, with Azure Policy as guardrails
Network filteringSecurity groups (stateful, allow rules only) and network ACLs (stateless, subnet level)Network security groups (stateful, allow and deny rules with priorities)
Managed firewallAWS Network FirewallAzure Firewall
Threat detection and postureAmazon GuardDuty, AWS Security Hub, Amazon InspectorMicrosoft Defender for Cloud
Audit logsAWS CloudTrail (every API call), Amazon CloudWatchActivity Log, Azure Monitor and Log Analytics
SIEMUsually a third-party SIEM, or Amazon Security Lake as a data storeMicrosoft Sentinel
Keys and secretsAWS KMS and AWS Secrets ManagerAzure Key Vault

Identity: the biggest real difference

In AWS, permissions are written as JSON policies attached to users, groups and, most importantly, roles. Applications and services should use roles with short-lived credentials, never long-term access keys. The skill to learn is reading a policy and spotting what it really allows. Start with our notes on AWS IAM.

In Azure, identity lives in Microsoft Entra ID, the same directory many companies already use for Microsoft 365. Access is granted by assigning built-in or custom roles at a scope: a management group, subscription, resource group or single resource. Conditional Access policies can demand multi-factor authentication or a compliant device before anyone reaches the portal. See Microsoft Entra ID and Azure RBAC and governance.

Because so many organisations already run Microsoft 365, Azure identity often comes "for free" with the rest of the business. That is convenient, but it also means a phished Microsoft 365 account can be a route into the cloud, so MFA and Conditional Access matter even more.

Network security

An AWS security group is attached to an instance or network interface. It only has allow rules and is stateful, so return traffic is allowed automatically. A network ACL sits on the subnet, is stateless and can deny. An Azure network security group can be attached to a subnet or a network interface, is stateful and supports both allow and deny rules, processed in priority order. In practice, the most common mistake is the same on both: rules that allow SSH (port 22) or RDP (port 3389) from anywhere. Use a bastion service or VPN instead. Our notes on AWS VPC security and Azure network security go further.

Detection and logging

On AWS, turn on CloudTrail in every region and keep the logs in a separate, locked-down account; switch on GuardDuty for threat detection and Security Hub to collect findings against benchmarks. On Azure, Defender for Cloud gives a secure score and recommendations, and Microsoft Sentinel adds a full SIEM with built-in connectors for Microsoft 365 and Entra ID. That tight Microsoft integration is one of Azure's strengths for security teams.

The mistakes that cause most breaches, on both clouds

  • Public storage: an S3 bucket or Azure storage container opened to the internet "just for testing".
  • Leaked keys: access keys or connection strings committed to GitHub or pasted into scripts.
  • Too much permission: "administrator" given to people and applications that need one task.
  • No MFA on the root account, global administrators or break-glass accounts.
  • Logging switched off, so nobody can tell what happened after an incident.

Which should you learn first?

Look at the job adverts where you want to work. Organisations built around Microsoft 365 and Windows servers often choose Azure; many start-ups and software companies run on AWS; large companies frequently use both. The concepts transfer: once you understand identity, network filtering, logging and keys on one cloud, the second takes weeks, not months. Useful certifications are AWS Certified Security – Specialty and Microsoft's Azure Security Engineer Associate; check each vendor's site for the current exam version before you book.

Try it yourself

Our free hands-on labs walk you through the basics on both clouds: AWS IAM and MFA, keeping an S3 bucket private and an Azure VNet with a network security group. When you are done, test yourself with the cloud fundamentals quiz.

Verified author✓ Valid
Issued to
Mohamed Fayas
Role
Founder of FM TecHub
Credentials
CCNABTEC HND Network EngineeringBEng (Hons) Computer Networking & Cloud Security
Issuer
FM TecHub · fmtechub.com

He writes practical, plain-English guides on networking, security and cloud.

More about the author →

Written by Mohamed Fayas for FM TecHub. © 2026 FM TecHub. Share the link freely; please don't copy the text elsewhere without permission.

Email updates: coming soon

New notes, tools and security news from FM TecHub by email, explained simply. Free. We're not collecting email addresses yet; see our privacy policy.

PortServiceStatus
SMTP/25Email updatesopening soon

Meanwhile, stay connected: