• /
  • EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Environment variables for Azure function monitoring

Environment variables are a way to store configuration and secrets outside of your code. The following tables display the mandatory variables and runtime specific variables that you can set to monitor your Azure functions with New Relic.

Environment variable

Default value

Options

Description

CORECLR_ENABLE_PROFILING

0

0, 1

Required. Enable profiling by setting this to 1.

CORECLR_PROFILER

Required. Set this to enable the .NET agent.

CORECLR_NEWRELIC_HOME

Required. Set this to enable the .NET agent.

CORECLR_PROFILER_PATH

Required. Set this to enable the .NET agent.

NEW_RELIC_DISTRIBUTED_TRACING_ENABLED

true

true, false

Generate traces by enabling distributed tracing.

NEW_RELIC_APP_NAME

Set the application name, though it is not used in the New Relic UI.

NEW_RELIC_AZURE_FUNCTION_MODE_ENABLED

1

1, 0

Disable Azure Functions mode by setting the value to 0.

NEW_RELIC_LOG_DIRECTORY

Modify the location where you want to stroe the agent and profiler logs.

NEW_RELIC_LOG_LEVEL

info

info, debug, finest

Set the agent log level.

What's next

Install and configure Azure Functions monitoring

Get started with instrumentation and configuration for your Azure Functions

Copyright © 2025 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.