Is it possible to add the current value of an "Azure App Configuration Key Value" to the Event Grid Subscription Event?

Ottens, Vincent 1 Reputation point
2021-12-14T10:09:27.697+00:00

Is there a way to add extra data to the Event Grid Subscription Event?
The normal schema looks like this:

[{
  "id": "84e17ea4-66db-4b54-8050-df8f7763f87b",
  "topic": "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testrg/providers/microsoft.appconfiguration/configurationstores/contoso",
  "subject": "https://contoso.azconfig.io/kv/Foo?label=FizzBuzz",
  "data": {
    "key": "Foo",
    "label": "FizzBuzz",
    "etag": "FnUExLaj2moIi4tJX9AXn9sakm0"
    "value": "Foo Value" // This is what I would like to add to the event...
  },
  "eventType": "Microsoft.AppConfiguration.KeyValueModified",
  "eventTime": "2019-05-31T20:05:03Z",
  "dataVersion": "1",
  "metadataVersion": "1"
}]
Azure App Configuration
Azure App Configuration
An Azure service that provides hosted, universal storage for Azure app configurations.
230 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
382 questions
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 70,451 Reputation points
    2021-12-15T08:29:05.883+00:00

    @Ottens, Vincent Currently, you can set custom headers (Custom delivery properties) on the events that are delivered to Webhooks, Azure Service Bus topics and queues, Azure Event Hubs, and Relay Hybrid Connections as mentioned in this document using delivery properties option. But as your requirement is to add the current value of an "Azure App Configuration Key Value" to the Event Grid Subscription then it is not possible. As rkiss mentioned you need to use your custom logic to get those details either using Azure management REST API and adding it before sending them to your destination.

    0 comments No comments

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.