azure-eventgrid

How to write a MassTransit Json Deserializer for Azure Services

你离开我真会死。 提交于 2020-02-02 05:32:40
问题 here it is how I am publishing to an object to event grid. I want to be able to use the azure service bus to listen to it. public void Publicar<T>(T model, string operation, string entity) { _nomeEvento = entity + operation; Boolean.TryParse(Configuration["EventGridConfig:Enabled"], out var eventGridIsActive); if (!eventGridIsActive) return; var primaryTopicKey = Configuration["EventGridConfig:AcessKey"]; var primaryTopic = Configuration["EventGridConfig:Endpoint"]; var primaryTopicHostname =

Azure EventGrid Webhook timeout

二次信任 提交于 2020-01-15 09:43:28
问题 Came to know from the documentation that timeout for webhook is 60 secs. If that's the case then are we expecting developers to do asynchronous operations? I mean what if the work that I want to do as part of the webhook takes more than 60 secs? But if we make that operation asynchronous and the work I want do as part of the webhook fails then how do we recover from that situation because we already responded event grid 200 OK. In that case - would we lose the event? 回答1: In the scenario like

Which Azure messaging service to choose to publish with different messages to different subscribers?

你说的曾经没有我的故事 提交于 2020-01-07 08:09:06
问题 From last question about Azure messaging service by publishing one common message to multiply subscribers by using service bus topic . But we've encounter an issue that our message size is over-sized of the service buss limitation(256KB), so we changed our design by splitting the GIANT message into small piece of sub-message and send them to different subscribers , here is what I'd like to achieve: Let's say we are saving an order object in azure function called SaveOrder and after order was

Multiple EventTypes in Azure EventGrid Topic

 ̄綄美尐妖づ 提交于 2019-12-25 04:18:25
问题 What is the best practices around Azure EventGrid topics and Events? Is it a bad idea to publish different event-types to the same Azure EventGrid topic? e.g. multiple different domain events When do we need different topics? A single shared Topic for an entire application? One Topic per Aggregate Root type? One Topic per Event Type? Any suggestions would be welcome as there are no clear answers Part2. What if I want to integrate with various Azure Logic Apps? if multiple logic apps react to

How to consume events delivered by Azure Event Grid to GCP

做~自己de王妃 提交于 2019-12-25 03:30:34
问题 Basically what I understood from few Azure topics is as below: 1) Azure Event Hub - where data is received initially and converted into events 2) Service Bus - acting as a queue 3) Azure Event Grid - where events converted in hub are transferred here. so the connection is like below: Hub -> Service Bus -> Event Grid -> Pub Sub -> Storage I understood this concept. My problem is I want data to be pushed from event grid to GCP (subscription / topics). So how can I establish this using PUSH

How to get a list of existing topics in an Azure EventGrid Domain in C#

試著忘記壹切 提交于 2019-12-24 20:56:48
问题 What is the best way to retrieve a list of topic names that are encapsulated by an Azure EventGrid Domain in C#? It is easy enough to do this with Azure-CLI, but struggling to find examples of this in C#. I've looked at EventGridManagementClient with usage sample here, however, I feel there is too much overhead to try and get this to work, mainly to do with credentials and authentication. 回答1: You can use the REST API call Domain Topics - List By Domain to get the list all the topics in a

Azure Event Grid / Function / ngrok

别等时光非礼了梦想. 提交于 2019-12-24 11:03:07
问题 I'm trying to follow the instructions Local Testing with ngrok I have my event gird running and my function running in VS locally using the C# example. However, when I try to subscribe to my event using the endpoint https://xxxx.ngrok.io/admin/extensions/EventGridExtensionConfig?functionName=EventGridTrigger My local ngrok console shows: POST /admin/extensions/EventGridExtensionConfig 404 Not Found Function code in VS: [FunctionName("EventGridTrigger")] public static void Run(

Can you set metadata on an Azure CloudBlockBlob at the same time as uploading it?

落爺英雄遲暮 提交于 2019-12-24 01:16:24
问题 I have a situation in which I currently upload a CloudBlockBlob using CloudBlockBlob.UploadFromStreamAsync, and then immediately afterward I set a bunch of user metadata on it. The issue is: I have an Event Grid event which is triggered when the blob is uploaded, but the event handler requires the metadata. Long story short, it's a race condition wherein I have to "hope" that the metadata has been set before my event handler responds to the block blob upload. Is there some way to both upload

azure function binding causing multiple events fired

眉间皱痕 提交于 2019-12-13 08:07:32
问题 Why are we getting duplicate events for the same BlobCreated? I'm using the following binding in my function app: [Blob("%Detach:Output%/{file}", Write)] CloudBlockBlob @out, The only time when I am writing to this output binding is here: await @out.UploadTextAsync(xml); I have an event defined like so: Where Detach:Output env variable is xml-output-with-links-container . I am consistently getting 2 events for every execution of this function: The eventTime between the two events are slightly

How to create event grid domain topic subscription using REST API?

99封情书 提交于 2019-12-13 03:37:26
问题 I have created event grid topic inside event grid domain . Now I want to create event subscription for that topic using rest api . I have read docs through this link https://docs.microsoft.com/en-us/rest/api/eventgrid/eventsubscriptions/createorupdate?source=docs#uri-parameters. But I am not able to find url for what I need. I have tried this url. https://management.azure.com/subscriptions/{subscription ID}/resourceGroups/{resourse group name}/providers/Microsoft.EventGrid/domains/{event grid