Skip to main content

What are you looking for?

Explore our services and discover how we can help you achieve your goals

Client Workspace

Lift-and-shift pitfalls for Windows and .NET workloads: licensing, session state and identity

Windows and .NET applications moved to cloud virtual machines unchanged usually break in three places: licence rights that do not travel, session state held in one server's memory, and sign-in that depends on an on-premises domain. Netbase checks these three ledgers per application before a move and ports or replatforms when one cannot be settled.

Book a solution review See the enterprise operations solution

By Netbase Commerce and Platform Engineering Desk · Reviewed by David (CEO) · Updated · 10 min read

star

This guide is for IT leads, heads of engineering and CTOs who plan to rehost Windows Server, IIS and ASP.NET applications on AWS, Azure, Google Cloud or another cloud. It sits beside Netbase's cloud platform engineering service and covers the part of a cloud migration and modernization project that decides whether a "copy the server" plan survives its first week in production.

In this guide

Why do Windows and .NET applications fail after a lift-and-shift?

A lift-and-shift copies the server, not the environment around it. On premises, a Windows application quietly relies on three things the data centre gave it for free: licences bought for that hardware, a single web server or a load balancer that pinned each user to one machine, and a domain controller on the same network. A cloud virtual machine keeps the code and the operating system but drops those assumptions.

The failures rarely show on day one. The licence question surfaces at the next true-up or audit. Session loss appears when the team adds a second instance or an autoscaling rule. Identity breaks when the site-to-site link back to the office domain is slow, down or finally removed. Each can be checked before the move.

Which licensing rules change when Windows servers move to the cloud?

Licences bought for your own servers do not automatically follow the workload. Microsoft states that Azure Hybrid Benefit for Windows Server requires core licences with active Software Assurance or qualifying subscription licences, counts at least 8 core licences per virtual machine, and only applies while that Software Assurance or subscription term runs.

On AWS, the Windows on AWS FAQ says Windows Server licences can be brought only to EC2 Dedicated Hosts and only if they were bought before 1 October 2019 or added as a true-up under an agreement effective before that date. SQL Server licences with active Software Assurance can move to shared instances through License Mobility; without it, they follow the same Dedicated Host and date rule.

The licence ledger needs a person who can read your agreements, not only an engineer. For each server, record the product and edition, how it was bought, whether Software Assurance is active and when it ends, and which target the rules allow: licence-included instances, your own licences on shared tenancy, or dedicated hardware. Microsoft notes that the product terms of your programme take precedence over its documentation, so the final answer comes from those terms.

Why does session state break when you scale out?

Classic ASP.NET defaults to in-process session state. Microsoft's session-state modes documentation describes InProc as storing session data in memory on the web server, while the StateServer and SQLServer modes keep it outside the worker process so that it survives restarts and is shared by several servers in a web farm.

On one server, InProc works. Behind a cloud load balancer with two or more instances, a user whose next request lands on another instance loses the basket, the half-filled form or the login. Two smaller traps follow: objects stored out of process must be serialisable, and every server in the farm needs the same machine key, or cookies and view state signed on one instance fail on the next.

How does domain identity break, and what replaces it?

Many internal .NET applications use Windows-integrated authentication: the user's domain account and group membership decide access, and service accounts talk to SQL Server with Kerberos or NTLM. Moved to the cloud, those applications still need a domain controller they can reach. Microsoft's overview of Microsoft Entra Domain Services describes a managed domain with domain join, Group Policy, LDAP and Kerberos or NTLM for exactly these legacy applications, and calls it a transitional capability rather than a replacement for your on-premises directory.

The identity ledger therefore asks which applications authenticate against the domain, which service accounts and group names are hard-coded, and where the domain will live after the move: extended over a private link, a managed domain in the cloud, or retired in favour of single sign-on with OpenID Connect. The network side of that choice belongs in the cloud landing zone design.

The three-ledger pre-move checklist

  1. List the servers and applications

    Name the owner, the Windows Server, IIS, .NET Framework and SQL Server versions, and the users of each application.

  2. Settle the licence ledger

    For every Windows Server and SQL Server licence, record how it was bought, the Software Assurance status and end date, and the target the agreement allows; decide licence-included or your own licence before choosing instance types.

  3. Settle the state ledger

    Read each web.config for the session-state mode and machine key, search the code for files written to local disk, and decide where state lives once there are two instances.

  4. Settle the identity ledger

    List Windows-authenticated sites, service accounts, Kerberos delegation and hard-coded group names; choose a domain extension, a managed domain or single sign-on.

  5. Test with two instances

    Rehearse the move with at least two web instances behind the load balancer and sign in with real roles, so session and identity faults show before users see them.

  6. Write down the debt

    For every ledger item accepted rather than fixed, name an owner and the release that removes it.

The cutover itself, with rollback points, DNS and the final data sync, follows the cloud migration cutover plan.

Rehost, fix first, replatform or port?

Route Ledgers it settles Main risk Choose it when
Rehost unchanged None; inherits all three Licence breach, session loss, slow sign-in One instance, licence-included images, domain reachable
Rehost with targeted fixes State and machine key; licence decided per server Fixes slip after the deadline A data centre exit date is fixed and the code can take small changes
Replatform to a managed Windows web host State and patching move to the platform Platform limits on local disk and custom IIS modules The app runs on IIS without local file writes
Port to current .NET All three, by design Effort and regression testing The runtime is out of support or the licence ledger does not close

Runtime support dates drive the last row; the end-of-life .NET guide ranks them, and Microsoft's porting guidance covers the move from .NET Framework. Netbase's .NET development page describes how that work is staged.

When should you not lift and shift a Windows workload?

  • When the licence ledger has no compliant target: licences bought after the 2019 cut-off without Software Assurance, and no budget for licence-included instances.
  • When the application only works with one server and the business needs it to scale or survive an instance failure.
  • When every sign-in depends on an on-premises domain that the company plans to retire within the same programme.
  • When the runtime is already out of support, so the move would carry an unpatched stack onto a new bill.

In these cases, fix or port first and move second, or keep the workload where it is until the ledger can close.

Where AI fits

AI helps with the inventory, not with the licence decision. An assistant can read web.config files, IIS settings and code to list session modes, machine keys, local file writes and Windows-authentication settings, and draft the three ledgers for engineers to confirm. Netbase works with the major commercial and open-source AI tools and models, chosen per project.

Engineers check every finding against the running servers, test with two instances and real roles, and a person who reads the agreements signs the licence ledger; no model decides licence rights or changes identity settings.

What delivery record exists, and what does not

Netbase designs, builds, integrates and runs software across technologies, and names AWS, Google Cloud, DigitalOcean and Cloudflare as the cloud providers it uses. It works as offshore development partner on a multi-tenant cloud ERP delivered as SaaS for a US client, not named; that platform is not built on .NET.

No published Netbase record describes a Windows or .NET lift-and-shift, no Azure partnership or certification is claimed, and no licence saving, downtime or duration figure is given here. Delivery runs in a six-step lifecycle with weekly reviews and KPI dashboards, role-based access control and MFA for admin dashboards, most projects run on fixed-price contracts, and Netbase can run and maintain what it moves under an agreed support scope.

What are the alternatives to a lift-and-shift, and how do you choose?

Alternative Fits when Selection criterion
Stay on premises for now The ledgers cannot close before the exit date Hardware and support contracts cover the gap
Managed hosting of the same servers You want out of the data centre, not into cloud services The provider sells licence-included Windows hosting
Containers for Windows The app installs cleanly by script No wizard installs, no domain roles inside the container
Rebuild the application The process has changed more than the code A legacy assessment shows low reuse value

Teams that want their release and environment practice in shape first can start with Netbase's DevOps and platform engineering service.

Limits of this guide

  • It is not licensing advice; the product terms of your Microsoft agreement and your cloud provider decide.
  • Provider rules and documentation change; check the pages cited here on the day you plan.

Plan the next step with a Netbase consultant

Frequently asked questions

Sometimes. On Azure, Hybrid Benefit needs active Software Assurance or qualifying subscription licences. On AWS, Windows Server licences can be brought only to Dedicated Hosts and only if bought before 1 October 2019, so many teams choose licence-included instances instead.

They hide it rather than fix it. Users stay on one instance until that instance restarts, is patched or is removed by scaling, and then their session is lost. Moving session state to a shared store, with the same machine key on every server, is the lasting fix.

Only if the applications still use Windows-integrated authentication, domain join or LDAP. Then you extend your domain, run a managed domain or move the applications to single sign-on; otherwise the domain dependency can be retired with the move.

Port first when the runtime is out of support, the licence ledger cannot close or the application must scale. Rehost first when a fixed exit date leaves no time, and plan the port as the next release.

Next step

If you want the three ledgers checked for your Windows estate before a move, book a solution review with Netbase.

AI-ready cloud platform engineering for SaaS and commerce workloads AI-ready cloud platform engineering for SaaS and commerce workloads

Netbase provides cloud platform engineering for SaaS and commerce teams that need a secure, repeatable home for their software and its AI features, on AWS, Google Cloud, DigitalOcean or Cloudflare. We design the architecture, write the environments as code, connect managed and AI services and hand over a platform your team can run, built the way we run ours.

Learn More
line
AI-assisted cloud migration with a cut-over plan and a way back AI-assisted cloud migration with a cut-over plan and a way back

Netbase provides cloud migration services for companies running business applications on ageing servers or hosting to move them to AWS, Google Cloud, DigitalOcean or Cloudflare without losing data or control. AI speeds up the code and dependency assessment; every migration still has an inventory, a rehearsed cut-over, cost controls from day one and a tested rollback point.

Learn More
line
AI-assisted DevOps and platform engineering for routine releases AI-assisted DevOps and platform engineering for routine releases

Netbase provides DevOps and platform engineering for SaaS and commerce teams to make releases routine instead of risky. We set up CI/CD pipelines, repeatable environments and observability on AWS, Google Cloud, DigitalOcean or Cloudflare, with AI assistance for tests, reviews and incident triage, so every change ships the same way and problems surface before customers notice.

Learn More
line
AI-enabled enterprise operations solutions that run your back office AI-enabled enterprise operations solutions that run your back office

Enterprise operations solutions are the Netbase family of back-office software: a cloud ERP, CRM and workflow automation, and an integration hub that joins them to the tools a company already runs. They help operations, finance and sales leaders replace spreadsheets and disconnected apps with one workflow from first lead to closed books, with AI reading documents, forecasting and scoring leads.

Learn More
line

Work with Netbase remotely

Every Netbase engagement is delivered remotely, so clients in any country and any industry can work with us; Netbase has worked with clients in 80 countries. Contracts and invoices are issued by Netbase JSC, and payment is made by bank transfer to Netbase JSC's company account or PayPal Business. Talk to the CEO, Huy Nguyen (David), on WhatsApp or by email.

Contact Netbase

Discuss a project

Netbase JSC helps organizations design, build, modernize, and operate digital products and AI-enabled business systems.
Project enquiries

project@netbasejsc.com

WhatsApp

+84 937 869 689

Office address

91 Nguyen Chi Thanh, Dong Da, Hanoi, Vietnam

Get in touch

Tell us what you want to build, modernize, or operate.

Tell us what you want to build, modernize, or operate.

Contact Netbase