azure-pipelines-tasks: [BUG]: AzureFunctionApp@2 deployment gets stuck and fails sporadically
Task name
AzureFunctionApp
Task version
2.225.1
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
windows-latest
Task log
Starting: AzureFunctionApp
==============================================================================
Task : Azure Functions Deploy
Description : Update a function app with .NET, Python, JavaScript, PowerShell, Java based web applications
Version : 2.225.1
Author : Microsoft Corporation
Help : https://aka.ms/azurefunctiontroubleshooting
==============================================================================
Got service connection details for Azure App Service:'***'
Updating App Service Application settings. Data: {"WEBSITES_ENABLE_APP_SERVICE_STORAGE":"true","WEBSITE_RUN_FROM_PACKAGE":"1"}
App Service Application settings are already present.
Package deployment using ZIP Deploy initiated.
##[error]Failed to deploy web package to App Service.
##[warning]Can't find loc string for key: KuduStackTraceURL
##[error]KuduStackTraceURL https://$***:***@***.net/api/vfs/LogFiles/kudu/trace
##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)
##[warning]Error: Failed to update deployment history. Error: Conflict (CODE: 409)
App Service Application URL: ****
Finishing: AzureFunctionApp
Relevant log output
##[error]Error: Error: Failed to deploy web package to App Service. Conflict (CODE: 409)
Aditional info
https://github.com/microsoft/azure-pipelines-tasks/issues/14201
Seems to be the same issue as found here
Sometimes takes an hour to fail. If cancelled, sometimes gets the conflict error.
About this issue
- Original URL
- State: open
- Created a year ago
- Reactions: 6
- Comments: 15 (4 by maintainers)
Following a consultation with Azure Support, the integration of the subsequent parameter into my resource configuration effectively addressed the issue:
WEBSITE_WEBDEPLOY_USE_SCM = “true”
We have been experiencing this issue since the start of November.
Switching from this task to Azure CLI seems to have fixed our deployment timing out after 60 mins to <1 minute. No changes to the Function App.
If possible, can you enable the debug logs (systm.debug=true) and share the logs please? Thanks
Having the same error too. All my Azure DevOps / Azure stack is impacted because of this bug I could not deploy. Thanks for your help.
Exactly the same error since yesterday