9.4 Azure Function

Support for Azure Function is implemented in the Micronaut Azure subproject.

Simple Functions with Azure Function

You can implement Azure Functions with Micronaut that implement directly the Azure Function Java SDK. See the documentation on Azure Functions for more information.

Using the CLI

To create an Azure Function:

  1. $ mn create-function-app my-app features azure-function

Or with Micronaut Launch

  1. $ curl https://launch.micronaut.io/create/function/example\?features\=azure-function -o example.zip
  2. $ unzip example.zip -d example

HTTP Functions with Azure Function

You can deploy regular Micronaut applications that use @Controller etc. using Micronaut’s support for Azure HTTP Functions. See the documentation on Azure HTTP Functions for more information.

Using the CLI

To create a Azure HTTP Function:

  1. $ mn create-app my-app features azure-function

Or with Micronaut Launch

  1. $ curl https://launch.micronaut.io/example.zip\?features\=azure-function -o example.zip
  2. $ unzip example.zip -d example