From ASP.NET Web Forms to .NET microservices on Azure, with no big-bang rewrite
A business-critical ASP.NET Web Forms (ASPX) platform needed a cloud-native architecture on a hard deadline, with no acceptable downtime window. Bluemesh's lead architect led the modernization with the strangler fig pattern, so each step was small and could be undone.
At a glance
- Service
- App Modernization, Platform Engineering
- Cloud
- Azure
- When
- Between 2022 and 2026
- Who
- Bluemesh's lead architect, in an earlier role. Client not named.
The story
The situation
A business-critical ASP.NET Web Forms (ASPX) platform, one the business could not run without, needed a resilient cloud-native architecture. The deadline was fixed, and there was no acceptable downtime window.
What was really holding it back
Big-bang rewrites of systems like this usually fail: all the risk lands on one cutover day, the moment traffic moves to the new system. Moving piece by piece avoids that, but it brings its own danger: the half-migrated state, when old and new must run together and stay consistent.
What was decided, and why
- Strangler fig, not a rewrite. The new .NET Core platform on Azure stood beside the old one, and capability moved piece by piece. Each step was small and could be undone.
- Sagas for transactions across services. Two-phase commit does not survive a distributed migration, so each transaction became a saga: a chain of steps, each with an undo step that runs if a later step fails.
- Dapr for the plumbing. Dapr handled service calls, publish and subscribe messaging, and state, so the team did not have to build them by hand under a deadline.
- Linkerd for visibility. A service mesh for reliability and observability between services, because a half-migrated system you cannot see is a system you cannot manage.
- Data and cost. SQL Server workloads moved to Azure SQL, and a cost-tagging strategy gave financial governance.
The trade-off
The design accepted extra complexity in how the migration worked, so each cutover could be small and reversible. Under a deadline, the team used proven tools such as Dapr and Linkerd instead of building its own, and saved its judgment for the cutovers.
The result
Delivered by the deadline, with no downtime that affected the business. Each cutover was routine, and the team was left with a platform it could keep extending.
How the parts fit
The parts used in this project, in the order a request moves through them.
- Userssame address as before
- Routing layersends each feature to old or new
- Legacy ASPX appshrinks with every step
- .NET Core servicesthe new platform on Azure
- Daprcalls, events and state
- Linkerdreliability and visibility
- Sagaseach step has an undo step
- Azure SQLmoved from SQL Server
Technology used in this project
- ASP.NET Web Forms (ASPX)
- .NET Core
- Microservices
- Strangler fig pattern
- Saga pattern
- Dapr
- Linkerd service mesh
- SQL Server to Azure SQL
- Cost tagging
How Bluemesh builds it today
A reference architecture for a new project, based on current Azure and AWS guidance. It describes what Bluemesh would build now, not what was built in the project above.
Foundation: Cloud Adoption Framework and landing zone
- An Azure landing zone from the landing zone accelerator and Azure Verified Modules in Terraform: management groups, policy as code, hub-and-spoke or Virtual WAN networking, Azure Firewall, private DNS and Microsoft Defender for Cloud.
- One application landing zone per environment (development, test, production) through subscription vending.
- Designed and reviewed against the Cloud Adoption Framework and the five pillars of the Well-Architected Framework: reliability, security, cost optimization, operational excellence and performance efficiency.
Edge and APIs
- Azure Front Door with a web application firewall (OWASP rules, bot protection) as the single public entry.
- API Management as the strangler façade: each route goes to the old application or to a new service, so moving a feature is a routing change. Standard v2 for private endpoints and virtual network integration; classic Premium when a second regional gateway is needed.
Compute: the AKS baseline
- Azure Kubernetes Service (AKS) with Entra ID and local accounts disabled, workload identity, Azure CNI Overlay, availability zones, Azure Linux nodes, and separate system and user node pools.
- Key Vault through the Secrets Store CSI driver, Azure Policy for Kubernetes, Defender for Containers, Azure Container Registry on a private endpoint, and GitOps with Flux.
- .NET 10, the current long-term support release, for new services, with one database per service.
Dapr and the service mesh
- The Dapr extension for AKS: service invocation, publish and subscribe on Azure Service Bus, state stores, the outbox pattern, and resiliency policies for retries, timeouts and circuit breakers.
- Linkerd for mutual TLS between services, retries and golden metrics per route. Stable Linkerd releases now come from Buoyant, free for small companies and licensed above 50 employees; the managed Istio add-on for AKS is the alternative.
- When Dapr and a mesh run together, the mesh owns mutual TLS and Dapr's is turned off, so traffic is not encrypted twice.
Data and disaster recovery
- Azure SQL for transactional data: zone-redundant, a failover group to Canada East with a customer-managed failover policy and a tested runbook, point-in-time restore and long-term backup retention.
- Azure Cosmos DB for NoSQL for high-scale documents and saga state: zone-redundant in Canada Central, a second region in Canada East, continuous backup with 30-day point-in-time restore, and Session consistency.
- Cosmos DB failover: per-partition automatic failover where write availability is critical (it has tier and SDK requirements); otherwise service-managed failover plus a forced-failover runbook, because service-managed failover can take an hour or more.
- Multi-region writes only where services are built to resolve conflicts, and never with Bounded Staleness consistency.
- Recovery time and recovery point agreed for each service, and failover drills run on a schedule, so gaps are found before an outage.
DevOps and platform engineering
- Azure DevOps or GitHub Actions with workload identity federation, so no secrets are stored; environments with approvals; image scanning and policy checks in the pipeline.
- Canary releases with Flagger or Argo Rollouts, which roll back automatically when error rates rise.
- Golden-path templates: a new service starts with Dapr, the mesh, dashboards, alerts and Terraform already in place.
Observability, security and cost
- Azure Monitor, managed Prometheus and Grafana, Application Insights with OpenTelemetry, service-level objectives and alerts.
- Zero Trust, NIST and CIS baselines, private endpoints, Key Vault and Microsoft Sentinel.
- Tags, budgets, autoscaling with the cluster autoscaler and KEDA, and reserved capacity once usage is stable.
Start small
- One façade, one slice, one database. Front Door, Premium tiers and a second region come when the recovery target needs them.
Questions
How do you migrate ASP.NET Web Forms to .NET without a rewrite?
With the strangler fig pattern: put a routing layer in front, build each capability as a new service, send its traffic to the new service, and retire the old page. The business keeps working throughout.
Is ASP.NET Web Forms still supported?
Web Forms runs only on .NET Framework, which still gets security fixes but no new features. Modern .NET does not include Web Forms, so moving means rebuilding the pages, which is why a piece-by-piece migration is safer.
Why use Dapr and a service mesh together?
Dapr gives developers ready-made building blocks for calls, events and state. A mesh such as Linkerd secures and observes the traffic between services. Let the mesh own mutual TLS, so it is not done twice.
What is the best disaster recovery setup for Azure Cosmos DB?
At least two regions, zone redundancy, continuous backup and a tested failover plan. Per-partition automatic failover gives the fastest recovery for writes. Multi-region writes give the highest availability but need conflict handling, so use them only where the application is built for it.
Facing the same problem?
Send a few lines about your system. You get a reply with the first questions to answer and a way to start small.
Talk to BluemeshUpdated:
More work
- AI agents for Jira, Confluence and GitHub, inside Microsoft Teams through MCP
- Chat with your business data, without letting AI write SQL
- A document assistant designed so each person sees only what they are allowed to read
- A production generative AI platform with six model providers and more than 40% fewer prompt tokens
- Enterprise architecture aimed at sales: a new biotechnology product line in the public supply chain
- Java EE point-of-sale platforms rebuilt as microservices on AWS
- SAP Business One integrations that keep each system independent
- Moving a large group of servers to the cloud, riskiest dependencies first
- An AI assistant that puts the caller's history on the representative's screen