Skip to content

Handling Functions Runtime Environment env var when set by user #4535

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

Closed
wants to merge 5 commits into from

Conversation

brandonh-msft
Copy link
Member

with accompanying test
Fixes #2465

Issue describing the changes in this PR

resolves #2465

Pull request checklist

  • My changes do not require documentation changes
    • Otherwise: Documentation issue linked to PR
  • My changes do not need to be backported to a previous version
    • Otherwise: Backport tracked by issue/PR #issue_or_pr
  • My changes should not be added to the release notes for the next release
    • Otherwise: I've added my notes to release_notes.md
  • I have added all required tests (Unit tests, E2E tests)

@brandonh-msft brandonh-msft requested a review from a team as a code owner July 16, 2025 16:26
@liliankasem
Copy link
Member

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@@ -300,7 +300,7 @@ private async Task<IDictionary<string, string>> GetConfigurationSettings(string

// when running locally in CLI we want the host to run in debug mode
// which optimizes host responsiveness
settings.Add("AZURE_FUNCTIONS_ENVIRONMENT", "Development");
settings.TryAdd("AZURE_FUNCTIONS_ENVIRONMENT", "Development");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are a lot of side effects if we allow for this to be overridden. The WebJobs SDK and host behaviors for polling intervals, logging, and other things will change, and this could significantly impact the local debugging experience in surprising ways.

@liliankasem
Copy link
Member

Closing in favor of #4563

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

Successfully merging this pull request may close these issues.

An item with the same key has already been added. Key: AZURE_FUNCTIONS_ENVIRONMENT
3 participants