Property name is not allowed by the schema Error

Adwait Naik 40 Reputation points
2024-04-23T13:33:02.0166667+00:00

Hi there,

This is my Azure function's host.json file

{ "version": "2.0", "logging": { "applicationInsights": { "samplingSettings": { "isEnabled": true, "excludedTypes": "Request" }, "enableLiveMetricsFilters": true } } }

Visual Studio shows warnings (as shows below)schema error This doesn't allow me to run my functions app when I deploy it on azure. How do I fix this issue?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
4,297 questions
0 comments No comments
{count} votes

Accepted answer
  1. Dillon Silzer 54,646 Reputation points
    2024-04-23T16:59:16.5933333+00:00

    Hi Adwait,

    It seems like your JSON schema is correct but one of the variables/elements may be wrong:

    {
      "version": "2.0",
      "logging": {
        "applicationInsights": {
          "samplingSettings": {
            "isEnabled": true,
            "excludedTypes": "Request"
          },
          "enableLiveMetricsFilters": true
        }
      }
    }
    
    

    I'd recommend using Visual Studio Code with Azure Functions extensions or the Azure portal's built-in validation to check for any syntax errors.

    If this is helpful please accept answer.

    0 comments No comments

0 additional answers

Sort by: Most helpful