property "type" is not allowed in host.json

Gerald Rupp 130 Reputation points
2023-09-21T14:49:32.6333333+00:00

Hallo everybody,
I want to create a blob trigger azure function and I have an error which I hope you can help me. After creating a blob trigger function I got this host.json file:

{
  "version": "2.0",
  "logging": {
    "applicationInsights": {
      "samplingSettings": {
        "isEnabled": true,
        "excludedTypes": "Request"
      }
    }
  },
  "extensionBundle": {
    "id": "Microsoft.Azure.Functions.ExtensionBundle",
    "version": "[3.*, 4.0.0)"
  },
  "concurrency": {
    "dynamicConcurrencyEnabled": true,
    "snapshotPersistenceEnabled": true
  },
  "extensions": {
    "durableTask": {
      "storageProvider": {
        "type": "AzureStorage"
      }
    }
  }
}


Now, I got the error "Property type is not allowed: Unfortunatelly I am not able to find something useful in the internet so I am hoping that you can help me.

With kind regards,
Gerald

User's image

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

Accepted answer
  1. Pramod Valavala 20,656 Reputation points Microsoft Employee Moderator
    2023-09-21T16:23:09.79+00:00

    @Gerald Rupp Looks like the type property is not defined in the schema for host.json, but this error itself should not cause any issues when running Azure Functions.

    We will work on getting this updated to fix the experience from the editor perspective.

    3 people found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Duy Nguyen 0 Reputation points
    2024-12-20T14:55:31.5666667+00:00

    @Pramod Valavala , I'm still seeing the same issue. I guess this has not been resolved yet.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.