GDPR Compliance

We use cookies to ensure you get the best experience on our website. By continuing to use our site, you accept our use of cookies, privacy policy and terms of service.

Technical guide

Azure Cloud Services (extended support) retirement: moving web and worker roles before March 31, 2027

Azure Cloud Services (extended support) retires on March 31, 2027, and Microsoft has said it will not grant extensions. There is no one-click migration: every web role and worker role has to be moved to another Azure service by hand. Microsoft points customers to Service Fabric, which does not run IIS. For most of the older .NET Framework apps still on Cloud Services, App Service or virtual machine scale sets are a shorter path. The right choice depends on what each role does, and there are about four months left to make it.

Craftware Technologies · Last updated November 26, 2026 · 7-minute read

RetiresMarch 31, 2027No extensions, per Microsoft
Deprecated sinceMarch 31, 2025A two-year retirement window
Migration toolNoneEach role is moved by hand

The date, and what Microsoft has said about it

Microsoft deprecated Azure Cloud Services (extended support) on March 31, 2025 and retires it on March 31, 2027. Until then, existing deployments keep running without disruption. To avoid a disruption after it, Microsoft says workloads have to be moved by that date.

Three things in Microsoft's retirement FAQ shape the plan:

  • No extensions. Microsoft's FAQ says it cannot grant extension requests. Unlike Windows Server or SQL Server, there are no Extended Security Updates to buy.
  • No migration tool. Moving off Cloud Services changes how the app is built and deployed, so there is no one-click path. Each application has to be adjusted by hand.
  • No price change while you stay. Billing continues at the same rate until you move.

Cloud Services (extended support) was itself the replacement for Cloud Services (classic), which has already been retired. If your app went through that move a few years ago, it was a deployment change. This one is not.

Where Microsoft says to go, and the catch

Microsoft's retirement notice points customers to Service Fabric managed clusters. Each web role or worker role becomes a Service Fabric stateless service, and the rest of the architecture, such as storage, queues, SQL Server and Redis, can stay as it is.

The catch is IIS. Service Fabric does not run it, so a web role has to become a self-hosted web app. In Microsoft's answer to a customer asking exactly this question, an ASP.NET MVC app has to be upgraded to ASP.NET Core MVC, and an ASP.NET Web Forms app is not supported at all and needs a redesign. For a web role built on .NET Framework 4.8, which describes most of them, that is a framework migration on a four-month deadline.

Microsoft's own Cloud Services documentation lists other destinations too: App Service, virtual machine scale sets, Azure Kubernetes Service and Azure Container Apps. For many apps, one of those is the shorter path.

Matching each role to a destination

Web role on .NET Framework: App Service Usually shortest

App Service on Windows runs IIS and .NET Framework 4.8, including Web Forms, so a typical web role can move with its code largely intact. What changes is the plumbing around it: settings read from the service configuration, startup tasks, certificates and local storage. Microsoft patches the operating system, which is the same hands-off model Cloud Services offered. This is where we start for most web roles.

Worker role: WebJobs, Functions or a container Depends on the work

A worker role is a loop that runs forever, usually pulling jobs from a queue. On App Service it can become a continuous WebJob next to the web app. If the work is triggered by queue messages or a schedule, Azure Functions fits well, though that usually means porting the code to modern .NET first. A worker that has to run continuously and scale on its own can move to a Windows container on Azure Kubernetes Service. Azure Container Apps runs Linux containers only, so it suits a worker that has already been moved to modern .NET.

Role with heavy startup tasks: scale sets Least code change

Some roles install software, register COM components or change the machine in startup tasks. Virtual machine scale sets give you Windows VMs you configure yourself, which keeps that behavior. It is the closest thing to a lift and shift, but you take on patching and image management that Cloud Services handled for you.

Distributed services you are modernizing anyway: Service Fabric Microsoft's pick

If the app is already being moved to ASP.NET Core, or it is made of many cooperating services that benefit from Service Fabric's hosting and upgrade model, follow Microsoft's recommendation. For a single web role and a worker, it is usually more platform than the app needs.

Destination Runs IIS and .NET Framework Code change Who patches the OS
App Service (Windows) Yes Low: settings, startup tasks, certificates Microsoft
Virtual machine scale sets Yes Low: configuration scripts You
Azure Kubernetes Service, Windows node pools Yes, in Windows containers Medium: containerize the role Shared
Service Fabric managed cluster No IIS High for web roles: move to ASP.NET Core Shared
Azure Container Apps No: Linux only High: move to modern .NET first Microsoft

What in the code is specific to Cloud Services

Whatever the destination, the same pieces have to be replaced. Search the solution for:

  • RoleEnvironment from Microsoft.WindowsAzure.ServiceRuntime, especially RoleEnvironment.GetConfigurationSettingValue. These settings come from the .cscfg file and have to move to app settings, environment variables or Azure App Configuration, with secrets in Key Vault.
  • RoleEntryPoint and its OnStart, Run and OnStop methods. In a worker role this is the main loop; in a web role it often holds startup code nobody remembers.
  • Startup tasks in the .csdef file, usually .cmd or PowerShell scripts that install components, change registry settings or open ports.
  • LocalResource and GetLocalResource, for scratch disk space on the role instance.
  • Certificates declared in the service definition and uploaded to the cloud service, including the one the site uses for HTTPS.
  • Instance endpoints and internal endpoints that let roles call each other directly.
  • The diagnostics extension and any logging that writes to the old Azure Diagnostics tables.

None of this is hard on its own. The time goes into finding all of it in an app whose original developers have often moved on, and testing that the replacement behaves the same.

Find every cloud service you have

Azure Resource Graph lists every Cloud Services (extended support) deployment in the subscriptions you can see. Run it in the Resource Graph Explorer in the Azure portal:

resources
| where type =~ 'microsoft.compute/cloudservices'
| project name, resourceGroup, location, subscriptionId

For each one, note:

  • The roles, whether each is a web role or a worker role, and how many instances run.
  • The .NET version each role targets, and whether a web role uses MVC, Web API or Web Forms.
  • The startup tasks and certificates in its service definition.
  • What it connects to: storage accounts, queues, Service Bus, SQL databases, Redis, and any IP address that a partner has allowed through their firewall.
  • Who owns it. Cloud services deployed years ago by a vendor often have nobody left who knows how to deploy them, and getting the deployment package and its configuration back is the first job.

A sensible order of work

01

Inventory this month

Every cloud service, its roles, their .NET versions, startup tasks, certificates and dependencies, and who can deploy it.

02

Choose a destination per role

App Service for most web roles, WebJobs, Functions or containers for workers, scale sets where startup tasks rule out anything else.

03

Replace the Cloud Services code

Move settings off RoleEnvironment, rewrite startup tasks, and turn RoleEntryPoint loops into hosted services or jobs.

04

Stand up the new environment

Built from templates, with certificates, networking and any fixed outbound IP addresses partners rely on.

05

Run both, then switch

Test the new deployment against real traffic, move DNS, and keep the cloud service running until you are sure.

06

Finish by February

Leave March for problems. With no extensions on offer, March 31, 2027 is not a date to aim for.

Four months is enough to move a web role to App Service. It is not enough to rewrite it for a platform that doesn't run IIS. Pick the destination first.

Where the hard part usually is

The move itself is well understood. The time goes into what surrounds it: a deployment package nobody has rebuilt since 2019, a startup task that installs a component no one remembers, a certificate that expired on the old platform and was renewed by hand, and a partner who allows traffic only from the cloud service's IP address. Apps still on Cloud Services are also often on an older .NET Framework; if yours is on 4.6.2, the .NET Framework 4.6.2 end of support guide covers that date, which falls in January 2027.

If you want a senior engineer to look at your cloud services with you, our legacy .NET modernization assessment is a fixed-price way to decide, role by role, where each one goes and what has to change, and our Azure cloud services team runs the move. If nobody on your side can deploy the app any more, start with what to do when your developer leaves.

More guides

Craftware Technologies builds and modernizes custom .NET and Azure software from Sugar Land, Texas, with senior engineers in US Central time. If you run a web or worker role on Azure Cloud Services and want to know where it should go, and how much of the code has to change to get there by March 31, 2027, sales@craftwaretech.com reaches us.