Azure / Azure/azure-functions-host

Proper way to access ILogger and IConfiguration inside Startup

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

Description

#### Is your question related to a specific version? If so, please specify:
v2 (latest)

#### What language does your question apply to? (e.g. C#, JavaScript, Java, All)
C#

#### Question
What is the proper way to get access to IConfiguration and ILogger inside a custom startup class?

Contributor guide

Open the contributing guide

Research direction

Start by reading the issue question and its 54-comment discussion about accessing IConfiguration and ILogger inside a custom startup class for Azure Functions v2. Done means the thread has a clear, documented answer that explains the supported approach and relevant version or language constraints.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, csharp
Domain
backend, cloud
Issue type
Documentation
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.