Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eventGrid output binding for js #48921

Open
tymoor opened this issue Feb 25, 2020 — with docs.microsoft.com · 4 comments
Open

eventGrid output binding for js #48921

tymoor opened this issue Feb 25, 2020 — with docs.microsoft.com · 4 comments

Comments

Copy link

tymoor commented Feb 25, 2020

Is this output binding for javascript already available? It does not appear as an option in the portal's function designer, and when I code it manually I get an error stating: 'Error: The binding type(s) 'eventGrid' are not registered.' ... it also doesn't appear in the extensions listed here: https://github.com/Azure/azure-functions-extension-bundles/blob/master/src/Microsoft.Azure.Functions.ExtensionBundle/extensions.json


Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@DixitArora-MSFT
Copy link
Contributor

Hi @tymoor Thanks for reaching out. We will review and update as appropriate.

@DixitArora-MSFT
Copy link
Contributor

@tymoor I have assigned this to content author for further review and update as appropriate.

@kratoch-dig-it-ally
Copy link

I am also facing the problem with usage of Event Grid as output binding in Azure Function. According to information in document https://docs.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings is should be Event Grid supported as output binding in Azure Functions. But when I try to create output binding then I see only following options: Azure Queue Storage, Azure Blob Storage, HTTP, Azure Service Bus, Azure Table Storage, Azure Event Hubs, SendGrid, Twilio SMS, Azure Cosmos DB and Signal IR. Event Grid isn’t offered. In the document https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-grid-output?tabs=javascript I found Event Grid output binding example and according to this example I added Event Grid output binding into my function.json file:

{
  "bindings": [
    {
      "authLevel": "function",
      "type": "httpTrigger",
      "direction": "in",
      "name": "req",
      "methods": [
        "post"
      ]
    },
    {
      "type": "eventGrid",
      "name": "outputEvent",
      "topicEndpointUri": "https://xxxxx.westeurope-1.eventgrid.azure.net/api/events",
      "topicKeySetting": "xxxxxKey",
      "direction": "out"
    },
    {
      "type": "http",
      "direction": "out",
      "name": "res"
    }
  ]
}

(I don’t want provide real Topic Endpoint Uri and Topic Key and therefore I replaced here beginning of real Uri by xxxxx and real Key by xxxxxKey)
I developed Azure Function. When I am testing the function I receive error “Microsoft.Azure.WebJobs.Host: Unable to resolve the value for property 'EventGridAttribute.TopicEndpointUri'. Make sure the setting exists and has a valid value.” I can't find information how to fix it anywhere and also I can't find another examples of usage of Event Grid output binding in Azure Function.

@acomley
Copy link

acomley commented May 14, 2020

@kratoch-dig-it-ally
TopicEndpointUri should be the App Setting that contains the uri, not the uri itself.

The metadata was added to the 2.X branch recently.
Azure/azure-functions-extension-bundles#10

I get the following error locally and when deployed:
The 'XXXXXX' function is in error: The binding type(s) 'eventGrid' are not registered. Please ensure the type is correct and the binding extension is installed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants