Functions Basics

Note

This is a Sandbox project. The content in this article is unsupported, and therefore may be out of date or not in a working state. That said, we still think it was awesome enough to include here. Enjoy!

Host.json configuration

Configuring timeout Change the function execution timeout
Configuring queues Customize queue trigger properties such as batch size and polling interval

Environment

Accessing environment variables Store and use custom settings

HTTP routing

Controlling the route prefix with host.json Change the route prefix
Define the function route with function properties Customize the route of a single HTTP trigger function in code
Define the function route in the Azure portal Customize the route of a single HTTP trigger function in the Azure portal
Adding parameters to function routes Define and access parameters in a route
Making route parameters optional Use optional route parameters

Functions Proxies

Using proxies.json Create and edit proxies.json
Creating an HTTP Redirect Use custom HTTP response codes to redirect requests
Creating a mock API Create a mock API without a backend
Returning conditional responses based on backend response codes Return different responses based on back-end response codes
Referencing application settings Use environment variables in Proxies

Logging and monitoring

Logging with ILogger Use ILogger instead of TraceWriter for logging
Basic logging with TraceWriter Basic TraceWriter usage
Logging with a third-party logger Use third-party loggers