Azure / Azure/azure-functions-java-library

Default connection to "AzureWebJobsStorage"

Open
#43 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area:java-functions
Dominant language
Java
Stars
45
Forks
49
PR merge metrics
No merged PRs in 30d

Description

From @mjiderhamn in https://github.com/Microsoft/azure-maven-plugins/issues/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]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the com.microsoft.azure.functions.annotation.*Trigger connection attributes and the azure-functions-maven-plugin package goal named in the report. Trace where an omitted connection is rejected and check whether that validation belongs in this library or the plugin. Done means a trigger without connection uses AzureWebJobsStorage and the relevant packaging test succeeds.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, java
Domain
backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.