Skip to content

sidmore/functions-custom-handlers

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Functions custom handlers (preview)

Every Functions app is executed by a language-specific handler. While Azure Functions supports many language handlers by default, there are cases where you may want additional control over the app execution environment. Custom handlers give you this additional control.

Custom handlers are lightweight web servers that receive events from the Functions host. Any language that supports HTTP primitives can implement a custom handler.

Custom handlers are best suited for situations where you want to:

  • Implement a Functions app in a language beyond the officially supported languages
  • Implement a Functions app in a language version or runtime not supported by default
  • Have granular control over the app execution environment

With custom handlers, all triggers and input and output bindings are supported via extension bundles.

Read more about custom handlers in detail.

Samples

The following samples demonstrate how to implement a custom handler in the following languages:

Docker

Following is an example dockerfile using azure functions node base image

# To enable ssh & remote debugging on app service change the base image to the one below
# FROM mcr.microsoft.com/azure-functions/node:2.0-appservice
FROM mcr.microsoft.com/azure-functions/node:2.0

ENV AzureWebJobsScriptRoot=/home/site/wwwroot \
    AzureFunctionsJobHost__Logging__Console__IsEnabled=true

COPY . /home/site/wwwroot

RUN cd /home/site/wwwroot

Copy any of the samples to the directory where you have dockerfile and build an image

About

Sample code for Azure Functions custom handlers

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 68.7%
  • R 17.3%
  • Rust 14.0%