简体   繁体   English

On-Prem迁移到Azure

[英]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.方法 1Azure 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 应用程序。

在此处输入图像描述

  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.注意:发布应用到Azure之前,先用Azure账号登录visual studio。

在此处输入图像描述

  1. Select target- Azure Cloud. Select目标 - Azure云。

在此处输入图像描述

5.Select target platform windows or Linux . 5.Select 目标平台windowsLinux

在此处输入图像描述

  1. Click on App Service (Windows) > Create new (window) " in App Service (Windows) >Create new.单击App Service (Windows) > Create new (window)中的App Service (Windows) > Create new。

在此处输入图像描述

  1. Select your subscription, resource group & hosting plan . Select 您的订阅、资源组和托管计划

在此处输入图像描述

  1. Check the Application deployment status in visual studio account.检查 visual studio 帐户中的应用程序部署状态。

在此处输入图像描述

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

在此处输入图像描述

  1. Application working with App service Url使用App 服务 Url的应用程序

在此处输入图像描述

Method 2: Azure VM方法二: Azure虚拟机

To deploy an application in an Azure VM with IIS , you can follow below steps:要使用IISAzure VM中部署应用程序,您可以按照以下步骤操作:

  1. Create an Azure VM with required configuration such as the operating system and size.创建具有所需配置(例如操作系统和大小)的 Azure VM。

Azure Portal > Create > Select Server OS. Azure 门户 > 创建 > Select 服务器操作系统。

在此处输入图像描述

2.Use RDP to connect to the Azure VM. 2.使用RDP连接Azure虚拟机。

在此处输入图像描述

  1. You can use FTP to upload your code to the Azure VM .您可以使用FTP将您的代码上传到Azure VM

  2. Now, open the IIS Manager and create a new website in that IIS .现在,打开IIS Manager并在IIS中创建一个新网站。

  3. After that, you can configure the website to point to the location of your application code on the VM .之后,您可以将网站配置为指向您的应用程序代码在VM上的位置。

  4. Finally, test your application.最后,测试您的应用程序。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 从本地服务器获取 Azure KeyVault 机密 - Get Azure KeyVault secrets from On-Prem Server Anthos admin cluster on-prem、on Vm-ware 和 AWs 或 Azure 的用途 - purpose of Anthos admin cluster on-prem, on Vm-ware and on AWs or Azure 通过 Azure 数据工厂,从本地数据湖到 azure 数据湖存储的数据加载速度非常慢 - Data Loading very slow from on-prem Data Lake to azure Data Lake Storage though Azure Data Factory 云融合到本地 postgresql 数据库连接 - Cloud fusion to on-prem postgresql database connection 如何将私有 AWS codecommit 存储库克隆到本地服务器? - How to clone private AWS codecommit repo to on-prem server? 将数据从 BQ 移动到本地 SQL 服务器 relationalDB - Move data from BQ to on-prem SQL Server relationalDB GCP Dataflow +Apache beam - Http SOAP xml API 到外部本地网络服务 - GCP Dataflow +Apache beam - Http SOAP xml API to external on-prem webservice 如何使用本地 Python 脚本读取实时 AWS Lambda 日志? - How do I read real time AWS Lambda logs using on-prem Python script? 我们可以使用 AWS 上的自我管理 kube.netes 将本地独立应用程序迁移到 Runtime Fabric 吗? - Can we migrate on-prem standalone apps to Runtime Fabric with Self-managed kubernetes on AWS? 使用 AWS Transfer 系列定期将文件从 On-Prem 服务器拉到 S3 - Regularly pull files from On-Prem server to S3 using AWS Transfer family
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM