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.
4,858 questions
0 comments No comments
{count} votes

Accepted answer
  1. Pramod Valavala 20,616 Reputation points Microsoft Employee
    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.

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful

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.