Can we migrate ASP applications to Azure Web App ?

MS Techie 2,676 Reputation points
2020-11-26T11:51:30.347+00:00

Can we migrate ASP applications to Azure Web App ?

Please help

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,875 questions
{count} votes

Accepted answer
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2020-12-04T06:45:43.213+00:00

    Thanks for follow up!

    On-premise SQL Server connection: Once you migrated your ASP application to Azure App Service Windows container you can use Regional Vnet Integration and SQL Authentication to authenticate between your application and database.

    As mentioned in the official doc: https://learn.microsoft.com/en-gb/azure/app-service/web-sites-integrate-with-vnet#regional-vnet-integration

    On-premise file-share: As of today there is restrictions connecting to on-premise file share and this is not supported. Please refer to similar post for more details on this.

    1 person found this answer helpful.

3 additional answers

Sort by: Most helpful
  1. SnehaAgrawal-MSFT 18,286 Reputation points
    2020-12-02T14:45:08.973+00:00

    Thanks for replying and clarification. If you want to migrate the legacy on-prem legacy classic ASP application you can use Docker on Azure App Service which gives you many benefits like better SLA, scalability etc.

    You may refer to article Containerize and Migrate Legacy Classic ASP to Azure App Service on explaining on migration of on-prem legacy classic ASP application by containerizing and then hosting it to Azure App Service by using below steps:

    • Setup Classic ASP Application
    • Create Dockerfile in the same application folder
    • Create local Docker image
    • Push the Image to Azure Container Registry
    • Create Azure Web App using Docker image

    You may also refer to the step-step instructions outlined in this blog on How to run classic ASP on Azure Web Apps

    Additional details: Windows Azure: How-to enable classic ASP support

    Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you.

    1 person found this answer helpful.

  2. SnehaAgrawal-MSFT 18,286 Reputation points
    2020-11-27T04:20:35.05+00:00

    Thanks for reaching here! If I have understood right you want to migrate ASP.NET app from on premises to azure app service.

    Let us know if you have further question.


  3. SnehaAgrawal-MSFT 18,286 Reputation points
    2020-12-09T08:39:42.843+00:00

    There is nothing different in terms of the Dockerfile for connecting to an on-premises SQL Server as opposed to a SQL Azure DB. The connection string can be externalised using App Settings. You need to connect to your on-premises SQL db using SQL Authentication.

    Here is an example contents of a Dockerfile for shipping an app (this was generated in Visual Studio 2019)

    FROM mcr.microsoft.com/dotnet/framework/aspnet:4.8-windowsservercore-ltsc2019
    ARG source
    WORKDIR /inetpub/wwwroot
    COPY ${source:-obj/Docker/publish} .

    Further you need to configure Regional VNET Integration to be able to reach the on-premises SQL Server.

    Refer:
    Quickstart: Run a custom container on App Service - Azure App Service
    Integrate app with Azure Virtual Network - Azure App Service

    0 comments No comments