Skip to content

Default connection to "AzureWebJobsStorage" #43

@jdneo

Description

@jdneo

From @mjiderhamn in microsoft/azure-maven-plugins#269

Plugin name and version

azure-functions-maven-plugin 1.0.0-beta-2

Expected behavior

com.microsoft.azure.functions.annotation.*Trigger.connection has a default value of empty string. Documentation (albeit for C#) says "If you leave connection empty, the Functions runtime uses the default Storage connection string in the app setting that is named AzureWebJobsStorage."

Actual behavior

If connection annotation attribute is not provided, the following error occurs when executing azure-functions:package:

[ERROR] Failed to execute goal com.microsoft.azure:azure-functions-maven-plugin:1.0.0-beta-2:package (package-functions) on project serverless-azure: Storage binding (blob/queue/table) must have non-empty connection. Invalid storage binding found on method: se.jiderhamn.serverless.azure.AzureFunction.transformBlob -> [Help 1]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions