Azure / Azure/azure-functions-host

How can I use Azure App Configuration for QueueTrigger bindings

Open
#9,568 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
C#
Stars
2k
Forks
482
Avg merge
2d 12h
Merged PRs (30d)
38

Description

# Issue Transfer

This issue has been transferred from the Azure SDK for .NET repository, [#38965](https://github.com/Azure/azure-sdk-for-net/issues/38965).

### Please be aware that @gpuchtel is the author of the original issue and include them for any questions or replies.

## Details

### Library name and version

Microsoft.Azure.Functions.Worker 1.19.0

### Query/Question

I've been searching for a way to use Azure 'App Configuration' to store the connection string of an Azure Storage Queue. After hours searching on the Web I'm even more confused--there seems to be conflicting opinions on how to do this. Maybe even using Managed Identity, but that makes debugging locally a nightmare.

What I want is something like this:

[Function("foo")
public void foo([QueueTrigger("bar", Connection = "FooConnection")] QueueMessage message)

Where "FooConnection" is the name of a 'key' in an Azure App Configuration from which the connection string is specified. adly, it seems that Azure only looks in the 'Configuration' of the function (or local settings if running locally).

So, is this even possible?

Note: I do 'AddAzureAppConfiguration(..) in my HostBuilder.

Thanks in advance,

I've tried to surround the name with '%' like "%FooConnection%", but I get an error saying the expression did not evaluate to a value.

I've seen posts that speak so an expression pattern, but there is not much guidance on it.

see: https://stackoverflow.com/q/77180419/8307483

### Environment

_No response_

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the QueueTrigger configuration with Microsoft.Azure.Functions.Worker 1.19.0 and a HostBuilder using AddAzureAppConfiguration. Trace how the host resolves the FooConnection setting for QueueTrigger bindings, then confirm whether Azure App Configuration values are supported and document the working configuration or limitation.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.