Filippo
Filippo

Reputation: 55

Azure Functions - Event Hub Trigger - Beta Version /V2

I'm trying to use the beta version/V.2 (I'm using the Microsoft Graph API) of the Azure Functions creating an Event Hub Trigger for an IoT device. However, I get an error just installing the extensions. "Extensions not Installed - Microsoft.Azure.WebJobs.Extensions.EventHubs".

We were not able to install the runtime extension. To learn more please view https://functionsmeetingroom.scm.azurewebsites.net/api/vfs/data/Functions/extensions/f5728d04-0b6c-4514-a780-43d6faddc4fd.json

Why? Please let me know

Upvotes: 2

Views: 445

Answers (2)

Naren
Naren

Reputation: 887

Extension installation via portal is not very consistent. Your app is can get into a bad state without much effort. To fix it you could follow the steps mentioned here.

https://github.com/Azure/app-service-announcements/issues/94#issuecomment-376647094

Update extensions.csproj with latest version of the nuget package, look up nuget.org for the latest version of extensions

  • Microsoft.NET.Sdk.Functions
  • Microsoft.Azure.WebJobs.Extensions.CosmosDB
  • Microsoft.Azure.WebJobs.Extensions.DurableTask
  • Microsoft.Azure.WebJobs.Extensions.MicrosoftGraph
  • Microsoft.Azure.WebJobs.Extensions.* (Everything Else)

Follow these steps to fix a function app written in the portal:

  • Stop the function app.
  • Access kudu console through Platform Features -> Advanced Tools -> Debug Console (cmd)
  • Navigate to d:\home\site\wwwroot
  • Delete the bin directory
  • Edit extensions.csproj
  • Update with the appropriate versions (see above)
  • Run dotnet build extensions.csproj -o bin --no-incremental --packages D:\home.nuget
  • Start the function app

Upvotes: 0

Preeti Joshi
Preeti Joshi

Reputation: 989

Try adding an explicit entry to your .csproj file.

<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.EventHubs" Version="3.0.0-beta5" />

This worked for me.

Upvotes: 0

Related Questions