简体   繁体   中英

Migration of On-Prem to Azure

I have a web application that is running on my localhost and i want to use azure app service or azure vm to launch it online. which is the best choice?

Solution to host webapplication

There are ways to deploy your application to Azure Cloud.

Method 1 : Azure App Service is fully managed platform for deploying application and scaling apps. it has built-in web hosting feature and supports multiple languages and frameworks.

Please follow the steps to deploy application to App Service .

1.Create sample web application using Visual Studio application.

在此处输入图像描述

  1. Create a new project

在此处输入图像描述

  1. Right click on created application and choose Publish

Note: Before publish application to Azure, login to visual studio with Azure Account.

在此处输入图像描述

  1. Select target- Azure Cloud.

在此处输入图像描述

5.Select target platform windows or Linux .

在此处输入图像描述

  1. Click on App Service (Windows) > Create new (window) " in App Service (Windows) >Create new.

在此处输入图像描述

  1. Select your subscription, resource group & hosting plan .

在此处输入图像描述

  1. Check the Application deployment status in visual studio account.

在此处输入图像描述

9.Test the application with Azure App service URL once deploy the application to Azure app service.

Go to Azure Portal > Azure App Service > overview > Url .

在此处输入图像描述

  1. Application working with App service Url

在此处输入图像描述

Method 2: Azure VM

To deploy an application in an Azure VM with IIS , you can follow below steps:

  1. Create an Azure VM with required configuration such as the operating system and size.

Azure Portal > Create > Select Server OS.

在此处输入图像描述

2.Use RDP to connect to the Azure VM.

在此处输入图像描述

  1. You can use FTP to upload your code to the Azure VM .

  2. Now, open the IIS Manager and create a new website in that IIS .

  3. After that, you can configure the website to point to the location of your application code on the VM .

  4. Finally, test your application.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM