[英]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.我有一个在本地主机上运行的 web 应用程序,我想使用 azure 应用程序服务或 azure 虚拟机在线启动它。 which is the best choice?
哪个是最好的选择?
Solution to host webapplication托管 web 应用程序的解决方案
There are ways to deploy your application to Azure Cloud.有多种方法可以将您的应用程序部署到 Azure Cloud。
Method 1 : Azure App Service is fully managed platform for deploying application and scaling apps.方法 1 : Azure App Service是用于部署应用程序和缩放应用程序的完全托管平台。 it has built-in web hosting feature and supports multiple languages and frameworks.
内置web托管功能,支持多种语言和框架。
Please follow the steps to deploy application to App Service .请按照以下步骤将应用程序部署到App Service 。
1.Create sample web application using Visual Studio application. 1.使用Visual Studio应用程序创建示例 web 应用程序。
Note: Before publish application to Azure, login to visual studio with Azure Account.
注意:发布应用到Azure之前,先用Azure账号登录visual studio。
5.Select target platform windows or Linux . 5.Select 目标平台windows或Linux 。
9.Test the application with Azure App service URL once deploy the application to Azure app service. 9.使用Azure App service URL测试应用程序一旦部署到Azure app service。
Go to Azure Portal > Azure App Service > overview > Url . Go 至 Azure 门户 > Azure 应用服务 > 概览 > Url 。
Method 2: Azure VM方法二: Azure虚拟机
To deploy an application in an Azure VM with IIS , you can follow below steps:要使用IIS在Azure VM中部署应用程序,您可以按照以下步骤操作:
Azure Portal > Create > Select Server OS. Azure 门户 > 创建 > Select 服务器操作系统。
2.Use RDP to connect to the Azure VM. 2.使用RDP连接Azure虚拟机。
You can use FTP to upload your code to the Azure VM .您可以使用FTP将您的代码上传到Azure VM 。
Now, open the IIS Manager and create a new website in that IIS .现在,打开IIS Manager并在IIS中创建一个新网站。
After that, you can configure the website to point to the location of your application code on the VM .之后,您可以将网站配置为指向您的应用程序代码在VM上的位置。
Finally, test your application.最后,测试您的应用程序。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.