0
votes

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.

enter image description here enter image description here

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) enter image description here

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.

2
What error do you have when try with "Azure Website Deployment"? It is used to deploy Azure Web App.Eddie Chen - MSFT
@Eddie-MSFT I already succeed to deploy in an Azure Web App, but I want to deploy to an App Service rather Azure Web app.camous

2 Answers

0
votes

You can also add a FTP Upload task in your build definition to publish the output to Azure App Service via FTP Method.

0
votes

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

Deployment Options

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.