Azure / Azure/Azure-Functions

Pipelines Fail Deploying Dotnet Isolated Linux Function App (Consumption)

Open
#2,326 7 comments 1 reaction 1 assignee Claimed by @bhagyshricompany View on GitHub
bug Needs: Triage (functions)
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

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](https://user-images.githubusercontent.com/43959876/212096143-07d67afa-6306-4260-bb97-20849f945363.png)

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](https://user-images.githubusercontent.com/43959876/212097035-172ce29c-da44-41f5-9b93-059fb0e5d974.png)

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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.