简体   繁体   English

如何使用Visual Studio但不使用Azure模拟器将现有的Web应用程序项目部署到Azure?

[英]How do I deploy an existing web app project to Azure using Visual Studio but no Azure Emulator?

I have an existing project with three web apps (two web API and a front end). 我有一个包含三个Web应用程序(两个Web API和一个前端)的现有项目。 I would like to deploy to Azure all three with a single click of Publish using the Publish Web wizard. 我希望使用“发布Web”向导单击一次“发布”即可将所有三个部署到Azure。

I installed the Azure SDK and tried to create a new Cloud Service, but this install the VMs and the storage emulator, that I don't need at all and slows down my PC. 我安装了Azure SDK并尝试创建一个新的Cloud Service,但这安装了我根本不需要的VM和存储模拟器,并降低了我的PC的速度。

I tried with Azure Resource Group to add to an existing project, but the Deploy button remains disabled, like it failed to connect to the web site project. 我尝试使用Azure资源组添加到现有项目,但是“部署”按钮保持禁用状态,就像它无法连接到网站项目一样。 What is the recommended way to do this? 推荐的方法是什么?

I am using Visual Studio 2015 我正在使用Visual Studio 2015

Thx. 谢谢。

You do not need to install the emulator for the deployment to work, just download the parts you need from http://www.microsoft.com/en-us/download/details.aspx?id=48178 (assuming you want SDK 2.7). 您无需安装仿真程序即可使部署正常运行,只需从http://www.microsoft.com/zh-cn/download/details.aspx?id=48178下载所需的部件(假设您需要SDK 2.7) )。

It's not really clear from your question if you want to deploy a Cloud Service or a Web App. 从您的问题是否真的不清楚,您是否要部署Cloud Service或Web App。 If you want to deploy a Cloud Service, you can add all 3 projects as roles and they will all be published within a single deployment (just one click to Publish). 如果要部署Cloud Service,则可以将所有3个项目添加为角色,并且它们都将在单个部署中发布(只需单击一次即可发布)。 But, if what you want is to deploy them as web apps, you will need to do it in 3 different apps, which means 3 clicks to publish. 但是,如果要将它们部署为Web应用程序,则需要在3个不同的应用程序中进行操作,这意味着要单击3次才能发布。

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

相关问题 从现有的 Azure Web 应用程序创建 Visual Studio 2019 项目 - Create Visual Studio 2019 project from existing Azure Web App 无法使用 Visual Studio 2019 部署我的 Azure Web 应用程序 - Unable to deploy my Azure Web App using visual studio 2019 使用Visual Studio编译现有的js文件Azure Web应用程序 - Compile an existing js file azure web app using visual studio 如何使用 Visual Studio Online 在 Azure VM 中部署 Web 应用程序 - How deploy Web application in Azure VM using Visual studio online Visual Studio-将现有网站/ webAPI部署到Azure - Visual Studio - deploy existing website/webAPI to Azure 能否使用 Visual Studio Web Publish 将单个 aspx.cs 文件部署到 Azure Web App(Azure 运行时问题) - Can you deploy single aspx.cs file using Visual Studio Web Publish to Azure Web App (Azure runtime issue) 如何在Visual Studio 2017中将调试器附加到Azure Web应用程序? - How do I attach the debugger to an Azure web app in Visual Studio 2017? 将Visual Studio类库项目部署到Azure - Deploy Visual studio class library project to Azure 从Visual Studio Web部署到Azure - Web deploy to Azure from visual studio 如何在Visual Studio Online中将node.js应用程序部署到Azure? - How to deploy a node.js app to Azure in Visual Studio Online?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM