Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build target emits warning for Blob/Queue trigger when connection is in user secrets file #1455

Open
phenning opened this issue Sep 21, 2023 · 0 comments

Comments

@phenning
Copy link

Opening this here since it impacts template creation scenario. The problem is likely in the the Blob/Queue triggers themselves though since problem does not occur with CosmosDB trigger.

Repro Steps:

  1. Create a NET 6.0 (LTS) project in Visual Studio, I re-proed this with non-isolated.
  2. Select Blob Trigger (also repros with Queue trigger) and Configure Dependencies:
    image
  3. Select Storage Azurite emulator
  4. Next, select "Store in local secrets file"
  5. Finish connected services.

Build: observe following error:

1>+++++\.nuget\packages\microsoft.net.sdk.functions\4.2.0\build\Microsoft.NET.Sdk.Functions.Build.targets(32,5): warning : Function [Function1]: cannot find value named 'BlobConnectionString' in local.settings.json that matches 'connection' property set on 'blobTrigger'
1>+++++\.nuget\packages\microsoft.net.sdk.functions\4.2.0\build\Microsoft.NET.Sdk.Functions.Build.targets(32,5): warning :
1>Done building project "FunctionApp32.csproj".

Project runs without a problem, and user secrets file contains:
{
"BlobConnectionString": "UseDevelopmentStorage=true",
"BlobConnectionString:queue": "UseDevelopmentStorage=true",
"BlobConnectionString:blob": "UseDevelopmentStorage=true"
}

local.Settings.json contains:
{
"IsEncrypted": false,
"Values": {
"AzureWebJobsStorage": "UseDevelopmentStorage=true",
"FUNCTIONS_WORKER_RUNTIME": "dotnet"
}
}

If I copy the BlobConnectionString into the local.Settings.json file, the warning goes away.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant