App Service Deploy task - Failing to deploy to Linux Function App on a Consumption plan
See original GitHub issueMy deployment pipeline fails when deploying to a Linux host on a consumption plan, the same pipeline works when deploying to a Linux host on a Premium App Service plan.
I initially had an error, caused by the deploy task trying to build the app with Oryx. Not sure why it would do that since it is a zip deploy and the app is already built. I fixed that by settings the SCM_DO_BUILD_DURING_DEPLOYMENT
variable to false
. Then I got a different error. Here is the log:
2019-11-06T21:09:51.8222516Z ##[section]Starting: Deploy Azure App Service
2019-11-06T21:09:51.8230120Z ==============================================================================
2019-11-06T21:09:51.8230230Z Task : Azure App Service deploy
2019-11-06T21:09:51.8230328Z Description : Deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP, Python, or Ruby
2019-11-06T21:09:51.8230409Z Version : 4.157.4
2019-11-06T21:09:51.8230480Z Author : Microsoft Corporation
2019-11-06T21:09:51.8230555Z Help : https://docs.microsoft.com/azure/devops/pipelines/tasks/deploy/azure-rm-web-app-deployment
2019-11-06T21:09:51.8230652Z ==============================================================================
2019-11-06T21:09:52.2420208Z Got service connection details for Azure App Service:[...]
2019-11-06T21:09:52.7772981Z Updating App Service Application settings. Data: {"FUNCTIONS_WORKER_RUNTIME":"node","WEBSITES_ENABLE_APP_SERVICE_STORAGE":"true"}
2019-11-06T21:09:52.8824623Z Updated App Service Application settings and Kudu Application settings.
2019-11-06T21:09:53.6445795Z Package deployment using ZIP Deploy initiated.
2019-11-06T21:10:20.7457463Z Deploy logs can be viewed at https://[***].scm.azurewebsites.net/api/deployments/77014f1d5b30475ca8301256f557038b/log
2019-11-06T21:10:20.7457964Z Successfully deployed web package to App Service.
2019-11-06T21:10:20.9165877Z Updating App Service Configuration settings. Data: {"linuxFxVersion":"DOCKER|microsoft/azure-functions-node8:2.0","appCommandLine":""}
2019-11-06T21:10:21.7380956Z Updated App Service Configuration settings.
2019-11-06T21:10:21.7390213Z Updating App Service Application settings. Data: {[***]}
2019-11-06T21:11:32.3615059Z ##[error]Error: Failed to fetch Kudu App Settings. Error: Site Unavailable (CODE: 503)
2019-11-06T21:11:34.1403676Z Successfully added release annotation to the Application Insight : [***]
2019-11-06T21:11:34.2457261Z ##[warning]Error: Failed to update deployment history. Error: Site Unavailable (CODE: 503)
2019-11-06T21:11:34.5420577Z App Service Application URL: http://[***].azurewebsites.net
2019-11-06T21:11:34.5548760Z ##[section]Finishing: Deploy Azure App Service
The error message makes sense as according to the Azure Portal, Kudu is not supported for Linux apps on a consumption plan. I can see that the application settings are applied properly though, maybe the deploy task should skip checking the app settings after updating them?
Is this a bug or a configuration issue in my app or deploy task?
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:10 (3 by maintainers)
Top GitHub Comments
Hey, @pomtom, hope it helps
@ronakvpanchal just try the solution suggested by @eaarora-ms above, it worked for me.