Microsoft Certified: Azure Developer Associate (AZ-204)Develop Azure compute solutionsMedium

A developer needs to deploy a legacy ASP.NET web application to Azure. The application requires specific older versions of .NET Framework components and has some dependencies on Windows-specific features. The company wants to migrate this application with minimal code changes while ensuring high availability and scalability. Which Azure compute solution should the developer choose?

  1. AAzure Container Instances (ACI)
  2. BAzure Functions
  3. CAzure App Service for Windows
  4. DAzure App Service for Linux
Show answer & explanation

Correct answer: C. Azure App Service for Windows

Azure App Service for Windows is designed to host ASP.NET applications, including those built on older .NET Framework versions, and provides built-in features for high availability, scalability, and integration with other Azure services, requiring minimal code changes for migration.

Why the other options are wrong

  • A. ACI can run containers, but packaging a legacy ASP.NET application into a Windows container can be complex and it lacks the built-in PaaS features for scalability and management that App Service offers.
  • B. Azure Functions are for serverless, event-driven microservices, not for hosting entire traditional web applications, especially legacy ones.
  • D. Azure App Service for Linux does not support legacy ASP.NET applications that depend on the .NET Framework and Windows-specific features.

Azure App Service

A fully managed platform-as-a-service (PaaS) for building, deploying, and scaling web apps, mobile backends, and RESTful APIs, supporting various languages and frameworks, including .NET, Java, Node.js, Python, and PHP.

  • Supports Windows and Linux environments
  • Built-in auto-scaling and load balancing
  • Integrated with Azure DevOps, GitHub, etc. for CI/CD
  • Offers various pricing tiers for different needs

Memory trick: App Service runs your site, Functions just do a bit, VMs give full control, AKS orchestrates it.

More Develop Azure compute solutions questions