Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. Cloud Computing
  4. Migrate shared hosting ASP.Net site(s) to Azure

Migrate shared hosting ASP.Net site(s) to Azure

Scheduled Pinned Locked Moved Cloud Computing
hostingtutorialcsharpasp-netdatabase
5 Posts 3 Posters 37 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    DerekT P
    wrote on last edited by
    #1

    So, I've "played" with Azure a couple of times in the past, and found it MASSIVELY confusing - vast number of different services, huge number of (wildly varied) pricing options, dozens of pages of configuration, huge amount of new terminology. Really not into that, I'm a developer at heart, I like writing code. I have a client with a critical line-of-business ASP.Net Webforms website (not web application), plus a separate sub-domain for testing. He would like to move this away from his cheap-as-chips shared hosting, and onto Azure. (Two different hosting providers keep messing us around by changing configurations that break the site). So, is there a SIMPLE migration tool to help me move this site into Azure? A complication is that it uses MySql so we need a MySql service on Azure too (with 2 separate databases, 1 prod 1 UAT). The MS Azure site has reams of stuff about migrating, but it looks like it assumes you control a dedicated server. Doesn't necessarily need to be a tool, a comprehensive tutorial / walkthrough would be fine, BUT it would need to be up-to-date (When tinkering with Azure a couple of years ago I found not only was it complex, it was constantly shifting too!). Also anyone else's experiences with this migration path would be welcome, as I will need to give the client an estimate of my time on this migration. And once done, I will still need to connect from my existing d/b client (e.g. Heidi SQL, MySql Workbench) to the databases, and be able to EASILY upload changed pages, access IIS logs etc. I did at one point get the app running on Azure (linking back to the existing hosted MySql d/b) so I know it will run with minimal changes, just finding the whole thing pretty daunting right now.

    A K 2 Replies Last reply
    0
    • D DerekT P

      So, I've "played" with Azure a couple of times in the past, and found it MASSIVELY confusing - vast number of different services, huge number of (wildly varied) pricing options, dozens of pages of configuration, huge amount of new terminology. Really not into that, I'm a developer at heart, I like writing code. I have a client with a critical line-of-business ASP.Net Webforms website (not web application), plus a separate sub-domain for testing. He would like to move this away from his cheap-as-chips shared hosting, and onto Azure. (Two different hosting providers keep messing us around by changing configurations that break the site). So, is there a SIMPLE migration tool to help me move this site into Azure? A complication is that it uses MySql so we need a MySql service on Azure too (with 2 separate databases, 1 prod 1 UAT). The MS Azure site has reams of stuff about migrating, but it looks like it assumes you control a dedicated server. Doesn't necessarily need to be a tool, a comprehensive tutorial / walkthrough would be fine, BUT it would need to be up-to-date (When tinkering with Azure a couple of years ago I found not only was it complex, it was constantly shifting too!). Also anyone else's experiences with this migration path would be welcome, as I will need to give the client an estimate of my time on this migration. And once done, I will still need to connect from my existing d/b client (e.g. Heidi SQL, MySql Workbench) to the databases, and be able to EASILY upload changed pages, access IIS logs etc. I did at one point get the app running on Azure (linking back to the existing hosted MySql d/b) so I know it will run with minimal changes, just finding the whole thing pretty daunting right now.

      A Offline
      A Offline
      Afzaal Ahmad Zeeshan
      wrote on last edited by
      #2

      Quote:

      critical line-of-business ASP.Net Webforms website (not web application)

      Web Forms _is a web application_, and should be just fine on Microsoft Azure. [ASP.NET Web Deployment using Visual Studio: Introduction | Microsoft Docs](https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/introduction)

      Quote:

      plus a separate sub-domain for testing.

      Microsoft Azure provides this built-in to the platform; [Deployment Slots](https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots).

      Quote:

      is there a SIMPLE migration tool to help me move this site into Azure?

      Depends, if you can connect to the MySQL database locally and create a backup, Microsoft might have some tools to deploy the MySQL snapshot to Azure platform.

      Quote:

      A complication is that it uses MySql so we need a MySql service on Azure too (with 2 separate databases, 1 prod 1 UAT).

      I recommend using Terraform to create the infrastructures; dev and UAT. The UAT environment can be created when test is needed and then disposed when not needed.

      Quote:

      (When tinkering with Azure a couple of years ago I found not only was it complex, it was constantly shifting too!).

      Sadly it still is. But if you can get a subscription for MySQL engine on Azure, running the backup/restore should be just fine.

      The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

      D 1 Reply Last reply
      0
      • A Afzaal Ahmad Zeeshan

        Quote:

        critical line-of-business ASP.Net Webforms website (not web application)

        Web Forms _is a web application_, and should be just fine on Microsoft Azure. [ASP.NET Web Deployment using Visual Studio: Introduction | Microsoft Docs](https://docs.microsoft.com/en-us/aspnet/web-forms/overview/deployment/visual-studio-web-deployment/introduction)

        Quote:

        plus a separate sub-domain for testing.

        Microsoft Azure provides this built-in to the platform; [Deployment Slots](https://docs.microsoft.com/en-us/azure/app-service/deploy-staging-slots).

        Quote:

        is there a SIMPLE migration tool to help me move this site into Azure?

        Depends, if you can connect to the MySQL database locally and create a backup, Microsoft might have some tools to deploy the MySQL snapshot to Azure platform.

        Quote:

        A complication is that it uses MySql so we need a MySql service on Azure too (with 2 separate databases, 1 prod 1 UAT).

        I recommend using Terraform to create the infrastructures; dev and UAT. The UAT environment can be created when test is needed and then disposed when not needed.

        Quote:

        (When tinkering with Azure a couple of years ago I found not only was it complex, it was constantly shifting too!).

        Sadly it still is. But if you can get a subscription for MySQL engine on Azure, running the backup/restore should be just fine.

        The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

        D Offline
        D Offline
        DerekT P
        wrote on last edited by
        #3

        Many thanks for your response. :thumbsup:

        Afzaal Ahmad Zeeshan wrote:

        Web Forms is a web application, and should be just fine on Microsoft Azure.

        Nope. ASP.Net webforms allows you to create two types of web site - a "Web Application", which involves pre-compiling code into DLLs (all done by VisualStudio) and you implement the DLLs and .ASPX pages; and "Web Site", where the runtime does the compilation of each code-behind page when first called. It's therefore critical that Azure includes those runtime components or my site would not run as-is.

        Afzaal Ahmad Zeeshan wrote:

        Microsoft Azure provides this built-in to the platform; Deployment Slots.

        But only at the higher-end packages. Because the entire slot is "swapped" there's no way during the swap to also swap from UAT to production database if using a standard connection string. Also the IIS InstanceID presumably changes during the swap, so there is no way for an end-user to determine which environment they're looking at on-screen. (I use the InstanceID to make CSS changes, including adding environment name, to reduce the risk of making "test" transactions in the production environment; see IIS_Environment_Detection[^] A quick scout around just the "Deployment slots" documentation just now confirms Azure remains obscure and overly-complex for "normal" website applications.

        A 1 Reply Last reply
        0
        • D DerekT P

          Many thanks for your response. :thumbsup:

          Afzaal Ahmad Zeeshan wrote:

          Web Forms is a web application, and should be just fine on Microsoft Azure.

          Nope. ASP.Net webforms allows you to create two types of web site - a "Web Application", which involves pre-compiling code into DLLs (all done by VisualStudio) and you implement the DLLs and .ASPX pages; and "Web Site", where the runtime does the compilation of each code-behind page when first called. It's therefore critical that Azure includes those runtime components or my site would not run as-is.

          Afzaal Ahmad Zeeshan wrote:

          Microsoft Azure provides this built-in to the platform; Deployment Slots.

          But only at the higher-end packages. Because the entire slot is "swapped" there's no way during the swap to also swap from UAT to production database if using a standard connection string. Also the IIS InstanceID presumably changes during the swap, so there is no way for an end-user to determine which environment they're looking at on-screen. (I use the InstanceID to make CSS changes, including adding environment name, to reduce the risk of making "test" transactions in the production environment; see IIS_Environment_Detection[^] A quick scout around just the "Deployment slots" documentation just now confirms Azure remains obscure and overly-complex for "normal" website applications.

          A Offline
          A Offline
          Afzaal Ahmad Zeeshan
          wrote on last edited by
          #4

          Quote:

          Nope. ASP.Net webforms allows you to create two types of web site - a "Web Application", which involves pre-compiling code into DLLs (all done by VisualStudio) and you implement the DLLs and .ASPX pages; and "Web Site", where the runtime does the compilation of each code-behind page when first called. It's therefore critical that Azure includes those runtime components or my site would not run as-is.

          Right, thanks for the information. From what I "think", Visual Studio should be able to handle this situation.

          The shit I complain about It's like there ain't a cloud in the sky and it's raining out - Eminem ~! Firewall !~

          1 Reply Last reply
          0
          • D DerekT P

            So, I've "played" with Azure a couple of times in the past, and found it MASSIVELY confusing - vast number of different services, huge number of (wildly varied) pricing options, dozens of pages of configuration, huge amount of new terminology. Really not into that, I'm a developer at heart, I like writing code. I have a client with a critical line-of-business ASP.Net Webforms website (not web application), plus a separate sub-domain for testing. He would like to move this away from his cheap-as-chips shared hosting, and onto Azure. (Two different hosting providers keep messing us around by changing configurations that break the site). So, is there a SIMPLE migration tool to help me move this site into Azure? A complication is that it uses MySql so we need a MySql service on Azure too (with 2 separate databases, 1 prod 1 UAT). The MS Azure site has reams of stuff about migrating, but it looks like it assumes you control a dedicated server. Doesn't necessarily need to be a tool, a comprehensive tutorial / walkthrough would be fine, BUT it would need to be up-to-date (When tinkering with Azure a couple of years ago I found not only was it complex, it was constantly shifting too!). Also anyone else's experiences with this migration path would be welcome, as I will need to give the client an estimate of my time on this migration. And once done, I will still need to connect from my existing d/b client (e.g. Heidi SQL, MySql Workbench) to the databases, and be able to EASILY upload changed pages, access IIS logs etc. I did at one point get the app running on Azure (linking back to the existing hosted MySql d/b) so I know it will run with minimal changes, just finding the whole thing pretty daunting right now.

            K Offline
            K Offline
            kdbueno
            wrote on last edited by
            #5

            azure data sources, are not copious, nor they procure static threads, as analgesic.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups