GithubHelp home page GithubHelp logo

The binding type(s) 'eventGridTrigger' are not registered. Please ensure the type is correct and the binding extension is installed. about azure-functions-eventgrid-extension HOT 9 CLOSED

KasperHoldum avatar KasperHoldum commented on June 16, 2024 6
The binding type(s) 'eventGridTrigger' are not registered. Please ensure the type is correct and the binding extension is installed.

from azure-functions-eventgrid-extension.

Comments (9)

Qba91 avatar Qba91 commented on June 16, 2024 4

I had such a problem:
The binding type(s) 'eventHubTrigger' are not registered. Please ensure the type is correct and the binding extension is installed.
My enviroment:
Azure Functions Core Tools (2.7.1158 ...)
Function Runtime Version: 2.0.12438.0

solution:
In root project path add host.json file:

{
    "version": "2.0",
    "extensionBundle": {
        "id": "Microsoft.Azure.Functions.ExtensionBundle",
        "version": "[1.*, 2.0.0)"
    }
}

this is needed to run function version 2.x C # script, JavaScript, F #, Java and Python

My extensions.csproj file:

<Project Sdk="Microsoft.NET.Sdk">
  <PropertyGroup>
    <TargetFramework>netstandard2.0</TargetFramework>
	<WarningsAsErrors></WarningsAsErrors>
	<DefaultItemExcludes>**</DefaultItemExcludes>
  </PropertyGroup>
  <ItemGroup>
    <PackageReference Include="Microsoft.Azure.WebJobs.Extensions.EventHubs" Version="3.0.0-beta5" />
    <PackageReference Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator" Version="1.0.0-beta2" />
  </ItemGroup>
</Project>

My function.json file in function folder (with index.js):

{
  "bindings": [
    {
      "type": "eventHubTrigger",
      "name": "eventHubMessage",
      "direction": "in",
      "eventHubName": "eventsomehub",
      "path": "eventsomehub",
      "connection": "eventsHub",
      "cardinality": "one",
      "consumerGroup": "hub"
    }
  ],
  "disabled": false
}

from azure-functions-eventgrid-extension.

vullnetyy avatar vullnetyy commented on June 16, 2024 2

Adding

    "extensionBundle": {
        "id": "Microsoft.Azure.Functions.ExtensionBundle",
        "version": "[1.*, 2.0.0)"
    }

to my host.json file as @Qba91 described solved the issue for me.

from azure-functions-eventgrid-extension.

lonpalmer avatar lonpalmer commented on June 16, 2024 1

Same problem for me using EventGridTrigger on v2 function using the Java runtime.

from azure-functions-eventgrid-extension.

rohitrathour avatar rohitrathour commented on June 16, 2024

Check Platform and HTTP version in General Setting of Function App on Azure. It should be 64 Bit and 2.0.

from azure-functions-eventgrid-extension.

KasperHoldum avatar KasperHoldum commented on June 16, 2024

This is running locally and not on Azure.

from azure-functions-eventgrid-extension.

thomasjedstrom avatar thomasjedstrom commented on June 16, 2024

Just ran into this as well. Created function app in VS using the EventGridTrigger template:
Microsoft.Net.SDK.Functions 1.0.21
Microsoft.Azure.WebJobs.Extensions.EventGrid (any 2.* version, 1.* breaks the build in other ways)
NetStandardLibrary 2.0.3

from azure-functions-eventgrid-extension.

jeeteshm avatar jeeteshm commented on June 16, 2024

Using the following package reference in the .csproj file solved this issue for me:

<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.EventGrid" Version="2.0.0" />

from azure-functions-eventgrid-extension.

emchFr avatar emchFr commented on June 16, 2024

I had the same problem. I just updated Microsoft.Azure.Webjobs.Extensions.EventHubs and Microsoft.NET.sdk.Functions in Nuget and now the function runs perfectly in debug mode.

from azure-functions-eventgrid-extension.

alrod avatar alrod commented on June 16, 2024

Closing as resolved.

from azure-functions-eventgrid-extension.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.