question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App Service Deploy task - Failing to deploy to Linux Function App on a Consumption plan

See original GitHub issue

My 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:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
kstro21commented, Mar 4, 2020

Hey, @pomtom, hope it helps image

1reaction
kstro21commented, Feb 19, 2020

@ronakvpanchal just try the solution suggested by @eaarora-ms above, it worked for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Azure App Service deploy v4 task - Microsoft Learn
Use this task to deploy to Azure App Service a web, mobile, or API app using Docker, Java, .NET, .NET Core, Node.js, PHP,...
Read more >
Dotnet Isolated Azure Function w/ .Net 6 on a Linux ...
Imho, the Azure Function App Deploy task is obsolete. ... may be unable to deploy an app to Linux Azure Functions in the...
Read more >
Azure DevOps Python Function App failed zip deployment
2. Our production environment deploys to an always-on app service plan due to cold start performance issues we run into with Azure Python...
Read more >
How to set up automated deployment of a Linux function app ...
Azure Functions is a feature-rich platform-as-a-service (PaaS) offering of the Azure cloud, competing with AWS Lambda in the serverless space.
Read more >
Using Azure DevOps Pipelines to Deploy Azure Functions ...
The recommended way to push the artifacts to the function app would be to zip the function artifacts and then use the Azure...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found