Azure / Azure/azure-functions-java-library

Default connection to "AzureWebJobsStorage"

Offen
#43 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen
area:java-functions
Vorherrschende Sprache
Java
Sterne
45
Forks
49
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung

_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]
```

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Rechercherichtung

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.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
azure, java
Bereich
backend
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
35/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.