All posts
Legacy Modernization

Windows Containers on ECS, or Port to Linux? The Two Ways Off Windows VMs

By

October 25, 2026

5 min read

ECS runs Windows containers on EC2 and on Fargate, which is the fastest way to get .NET Framework apps off hand-managed Windows servers. Porting to modern .NET on Linux takes longer and removes the Windows licence. The cost, the effort and the gotchas of each.

Windows Containers
Amazon ECS
Fargate
.NET Framework
Legacy Modernization

Windows containers on ECS

Port to .NET 10 on Linux

Code changes

None for most .NET Framework apps

A port: Web Forms, WCF and Workflow need replacing

Hosts

Windows EC2 container instances, or Fargate for Windows

Linux on Fargate, ECS Managed Instances or Lambda; Graviton available

Licence

Windows Server licence on every host (Fargate adds a per-vCPU OS licence fee)

None

Images

Large Windows base images; slower to pull and start

Small images, fast starts

Patching

Rebuild images on each Windows update

Rebuild images on each base image update

Best for

Getting off unmanaged VMs quickly; apps nobody will port

Apps that change often or run on many instances

Want a second opinion on this for your system?

Book a free 30-minute call. You'll leave knowing what we'd do first and roughly what it costs, whether or not you hire us.

Gotchas with Windows containers

  • The container's Windows version must be compatible with the host's. Plan image rebuilds for each Windows Server release you move to.

  • Apps that rely on the registry, local services, COM components or domain membership need extra work, such as group Managed Service Accounts for Active Directory authentication.

  • Windows images are large; pre-cache them on EC2 hosts or accept longer starts.

hoolco Monthly Review

Once a month: what changed in tech that month and what it means for you, from cloud and AI to security and the tools you build with. Every item links to its source. No sales pitch, unsubscribe in one click.

As of October 25, 2026. Provided as is, for general information, and accurate to the best of our knowledge on the date shown. Not legal, compliance, tax, financial or other professional advice. Prices, limits and vendor services change; check current vendor documentation before relying on anything here. Terms of use.