diff --git a/src/content/docs/serverless-function-monitoring/azure-function-monitoring/env-variables-azure.mdx b/src/content/docs/serverless-function-monitoring/azure-function-monitoring/env-variables-azure.mdx index 1bf8edf6570..498255ec2a7 100644 --- a/src/content/docs/serverless-function-monitoring/azure-function-monitoring/env-variables-azure.mdx +++ b/src/content/docs/serverless-function-monitoring/azure-function-monitoring/env-variables-azure.mdx @@ -3,7 +3,7 @@ title: Environment variables for Azure function monitoring metaDescription: "Configure environment variables to monitor your Azure functions with New Relic" freshnessValidatedDate: never tags: - - AWS Lambda + - Azure Functions - Environment Variables - Configuration - Secrets Management @@ -33,7 +33,7 @@ Environment variables are a way to store configuration and secrets outside of yo **Required**. Set this to enable the .NET agent. - `CORECLR_NEWRELIC_HOME` + `CORECLR_NEW_RELIC_HOME` **Required**. Set this to enable the .NET agent. @@ -44,25 +44,12 @@ Environment variables are a way to store configuration and secrets outside of yo **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` + `0` `1`, `0` - Disable Azure Functions mode by setting the value to `0`. + Enable Azure Functions mode by setting the value to `1`. `NEW_RELIC_LOG_DIRECTORY` diff --git a/src/content/docs/serverless-function-monitoring/azure-function-monitoring/install-serverless-azure-monitoring.mdx b/src/content/docs/serverless-function-monitoring/azure-function-monitoring/install-serverless-azure-monitoring.mdx index 5ef6eef32f3..19564af5971 100644 --- a/src/content/docs/serverless-function-monitoring/azure-function-monitoring/install-serverless-azure-monitoring.mdx +++ b/src/content/docs/serverless-function-monitoring/azure-function-monitoring/install-serverless-azure-monitoring.mdx @@ -43,12 +43,16 @@ Based on your requirement, select one of the following options to instrument you - Navigate to Kudu service page and do the following: + The New Relic Azure Websites Extension (v1.6.0 and later) automatically configures instrumentation for your Windows Azure Function. + + To install the New Relic Azure Websites Extension, follow these steps: 1. In the Azure portal, navigate to your function app. - 2. Click the **Development tools** section, and select **Advanced Tools > Go**. - 3. To view the available site extensions, click the **Site extensions** tab. - 4. To install the extension, search for `New Relic .NET Agent` and, click **+**. + 2. Click the **Development tools** section, and select **Extensions**. + 3. Click **+ Add**. + 4. Select **Search for an extension to install** and enter `New Relic .NET Agent` in the **Filter items** box. + 5. Select the **New Relic .NET Agent(vx.x.x) - New Relic** extension and click **Add**. + 6. When installation is complete, the extension will appear in the list of installed extensions. To verify correct installation, click the link under the "Browse" column to view the installation log. @@ -108,7 +112,7 @@ Ensure that you add a comma at the end of the last existing line and update your "slotSetting": false }, { - "name": "CORECLR_NEWRELIC_HOME", + "name": "CORECLR_NEW_RELIC_HOME", "value": "/home/site/wwwroot/newrelic", "slotSetting": false }, @@ -128,20 +132,15 @@ Ensure that you add a comma at the end of the last existing line and update your "slotSetting": false }, { - "name": "NEW_RELIC_LICENSE_KEY", - "value": "YOUR_NEW_RELIC_LICENSE_KEY", - "slotSetting": false - }, - { - "name": "NEWRELIC_LOG_DIRECTORY", + "name": "NEW_RELIC_LOG_DIRECTORY", "value": "/home/LogFiles/NewRelic", "slotSetting": false }, { - "name": "NEWRELIC_LOG_LEVEL", - "value": "info", + "name": "NEW_RELIC_LICENSE_KEY", + "value": "", "slotSetting": false - }, + } ``` @@ -149,51 +148,21 @@ Ensure that you add a comma at the end of the last existing line and update your ```json - { - "name": "CORECLR_PROFILER_PATH", - "value": "C:\\home\\NewRelicAgent\\Core\\NewRelic.Profiler.dll", - "slotSetting": false - }, - { - "name": "CORECLR_NEWRELIC_HOME", - "value": "C:\\home\\NewRelicAgent\\Core", - "slotSetting": false - }, - { - "name": "NEWRELIC_LOG_DIRECTORY", - "value": "C:\\home\\LogFiles\\NewRelic", - "slotSetting": false - }, - { - "name": "NEW_RELIC_AZURE_FUNCTION_MODE_ENABLED", - "value": "1", - "slotSetting": false -}, -{ - "name": "CORECLR_ENABLE_PROFILING", - "value": "1", - "slotSetting": false - }, - { - "name": "CORECLR_PROFILER", - "value": "{36032161-FFC0-4B61-B559-F6C5D41BAE5A}", - "slotSetting": false - }, { "name": "NEW_RELIC_LICENSE_KEY", "value": "YOUR_NEW_RELIC_LICENSE_KEY", "slotSetting": false - }, + } + ``` + + Optionally, you can specify the version of the .NET agent you want to install by adding the following environment variable: + + ```json { - "name": "NEWRELIC_LOG_LEVEL", - "value": "info", + "name": "NEW_RELIC_AGENT_VERSION_OVERRIDE", + "value": "10.35.0", "slotSetting": false - }, - { - "name": "NEW_RELIC_APP_NAME", - "value": "YOUR_APP_NAME", - "slotSetting": false - }, + } ``` @@ -206,7 +175,7 @@ Ensure that you add a comma at the end of the last existing line and update your "slotSetting": false }, { - "name": "CORECLR_NEWRELIC_HOME", + "name": "CORECLR_NEW_RELIC_HOME", "value": "/usr/local/newrelic-dotnet-agent", "slotSetting": false }, @@ -226,20 +195,17 @@ Ensure that you add a comma at the end of the last existing line and update your "slotSetting": false }, { - "name": "NEW_RELIC_LICENSE_KEY", - "value": "YOUR_NEW_RELIC_LICENSE_KEY", - "slotSetting": false - }, - { - "name": "NEWRELIC_LOG_DIRECTORY", + "name": "NEW_RELIC_LOG_DIRECTORY", "value": "/home/LogFiles/NewRelic", "slotSetting": false }, { - "name": "NEWRELIC_LOG_LEVEL", - "value": "info", + "name": "NEW_RELIC_LICENSE_KEY", + "value": "", "slotSetting": false - }, + } + + ```