Azure-Functions
Azure-Functions copied to clipboard
Pipelines Fail Deploying Dotnet Isolated Linux Function App (Consumption)
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
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.
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