简体   繁体   中英

Continuous deployment from Visual Studio Team Services to Azure App Service

I'm trying to automatically deploy from Team Services (was Visual Studio Online) after a successful build a C# program to an azure app service without success.

I can only do it to a cloud service (classic) rather app service.

在此处输入图片说明 在此处输入图片说明

I've seen that I could plug Team Services directly to the app service with "deployment source" (I did tried so far because both tenant, Team Services & Azure one are different and requires some effort) 在此处输入图片说明

but wouldn't it break the normal release / test process from Team Services? I can only find little information over internet regarding these topics ... Any help would be appreciated.

To publish to an Azure App Service, you need to use either of the following Agent tasks:

部署选项

Here is a walkthrough: https://www.visualstudio.com/en-us/docs/build/apps/aspnet/aspnet4-to-azure

When making a new build definition, it is easiest to choose the Deployment -> Azure WebApp option.

您还可以在构建定义中添加FTP上传任务,以通过FTP方法将输出发布到Azure App Service。

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