Search code examples
azureazure-web-app-service

What are WEBSITE_DAAS_STORAGE_CONNECTIONSTRING and WEBSITE_NODE_DEFAULT_VERSION


In my Azure web app, in the Environment variables it has a value for WEBSITE_DAAS_STORAGE_CONNECTIONSTRING and WEBSITE_NODE_DEFAULT_VERSION. I didn't create these.

What do these do and do I need to every change them?


Solution

  • WEBSITE_NODE_DEFAULT_VERSION setting will be created by default for the Azure App Services created in Windows Environment.

    • And I have checked that it is available for both .NET 7 and 8 Versions.

    • It will be set for apps deployed from Visual studio only.

    enter image description here

    • If the app is created from portal, it has different settings.

    enter image description here

    • You can see the Linux App service does not have this setting.

    enter image description here

    As mentioned in the MSDoc, it specifies the npm version of the App Service.

    Default npm version the app is using.

    WEBSITE_DAAS_STORAGE_CONNECTIONSTRING, As per the MSDoc this option is for Crash Monitoring.

    • In Diagnose and solve problems => Diagnostic Tools => Crash Monitoring , I have configured the Storage Account.

    enter image description here

    • WEBSITE_DAAS_STORAGE_CONNECTIONSTRING with the configured Storage Account is added in my settings.

    enter image description here

    • I have removed WEBSITE_NODE_DEFAULT_VERSION and I am able to run the app without any issue.
    • You can safely remove WEBSITE_DAAS_STORAGE_CONNECTIONSTRING setting to stop the Crash Monitoring.