Azure function app deploy and release pipeline error
I get predefined pipeline from VS integration. So for those you have the same case:
- In GUI/Classic mode Release page -> edit pipeline
- Edit task in stage section (this is responsible for deploying)
- Replace
Azure Web App
task withAzure App Service deploy
Azure function app deploy and release pipeline error
According to the error message:
Deployment of msBuild generated package is not supported. Change package format or use Azure App Service Deploy task.
It seems you are not using the correct task to publish the generated package. Since the generated package is .zip
, you can try the suggestion as error message said use Azure App Service Deploy task.
Azure App Service Deploy task:
Use this task in a build or release pipeline to deploy to a range of App Services on Azure. The task works on cross-platform agents running Windows, Linux, or Mac and uses several different underlying deployment technologies.
The task works for ASP.NET, ASP.NET Core, PHP, Java, Python, Go, and Node.js based web applications.
The task can be used to deploy to a range of Azure App Services such as:
Web Apps on both Windows and Linux
Web Apps for Containers Function
Apps on both Windows and Linux
Function Apps for Containers
WebJobs
Apps configured under Azure App Service Environments
Check this blog Visual Studio 2017 Tools for Azure Functions and Continuous Integration with VSTS for some more details.
Hope this helps.