Azure-Functions icon indicating copy to clipboard operation
Azure-Functions copied to clipboard

Pipelines Fail Deploying Dotnet Isolated Linux Function App (Consumption)

Open Jordan-Murray opened this issue 2 years ago • 7 comments

Hi there.

Issue - Intermitant Deploying of Donet Isolated Linux Function App (Consumption)

We're trying to use Azure Pipelines to publish and deploy a Function App to Azure.

  • .NET 6 - Isolated
  • Linux
  • Consumption

Our YAML pipeline is correct as it's worked in many other cases. The error we get can be seen in the screenshot below PipelineFail

Occasionally the pipeline would succeed, without changing anything, however, the functions would not actually be loaded if you looked in the Function App in the Azure Portal nor callable via Postman.

Publishing via Visual Studio would also intermittently work, sometimes succeeding, sometimes failing because of a ZipDeploy error. However, when the VS publishing occasionally worked, it would deploy and publish correctly, with all functions showing up in Azure and targetable. StackTrace

The only workaround we've found is to use a Windows function app instead of Linux.

Function App Configuration

SCM_DO_BUILD_DURING_DEPLOYMENT - 0 FUNCTIONS_WORKER_RUNTIME - dotnet-isolated

Jordan-Murray avatar Jan 12 '23 14:01 Jordan-Murray