Softwr

Developer Tools · head to head

AWS Serverless Application Model (AWS SAM) vs Microsoft Defender for Cloud

AWS Serverless Application Model (AWS SAM) logo

AWS Serverless Application Model (AWS SAM)

Developer Tools

Open-source framework and CLI for building serverless apps on AWS

From
Free
Free plan
Yes
Microsoft Defender for Cloud logo

Microsoft Defender for Cloud

Developer Tools

Cloud security posture and workload protection for Azure, AWS and Google Cloud, billed per resource

From
$4.91/month
Free plan
No

The short version

  • AWS Serverless Application Model (AWS SAM) is free; Microsoft Defender for Cloud starts at $4.91/mo.
  • Only AWS Serverless Application Model (AWS SAM) lists SAM connectors for IAM permissions; only Microsoft Defender for Cloud lists defender for Servers.
  • Where AWS Serverless Application Model (AWS SAM) falls short: targets AWS only, so templates are not portable to other cloud providers.
  • Where Microsoft Defender for Cloud falls short: each plan has its own unit, so forecasting total cost across servers, containers, databases and storage is difficult.

How do AWS Serverless Application Model (AWS SAM) and Microsoft Defender for Cloud differ?

AWS Serverless Application Model (AWS SAM) and Microsoft Defender for Cloud differ on starting price (Free against $4.91/month), pricing model and free tier (Yes against No). Only the attributes on which AWS Serverless Application Model (AWS SAM) and Microsoft Defender for Cloud actually diverge.

Attributes where AWS Serverless Application Model (AWS SAM) and Microsoft Defender for Cloud differ
AttributeAWS Serverless Application Model (AWS SAM)Microsoft Defender for Cloud
Starting priceFree$4.91/month
Pricing modelOpen-sourcePay as you go per protected resource
Free tierYesNo
PlatformsWindows, macOS, LinuxWeb

Not yet recorded: category for Microsoft Defender for Cloud.

Which features does each one have?

They share no listed features; 7 appear only for AWS Serverless Application Model (AWS SAM) and 6 only for Microsoft Defender for Cloud. Drawn from each product's published feature list. An absence here means we hold no record of it - not that the product lacks it.

Only in AWS Serverless Application Model (AWS SAM)

  • SAM template shorthand for CloudFormation
  • SAM CLI project scaffolding with sam init
  • Local testing of Lambda functions and API endpoints
  • sam sync for syncing local changes to the cloud
  • SAM connectors for IAM permissions
  • Terraform project debugging support
  • CI/CD pipeline support

Only in Microsoft Defender for Cloud

  • Defender for Servers
  • Defender for Containers
  • Defender for SQL and databases
  • Defender for Storage
  • Multicloud coverage
  • Commit units

What is each one used for?

AWS Serverless Application Model (AWS SAM) is most often brought in for defining Lambda and API Gateway applications as code; Microsoft Defender for Cloud for an Azure-heavy company protecting virtual machines and databases. The jobs each tool is most often brought in to do.

AWS Serverless Application Model (AWS SAM)

  • Defining Lambda and API Gateway applications as codenot Microsoft Defender for Cloud
  • Testing Lambda functions locally before deploymentnot Microsoft Defender for Cloud
  • Building CI/CD pipelines for serverless appsnot Microsoft Defender for Cloud
  • Converting console-created resources into templatesnot Microsoft Defender for Cloud

Microsoft Defender for Cloud

  • An Azure-heavy company protecting virtual machines and databasesnot AWS Serverless Application Model (AWS SAM)
  • A platform team scanning container images and Kubernetes clustersnot AWS Serverless Application Model (AWS SAM)
  • A security team getting a single posture view across Azure and other cloudsnot AWS Serverless Application Model (AWS SAM)
  • A team adding malware scanning to storage accountsnot AWS Serverless Application Model (AWS SAM)

Where do AWS Serverless Application Model (AWS SAM) and Microsoft Defender for Cloud fall short?

AWS Serverless Application Model (AWS SAM)'s most cited limit: targets AWS only, so templates are not portable to other cloud providers. Microsoft Defender for Cloud's: each plan has its own unit, so forecasting total cost across servers, containers, databases and storage is difficult. Documented limitations, not opinions. Every one is a constraint you would hit in normal use.

AWS Serverless Application Model (AWS SAM)

  • Targets AWS only, so templates are not portable to other cloud providers
  • Local testing of functions depends on Docker being installed and running
  • Requires an AWS account, the AWS CLI and configured credentials before first use
  • Declarative templates, so complex logic needs CloudFormation or the AWS CDK instead
  • Does not cover non-serverless infrastructure on its own, which falls back to CloudFormation

Microsoft Defender for Cloud

  • Each plan has its own unit, so forecasting total cost across servers, containers, databases and storage is difficult
  • Billing is per protected resource, so autoscaling estates see the bill move with the workload
  • The best value assumes Azure as the main cloud, and AWS and GCP coverage is weaker than native tooling
  • Some capabilities need other products such as Sentinel or Defender XDR for full investigation workflows
  • The pricing page loads prices dynamically and has many plans, so a clear quote usually needs the Azure pricing calculator

How much do AWS Serverless Application Model (AWS SAM) and Microsoft Defender for Cloud cost?

AWS Serverless Application Model (AWS SAM) is free to use; Microsoft Defender for Cloud starts at $4.91/mo. Plan by plan below, from each vendor's own pricing page.

AWS Serverless Application Model (AWS SAM)

Free

No published plan breakdown. See the AWS Serverless Application Model (AWS SAM) review.

Microsoft Defender for Cloud

$4.91/month
  • Defender for Servers Plan 1$4.91/mo
    • About $0.00672 per server per hour
    • Billed per protected server
    • Per Azure retail price feed
  • Defender for Servers Plan 2$14.6/mo
    • $0.02 per server per hour
    • Billed per protected server
    • Microsoft rounds to about $15 per month
  • Defender for SQL (servers)$15/mo
    • $15 per node per month
    • Other plans billed on separate meters

Which should you pick?

Choose AWS Serverless Application Model (AWS SAM) if

  • You need sam template shorthand for cloudformation.
  • You want to start without paying.
  • You work on Windows, macOS, Linux.
  • You also want sam cli project scaffolding with sam init.

Choose Microsoft Defender for Cloud if

  • You need defender for servers.
  • You also want defender for containers.

Questions people ask

Is AWS Serverless Application Model (AWS SAM) or Microsoft Defender for Cloud better?
It depends on the job. AWS Serverless Application Model (AWS SAM) fits defining Lambda and API Gateway applications as code; Microsoft Defender for Cloud fits an Azure-heavy company protecting virtual machines and databases. AWS Serverless Application Model (AWS SAM) starts at Free and Microsoft Defender for Cloud at $4.91/month.
Which is cheaper, AWS Serverless Application Model (AWS SAM) or Microsoft Defender for Cloud?
AWS Serverless Application Model (AWS SAM) has a free tier; the other does not. Paid plans start at Free for AWS Serverless Application Model (AWS SAM) and $4.91/month for Microsoft Defender for Cloud.
Does AWS Serverless Application Model (AWS SAM) or Microsoft Defender for Cloud run on more platforms?
AWS Serverless Application Model (AWS SAM) runs on Windows, macOS, Linux. Microsoft Defender for Cloud runs on Web.
Can I use AWS Serverless Application Model (AWS SAM) for free?
Yes. AWS Serverless Application Model (AWS SAM) has a free tier, so you can try it without paying. Microsoft Defender for Cloud starts at $4.91/month.
What is AWS Serverless Application Model (AWS SAM) best used for?
AWS Serverless Application Model (AWS SAM) is most often used for defining lambda and api gateway applications as code, testing lambda functions locally before deployment, building ci/cd pipelines for serverless apps, converting console-created resources into templates. Of those, defining lambda and api gateway applications as code and testing lambda functions locally before deployment are not what Microsoft Defender for Cloud is typically brought in for.
What can AWS Serverless Application Model (AWS SAM) do that Microsoft Defender for Cloud cannot?
AWS Serverless Application Model (AWS SAM) covers SAM template shorthand for CloudFormation, SAM CLI project scaffolding with sam init, Local testing of Lambda functions and API endpoints, sam sync for syncing local changes to the cloud. Microsoft Defender for Cloud covers Defender for Servers, Defender for Containers, Defender for SQL and databases, Defender for Storage.

Answered from the vendors’ own pages

AWS Serverless Application Model (AWS SAM): What is AWS SAM?

AWS SAM is an open-source framework for building serverless applications with infrastructure as code. It consists of a template syntax that extends CloudFormation and a command-line tool.

Source
Microsoft Defender for Cloud: How is Defender for Cloud priced?

Per plan and per protected resource. Defender for Servers Plan 2 is $0.02 per server per hour, Plan 1 about $0.00672, and SQL $15 per node per month.

AWS Serverless Application Model (AWS SAM): Which operating systems does the SAM CLI support?

AWS publishes installers for Linux on x86_64 and arm64, macOS on Intel and Apple silicon, and a 64-bit Windows MSI. macOS versions older than 13.x are not supported.

Source
Microsoft Defender for Cloud: Is there a free trial?

Yes, a 30-day trial with a new or existing Azure account.

AWS Serverless Application Model (AWS SAM): What licence does AWS SAM use?

The serverless-application-model repository on GitHub is licensed under Apache-2.0.

Source
Microsoft Defender for Cloud: Does it cover AWS and Google Cloud?

Microsoft says it covers hybrid and multicloud environments.

AWS Serverless Application Model (AWS SAM): How does SAM differ from the AWS CDK?

The documentation says to use SAM instead of the CDK if you prefer a declarative approach to describing infrastructure rather than a programmatic one. The two can also be combined, using the SAM CLI's local testing with CDK applications.

Source
Microsoft Defender for Cloud: Is it the same as Defender XDR?

No. Defender for Cloud protects cloud workloads and posture, while Defender XDR correlates alerts from the Defender user and endpoint products.

Share

Related pages

Other head to heads