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

func start commands fails to find the functions when app settings are in user secrets #3644

Open
khkh-ms opened this issue Apr 16, 2024 · 0 comments

Comments

@khkh-ms
Copy link
Contributor

khkh-ms commented Apr 16, 2024

How to reproduce:

Create a function app locally.

func init . --worker-runtime dotnet-isolated
func new --template "Http trigger" --name http1
func new --template "Queue trigger" --name queue1

Update local.settings.json file by leaving the Values object as empty.

{ "IsEncrypted": false, "Values": { } }

Add user secrets.

cmd /C dotnet user-secrets init
cmd /C dotnet user-secrets set "AzureWebJobsStorage" "UseDevelopmentStorage=true"
cmd /C dotnet user-secrets set "FUNCTIONS_WORKER_RUNTIME" "dotnet-isolated"
cmd /C dotnet user-secrets set "ConnectionStrings:MyQueueConn" "[connection]"

Run the function app.

func start --functions http1 --csharp

Expected:

Http Trigger function found by the host.

Actual:

No function was found by the host.

Failing Test

public async Task start_with_user_secrets(string language)

More Details:

https://teams.microsoft.com/l/message/19:31b5bfff020c4eaea9e6631271688220@thread.tacv2/1709701060209?tenantId=72f988bf-86f1-41af-91ab-2d7cd011db47&groupId=201c2bb2-812d-4986-ac92-9bfad0d6cc59&parentMessageId=1709701060209&teamName=Azure%20Functions%20Team&channelName=AZ%20CLI%20and%20Core%20Tools%20-%20All%20SKUs&createdTime=1709701060209

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