Invoke an Azure function

Set up the plugin to invoke an Azure function located in a custom domain.

Prerequisites

  • You have an Azure account with access to Azure Functions.

  • You have created a function.

Environment variables

  • AZURE_FUNCTION_NAME: The name of the Azure function to invoke.

  • AZURE_API_KEY: Your Azure API key.

  • AZURE_APP_NAME: The name of your Azure app.

Set up the plugin

Add this section to your declarative configuration file:

_format_version: "3.0"
plugins:
  - name: azure-functions
    config:
      functionname: ${{ env "DECK_AZURE_FUNCTION_NAME" }}
      appname: ${{ env "DECK_AZURE_APP_NAME" }}
      hostdomain: azurewebsites.net
      apikey: ${{ env "DECK_AZURE_API_KEY" }}
Copied to clipboard!

Did this doc help?

Something wrong?

Help us make these docs great!

Kong Developer docs are open source. If you find these useful and want to make them better, contribute today!