Securing AWS and Azure together

Securing AWS and Azure together starts with one sign-in source, Microsoft Entra ID for AWS IAM Identity Center, then federated workload credentials, matching audit settings, one log destination, a decided home for posture findings and rewritten network rules. Provider documentation backs 4 of the 6 steps; the other 2 are inferences.

  1. 1guidance
  2. 2guidance
  3. 3inference
  4. 4guidance
  5. 5guidance
  6. 6inference

What should I align first?

The steps below are in the order to do them.

  1. Identity: make Entra ID the sign-in source for AWS IAM Identity Center.

    Provider guidance.

    Microsoft's tutorial describes controlling in Entra ID who can reach IAM Identity Center and enabling automatic sign-in and provisioning. One identity source means one place to remove a leaver.

    Basis: Microsoft Learn tutorial.

    Pages: AWS: what-is, Microsoft: aws-single-sign-on-tutorial

  2. Workloads: use federation instead of long-lived keys in both directions.

    Provider guidance.

    Pick the AWS mechanism by case. An Azure workload that holds an Entra token reaches AWS through an IAM OIDC identity provider; a workload with an X.509 certificate from your own CA can use IAM Roles Anywhere for temporary credentials. AWS's OIDC and Roles Anywhere pages describe the mechanisms without naming Entra ID; using them for Azure workloads is an inference from those pages. In the other direction, Microsoft's workload identity federation lets an Entra app registration or managed identity trust tokens issued to an AWS-hosted workload, and it names two AWS routes: any AWS workload can get a JWT from IAM Outbound Identity Federation and exchange it for an Entra access token, and EKS clusters are a supported Kubernetes source.

    Basis: AWS IAM Roles Anywhere guide; AWS IAM OIDC identity providers; Microsoft workload identity federation; AWS IAM outbound identity federation.

    Pages: AWS: id_roles_providers_oidc, AWS: id_roles_providers_outbound_getting_started, AWS: introduction, Microsoft: workload-identity-federation

  3. Audit logs: set the retention and the data-event switches on both sides before relying on defaults.

    Inference from the cited differences.

    Both keep 90 days by default (CloudTrail event history, Azure activity log), CloudTrail data events are off by default and Azure resource logs are not collected by default.

  4. Log destination: pick one place and send both into it.

    Provider guidance.

    Azure diagnostic settings can send to Event Hubs for outside destinations; CloudTrail organization trails cover every member account and Security Lake normalizes AWS and third-party security data to OCSF. Security Lake also accepts third-party custom sources that convert their logs and events to OCSF, so Azure logs sent through Event Hubs could land there once converted; that route is an inference from those pages. In the other direction, Microsoft documents a Microsoft Sentinel connector that pulls AWS logs from an S3 bucket, including CloudTrail management and data events, VPC Flow Logs, GuardDuty findings and CloudWatch logs, so Sentinel can be the one place for both.

    Basis: Microsoft Sentinel AWS connector; single-cloud pages: Azure diagnostic settings; AWS CloudTrail organization trails; AWS Security Lake; AWS Security Lake custom sources.

    Pages: AWS: creating-trail-organization, AWS: custom-sources, AWS: what-is-security-lake, Microsoft: diagnostic-settings, Microsoft: connect-aws

  5. Posture: connect the AWS organization to Defender for Cloud, or decide not to.

    Provider guidance.

    Microsoft documents a native AWS connector for Defender for Cloud. AWS documents Azure checks in Security Hub CSPM: the CIS Microsoft Azure Foundations Benchmark v4.0 and Azure Foundational Best Practices, with 122 controls across both standards. Each side can see the other, so choose one console as the place findings are worked. Amazon Inspector's pricing page also lists vulnerability scanning of Microsoft Azure Virtual Machines, Azure Function Apps and Azure Container Registry, so AWS can scan Azure workloads as well as check Azure configuration. On the AWS side, Security Hub CSPM can aggregate findings from several Regions into one home Region.

    Basis: Defender for Cloud AWS connector; Security Hub CSPM Azure integration; Amazon Inspector pricing page.

    Pages: AWS: pricing, AWS: finding-aggregation, AWS: securityhub-azure, Microsoft: quickstart-onboard-aws

  6. Network rules: restate each rule set, do not copy it.

    Inference from the cited differences.

    Both allow outbound internet traffic by default, but inbound differs: an NSG's default AllowVNetInBound (65000) admits traffic from the whole virtual network, and AllowAzureLoadBalancerInBound (65001) admits the Azure load balancer, before DenyAllInbound (65500), while an AWS default security group admits inbound traffic only from resources assigned to the same group. NSG rules are evaluated by priority with the first match; a security group has no deny rules, and only traffic that a rule allows reaches the resource. A rule set copied across therefore changes what inbound traffic it allows.

Which native service does each job?

These are the native services for each security job on AWS and Azure; the descriptions are on the service equivalents page. Microsoft's own AWS to Azure services comparison maps AWS CloudTrail to the Azure activity log, AWS Config to Azure Policy, AWS KMS and CloudHSM to Key Vault and Key Vault Managed HSM, IAM Identity Center to Microsoft Entra ID, Amazon GuardDuty to Microsoft Sentinel and Amazon Inspector to Microsoft Defender for Cloud (Microsoft: services).

Which defaults differ for this pair?

These are the documented differences between AWS and Azure; the steps link the ones they rest on, and the five-cloud tables are on the audit log defaults and service equivalents pages.

Documented defaults for AWS with Azure
TopicAWSAzure
How long audit events stay by defaultEvent history keeps the past 90 days of management events; longer needs a trail or event data store. AWS: view-cloudtrail-eventsThe activity log keeps events for 90 days; longer retention needs a diagnostic setting to Log Analytics (retention extendable to 12 years there), Storage or Event Hubs. Microsoft: activity-log
Whether data-plane (data event) logging is on by defaultBy default trails and event data stores do not log data events; additional charges apply. AWS: logging-data-events-with-cloudtrailResource logs, which capture data plane operations such as reading a key vault secret, are not collected by default and need a diagnostic setting. Microsoft: activity-log
Scope of the audit trailCloudTrail trails can be single-Region or multi-Region; an organization trail logs events for the management account and all member accounts. AWS: cloudtrail-conceptsSubscription is the default scope; tenant and management group level views capture only Azure Resource Manager events. Subscription-level events without a hierarchy property do not reach a management-group diagnostic setting, even at the root. Microsoft: activity-log
What the network control allows when you add no rulesA default security group comes with every VPC; it allows inbound traffic from resources that use the same group and allows all outbound IPv4 traffic. AWS: default-security-groupDefault inbound rules are AllowVNetInBound (65000), AllowAzureLoadBalancerInBound (65001) and DenyAllInbound (65500); default outbound rules are AllowVnetOutBound (65000), AllowInternetOutBound (65001) and DenyAllOutBound (65500), so outbound internet traffic is allowed until you add a rule. Microsoft: network-security-groups-overview
How long configuration history staysAWS Config keeps ConfigurationItems for 7 years (2557 days) by default; a retention period between 30 days and 7 years can be set. AWS: delete-config-data-with-retention-periodAzure Resource Graph keeps resource changes queryable for 14 days; for longer retention Microsoft suggests exporting query results, for example with Logic Apps. Microsoft: resource-graph-changes, Microsoft: get-resource-changes
Key rotation behaviorAutomatic rotation is optional for customer managed keys and supported only on symmetric encryption keys; once enabled it generates new key material every 365 days unless you set a custom period. AWS managed KMS keys always rotate every year. AWS: rotate-keysRotation is set by a key rotation policy defined for each individual key. Microsoft: how-to-configure-key-rotation

Sources

  1. AWS: aws.amazon.com/inspector/pricing read 21 Nov 2026
  2. AWS: docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-concepts.html read 20 Nov 2026
  3. AWS: docs.aws.amazon.com/awscloudtrail/latest/userguide/creating-trail-organization.html read 20 Nov 2026
  4. AWS: docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html read 20 Nov 2026
  5. AWS: docs.aws.amazon.com/awscloudtrail/latest/userguide/view-cloudtrail-events.html read 20 Nov 2026
  6. AWS: docs.aws.amazon.com/config/latest/developerguide/delete-config-data-with-retention-period.html read 20 Nov 2026
  7. AWS: docs.aws.amazon.com/config/latest/developerguide/WhatIsConfig.html read 20 Nov 2026
  8. AWS: docs.aws.amazon.com/guardduty/latest/ug/what-is-guardduty.html read 20 Nov 2026
  9. AWS: docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_oidc.html read 21 Nov 2026
  10. AWS: docs.aws.amazon.com/IAM/latest/UserGuide/id_roles_providers_outbound_getting_started.html read 21 Nov 2026
  11. AWS: docs.aws.amazon.com/kms/latest/developerguide/rotate-keys.html read 21 Nov 2026
  12. AWS: docs.aws.amazon.com/rolesanywhere/latest/userguide/introduction.html read 20 Nov 2026
  13. AWS: docs.aws.amazon.com/security-lake/latest/userguide/custom-sources.html read 21 Nov 2026
  14. AWS: docs.aws.amazon.com/security-lake/latest/userguide/what-is-security-lake.html read 21 Nov 2026
  15. AWS: docs.aws.amazon.com/securityhub/latest/userguide/finding-aggregation.html read 21 Nov 2026
  16. AWS: docs.aws.amazon.com/securityhub/latest/userguide/securityhub-azure.html read 21 Nov 2026
  17. AWS: docs.aws.amazon.com/singlesignon/latest/userguide/what-is.html read 21 Nov 2026
  18. AWS: docs.aws.amazon.com/vpc/latest/userguide/default-security-group.html read 21 Nov 2026
  19. AWS: docs.aws.amazon.com/vpc/latest/userguide/security-group-rules.html read 21 Nov 2026
  20. AWS: docs.aws.amazon.com/vpc/latest/userguide/vpc-security-groups.html read 20 Nov 2026
  21. Microsoft: learn.microsoft.com/en-us/azure/architecture/aws-professional/services read 21 Nov 2026
  22. Microsoft: learn.microsoft.com/en-us/azure/azure-monitor/essentials/activity-log read 20 Nov 2026
  23. Microsoft: learn.microsoft.com/en-us/azure/azure-monitor/platform/diagnostic-settings read 21 Nov 2026
  24. Microsoft: learn.microsoft.com/en-us/azure/defender-for-cloud/defender-for-cloud-introduction read 20 Nov 2026
  25. Microsoft: learn.microsoft.com/en-us/azure/defender-for-cloud/quickstart-onboard-aws read 20 Nov 2026
  26. Microsoft: learn.microsoft.com/en-us/azure/governance/policy/overview read 21 Nov 2026
  27. Microsoft: learn.microsoft.com/en-us/azure/governance/resource-graph/changes/get-resource-changes read 21 Nov 2026
  28. Microsoft: learn.microsoft.com/en-us/azure/governance/resource-graph/changes/resource-graph-changes read 21 Nov 2026
  29. Microsoft: learn.microsoft.com/en-us/azure/key-vault/general/overview read 20 Nov 2026
  30. Microsoft: learn.microsoft.com/en-us/azure/key-vault/keys/how-to-configure-key-rotation read 20 Nov 2026
  31. Microsoft: learn.microsoft.com/en-us/azure/sentinel/connect-aws read 21 Nov 2026
  32. Microsoft: learn.microsoft.com/en-us/azure/virtual-network/network-security-groups-overview read 21 Nov 2026
  33. Microsoft: learn.microsoft.com/en-us/entra/fundamentals/whatis read 20 Nov 2026
  34. Microsoft: learn.microsoft.com/en-us/entra/identity/saas-apps/aws-single-sign-on-tutorial read 20 Nov 2026
  35. Microsoft: learn.microsoft.com/en-us/entra/workload-id/workload-identity-federation read 21 Nov 2026

Last reviewed