azure-pipelines-tasks: Validation during AzureFunctionApp Task takes too long

Type: Question

Enter Task Name: AzureFunctionAppV1, AzureFunctionAppV2

Issue Description

Both of these tasks take a long time (e.g. 13 minutes) just for the validation step to complete.

https://github.com/microsoft/azure-pipelines-tasks/blob/30c99c8a7013d012f14c129e8ee212c7c622008a/Tasks/AzureFunctionAppV2/azure-arm-rest/azure-arm-app-service-kudu.ts#L653

This is the call that takes so long for no apparent reason. Is this potentially a bug or what could be the cause?

Task logs

2023-02-06T18:09:38.7269951Z ##[section]Starting: Azure functions app deploy
2023-02-06T18:09:38.7411299Z ==============================================================================
2023-02-06T18:09:38.7411725Z Task         : Azure Functions
2023-02-06T18:09:38.7412152Z Description  : Update a function app with .NET, Python, JavaScript, PowerShell, Java based web applications
2023-02-06T18:09:38.7412537Z Version      : 1.216.1
2023-02-06T18:09:38.7412790Z Author       : Microsoft Corporation
2023-02-06T18:09:38.7413114Z Help         : https://aka.ms/azurefunctiontroubleshooting
2023-02-06T18:09:38.7414623Z ==============================================================================
2023-02-06T18:09:39.6641983Z Got service connection details for Azure App Service:'Function-ScanBlobEvents-Prod'
2023-02-06T18:09:41.4890907Z (node:12608) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
2023-02-06T18:10:43.7300482Z Trying to update App Service Application settings. Data: {"WEBSITE_RUN_FROM_PACKAGE":"1"}
2023-02-06T18:10:43.7301278Z Deleting App Service Application settings. Data: ["WEBSITE_RUN_FROM_ZIP"]
2023-02-06T18:10:43.7302201Z App Service Application settings are already present.
--> 2023-02-06T18:14:17.6081212Z Validating deployment package for functions app before Zip Deploy <-- This call took >13 minutes to complete, deployment itself only 2.5 minutes
2023-02-06T18:19:35.9223566Z Package deployment using ZIP Deploy initiated.
2023-02-06T18:22:09.9532786Z Deploy logs can be viewed at https://function-scanblobevents-prod.scm.azurewebsites.net/api/deployments/dfcf6fc0659649cf81efa707064b3346/log
2023-02-06T18:22:09.9535573Z The web package has been deployed to App Service. Please note that the package mount or extraction errors will be logged in the deployment logs in the location above.
2023-02-06T18:22:09.9537769Z NOTE: Run From Package makes wwwroot read-only, so you will receive an error when writing files to this directory.

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 6
  • Comments: 17 (5 by maintainers)

Most upvoted comments

Reopened as I have plans to help on this.

Any update on this issue? Facing the same issue with an Azure .NET Function App.

Hello, moved this issue to me and I will take a look.

Hi, I will add logging for this.