title: How to add and execute a binary in Azure Functions?
body: <p>I need to run a linux binary (<code>ffmpeg</code> for the sake of this example) from within an Azure function that runs python/linux.</p>
  
  <p>I haven't found how to package it nor how to execute it.</p>
  
  <p><a href="https://docs.microsoft.com/en-us/azure/azure-functions/functions-reference-python" rel="noreferrer">Some of the python docs on Azure</a> show that there can be a <code>bin/</code> root folder as part of function's package. Putting the file there and then calling <code>subprocess.run()</code> on it fails. It apparently cannot find the executable.</p>
  
  <p>I have tried moving the file to the root directory, or trying to find it with a full path (I've tried <code>/home/site/www</code> and variations of it). Still no luck.</p>
  
  <p>What am I missing?</p>