Skip to main content

Azure Functions Configuration

The azure-functions plugin invokes HTTP-triggered Azure Functions with access-key injection, request forwarding, and sub-path preservation. Configuration covers plugin parameters and plugin metadata.

Parameters​

See plugin common configurations for configuration options available to all plugins.

  • function_uri

    string

    required


    URI of the HTTP-triggered Azure Function. The plugin sends the request to this URI and returns the function response to the client.

    For a wildcard route, the path suffix matched by * is appended to this URI. An endpoint with no path uses /. Pathless endpoint support was introduced in API7 Enterprise 3.9.20 and 3.10.7, and in APISIX 3.19.0.

  • authorization

    object


    Azure Functions access-key headers added to the upstream request.

    These values are used only when the client request contains neither x-functions-key nor x-functions-clientid. If either header is present, the plugin forwards the client headers without injecting configured or metadata credentials.

    • apikey

      string


      Function or host access key added to the x-functions-key header. API7 Gateway encrypts the value with AES at rest. APISIX encrypts it before etcd storage when apisix.data_encryption.enable_encrypt_fields is enabled.

    • clientid

      string


      Access-key name or client ID added to the x-functions-clientid header when selecting a non-default Azure Functions access key.

  • max_req_body_size

    integer

    default: 67108864

    valid value:

    greater than or equal to 1

    Maximum request body size in bytes buffered into memory before the request is sent to the function. A larger body is rejected with 400 Bad Request. Introduced in API7 Enterprise 3.9.17 and 3.10.4, and in APISIX 3.18.0.

  • timeout

    integer

    default: 3000

    valid value:

    greater than or equal to 100

    Function request timeout in milliseconds. A connection or request failure returns 503 Service Unavailable.

  • ssl_verify

    boolean

    default: true


    If true, verify the function endpoint's TLS certificate.

  • keepalive

    boolean

    default: true


    If true, keep connections to the function endpoint alive for reuse.

  • keepalive_timeout

    integer

    default: 60000

    valid value:

    greater than or equal to 1000

    Time in milliseconds that an idle keepalive connection remains open.

  • keepalive_pool

    integer

    default: 5

    valid value:

    greater than or equal to 1

    Maximum number of connections in the keepalive pool.

Plugin Metadata​

  • master_apikey

    string


    Default function or host access key used by plugin instances that omit authorization.

    API7 Gateway encrypts the value with AES at rest. APISIX encrypts it before etcd storage when apisix.data_encryption.enable_encrypt_fields is enabled.

  • master_clientid

    string


    Default access-key name or client ID used by plugin instances that omit authorization.