Azure / Azure/Azure-Functions

Execution of Linux binaries on a Flex Consumption Plan

Open
#2,643 0 comments 0 reactions 0 assignees View on GitHub
Needs: Triage (functions)
Dominant language
PowerShell
Stars
1.1k
Forks
215
Avg merge
4h 2m
Merged PRs (30d)
1

Description

#### Is your question related to a specific version? If so, please specify:
Flex Consumption Plan

#### What language does your question apply to? (e.g. C#, JavaScript, Java, All)
.NET 8/C#

#### Question
Short question: Does Flex Consumption allow execution of arbitrary ELF64 executables via execve? If not, is this a documented limitation or a bug?

Longer question: Need confirmation whether executing native Linux binaries such as ffprobe/ffmpeg is supported in Flex Consumption. By default the main execution stack is read-only, so the binaries need to be moved "outside" to support a writeable working directory. I am able to do this and it does allow execution, however they immediately segfault. The same binaries work locally in a Linux container. No console access on Flex makes it impossible to debug. Requesting engineering confirmation whether this is supported by design.

This works if I use Windows binaries in a Windows Consumption Plan.

This is a huge gap between the Flex and "Legacy" Windows Consumption Plan. I would like to move to all Flex plans, but this is a significant limitation.

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.