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

Missing APPLICATIONINSIGHTS_CONNECTION_STRING causes cryptic error during startup #10697

Open
sylvaingirardbe opened this issue Dec 13, 2024 · 0 comments

Comments

@sylvaingirardbe
Copy link

Provide the steps required to reproduce the problem:

Create a function or logic app and try to run it in on 4.x runtime/host in a container where there's no APPLICATIONINSIGHTS_CONNECTION_STRING configured.

Expected behavior

The container does not start indicating that there's config (APPLICATIONINSIGHTS_CONNECTION_STRING) missing.

Actual behavior

Container doesn't start with this exception:
System.InvalidOperationException: Unable to resolve service for type 'Microsoft.ApplicationInsights.TelemetryClient' while attempting to activate 'Microsoft.Azure.Workflows.WebJobs.Extensions.Configuration.FlowFunctionConfiguration'.

Known workarounds

Add APPLICATIONINSIGHTS_CONNECTION_STRING to the config.

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

No branches or pull requests

1 participant