Skip to content

Commit 160a264

Browse files
Merge pull request #262951 from spelluru/freshnessupdates0110
Event Grid freshness review
2 parents 72e30b2 + 557de81 commit 160a264

File tree

3 files changed

+20
-20
lines changed

3 files changed

+20
-20
lines changed

articles/event-grid/event-schema-blob-storage.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Azure Blob Storage as Event Grid source
33
description: Describes the properties that are provided for blob storage events with Azure Event Grid
44
ms.topic: conceptual
5-
ms.date: 12/02/2022
5+
ms.date: 01/10/2024
66
---
77

88
# Azure Blob Storage as an Event Grid source
@@ -642,7 +642,7 @@ If the blob storage account uses SFTP to create or overwrite a blob, then the da
642642

643643
* The `data.api` key is set to the string `SftpCreate` or `SftpCommit`.
644644

645-
* The `clientRequestId` key is not included.
645+
* The `clientRequestId` key isn't included.
646646

647647
* The `contentType` key is set to `application/octet-stream`.
648648

@@ -689,7 +689,7 @@ If the blob storage account uses SFTP to delete a blob, then the data looks simi
689689

690690
* The `data.api` key is set to the string `SftpRemove`.
691691

692-
* The `clientRequestId` key is not included.
692+
* The `clientRequestId` key isn't included.
693693

694694
* The `contentType` key is set to `application/octet-stream`.
695695

@@ -726,7 +726,7 @@ If the blob storage account uses SFTP to rename a blob, then the data looks simi
726726

727727
* The `data.api` key is set to the string `SftpRename`.
728728

729-
* The `clientRequestId` key is not included.
729+
* The `clientRequestId` key isn't included.
730730

731731
* The `identity` key is included in the data set. This corresponds to the local user used for SFTP authentication.
732732

@@ -761,7 +761,7 @@ If the blob storage account uses SFTP to create a directory, then the data looks
761761

762762
* The `data.api` key is set to the string `SftpMakeDir`.
763763

764-
* The `clientRequestId` key is not included.
764+
* The `clientRequestId` key isn't included.
765765

766766
* The `identity` key is included in the data set. This corresponds to the local user used for SFTP authentication.
767767

@@ -794,7 +794,7 @@ If the blob storage account uses SFTP to rename a directory, then the data looks
794794

795795
* The `data.api` key is set to the string `SftpRename`.
796796

797-
* The `clientRequestId` key is not included.
797+
* The `clientRequestId` key isn't included.
798798

799799
* The `identity` key is included in the data set. This corresponds to the local user used for SFTP authentication.
800800

@@ -828,7 +828,7 @@ If the blob storage account uses SFTP to delete a directory, then the data looks
828828

829829
* The `data.api` key is set to the string `SftpRemoveDir`.
830830

831-
* The `clientRequestId` key is not included.
831+
* The `clientRequestId` key isn't included.
832832

833833
* The `identity` key is included in the data set. This corresponds to the local user used for SFTP authentication.
834834

@@ -866,7 +866,7 @@ If the blob storage account uses SFTP to create or overwrite a blob, then the da
866866

867867
* The `data.api` key is set to the string `SftpCreate` or `SftpCommit`.
868868

869-
* The `clientRequestId` key is not included.
869+
* The `clientRequestId` key isn't included.
870870

871871
* The `contentType` key is set to `application/octet-stream`.
872872

@@ -912,7 +912,7 @@ If the blob storage account uses SFTP to delete a blob, then the data looks simi
912912

913913
* The `data.api` key is set to the string `SftpRemove`.
914914

915-
* The `clientRequestId` key is not included.
915+
* The `clientRequestId` key isn't included.
916916

917917
* The `contentType` key is set to `application/octet-stream`.
918918

@@ -948,7 +948,7 @@ If the blob storage account uses SFTP to rename a blob, then the data looks simi
948948

949949
* The `data.api` key is set to the string `SftpRename`.
950950

951-
* The `clientRequestId` key is not included.
951+
* The `clientRequestId` key isn't included.
952952

953953
* The `identity` key is included in the data set. This corresponds to the local user used for SFTP authentication.
954954

@@ -982,7 +982,7 @@ If the blob storage account uses SFTP to create a directory, then the data looks
982982

983983
* The `data.api` key is set to the string `SftpMakeDir`.
984984

985-
* The `clientRequestId` key is not included.
985+
* The `clientRequestId` key isn't included.
986986

987987
* The `identity` key is included in the data set. This corresponds to the local user used for SFTP authentication.
988988

@@ -1014,7 +1014,7 @@ If the blob storage account uses SFTP to rename a directory, then the data looks
10141014

10151015
* The `data.api` key is set to the string `SftpRename`.
10161016

1017-
* The `clientRequestId` key is not included.
1017+
* The `clientRequestId` key isn't included.
10181018

10191019
* The `identity` key is included in the data set. This corresponds to the local user used for SFTP authentication.
10201020

@@ -1047,7 +1047,7 @@ If the blob storage account uses SFTP to delete a directory, then the data looks
10471047

10481048
* The `data.api` key is set to the string `SftpRemoveDir`.
10491049

1050-
* The `clientRequestId` key is not included.
1050+
* The `clientRequestId` key isn't included.
10511051

10521052
* The `identity` key is included in the data set. This corresponds to the local user used for SFTP authentication.
10531053

@@ -1082,7 +1082,7 @@ These events are triggered when the actions defined by a policy are performed.
10821082

10831083
|Event name |Description|
10841084
|----------|-----------|
1085-
| [Microsoft.Storage.BlobInventoryPolicyCompleted](#microsoftstorageblobinventorypolicycompleted-event) |Triggered when the inventory run completes for a rule that is defined an inventory policy. This event also occurs if the inventory run fails with a user error before it starts to run. For example, an invalid policy, or an error that occurs when a destination container is not present will trigger the event. |
1085+
| [Microsoft.Storage.BlobInventoryPolicyCompleted](#microsoftstorageblobinventorypolicycompleted-event) |Triggered when the inventory run completes for a rule that is defined an inventory policy. This event also occurs if the inventory run fails with a user error before it starts to run. For example, an invalid policy, or an error that occurs when a destination container isn't present will trigger the event. |
10861086
| [Microsoft.Storage.LifecyclePolicyCompleted](#microsoftstoragelifecyclepolicycompleted-event) |Triggered when the actions defined by a lifecycle management policy are performed. |
10871087

10881088
### Example events

articles/event-grid/handler-webhooks.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Webhooks as event handlers for Azure Event Grid events
33
description: Describes how you can use webhooks as event handlers for Azure Event Grid events. Azure Automation runbooks and logic apps are supported as event handlers via webhooks.
44
ms.topic: conceptual
5-
ms.date: 11/17/2022
5+
ms.date: 01/10/2024
66
---
77

88
# Webhooks, Automation runbooks, Logic Apps as event handlers for Azure Event Grid events

articles/event-grid/receive-events.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
22
title: Receive events from Azure Event Grid to an HTTP endpoint
3-
description: Describes how to validate an HTTP endpoint, then receive and deserialize Events from Azure Event Grid
3+
description: Describes how to validate an HTTP endpoint, then receive and deserialize Events from Azure Event Grid.
44
ms.topic: conceptual
5-
ms.date: 11/14/2022
5+
ms.date: 01/10/2024
66
ms.devlang: csharp, javascript
77
ms.custom: devx-track-csharp
88
---
@@ -12,7 +12,7 @@ ms.custom: devx-track-csharp
1212
This article describes how to [validate an HTTP endpoint](webhook-event-delivery.md) to receive events from an Event Subscription and then receive and deserialize events. This article uses an Azure Function for demonstration purposes, however the same concepts apply regardless of where the application is hosted.
1313

1414
> [!NOTE]
15-
> It is recommended that you use an [Event Grid Trigger](../azure-functions/functions-bindings-event-grid.md) when triggering an Azure Function with Event Grid. It provides an easier and quicker integration between Event Grid and Azure Functions. However, please note that Azure Functions' Event Grid trigger does not support the scenario where the hosted code needs to control the HTTP status code returned to Event Grid. Given this limitation, your code running on an Azure Function would not be able to return a 5XX error to initiate an event delivery retry by Event Grid, for example.
15+
> We recommend that you use an [Event Grid Trigger](../azure-functions/functions-bindings-event-grid.md) when triggering an Azure Function with Event Grid. It provides an easier and quicker integration between Event Grid and Azure Functions. However, note that Azure Functions' Event Grid trigger does not support the scenario where the hosted code needs to control the HTTP status code returned to Event Grid. Given this limitation, your code running on an Azure Function would not be able to return a 5XX error to initiate an event delivery retry by Event Grid, for example.
1616
1717
## Prerequisites
1818

@@ -28,7 +28,7 @@ SDKs for other languages are available via the [Publish SDKs](./sdk-overview.md#
2828

2929
The first thing you want to do is handle `Microsoft.EventGrid.SubscriptionValidationEvent` events. Every time someone subscribes to an event, Event Grid sends a validation event to the endpoint with a `validationCode` in the data payload. The endpoint is required to echo this back in the response body to [prove the endpoint is valid and owned by you](webhook-event-delivery.md). If you're using an [Event Grid Trigger](../azure-functions/functions-bindings-event-grid.md) rather than a WebHook triggered Function, endpoint validation is handled for you. If you use a third-party API service (like [Zapier](https://zapier.com/) or [IFTTT](https://ifttt.com/)), you might not be able to programmatically echo the validation code. For those services, you can manually validate the subscription by using a validation URL that is sent in the subscription validation event. Copy that URL in the `validationUrl` property and send a GET request either through a REST client or your web browser.
3030

31-
In C#, the `ParseMany()` method is used to deserialize a `BinaryData` instance containing 1 or more events into an array of `EventGridEvent`. If you knew ahead of time that you are deserializing only a single event, you could use the `Parse` method instead.
31+
In C#, the `ParseMany()` method is used to deserialize a `BinaryData` instance containing one or more events into an array of `EventGridEvent`. If you knew ahead of time that you are deserializing only a single event, you could use the `Parse` method instead.
3232

3333
To programmatically echo the validation code, use the following code.
3434

@@ -257,7 +257,7 @@ You should see the blob URL output in the function log:
257257
2022-11-14T22:40:46.346 [Information] Executed 'Function1' (Succeeded, Id=8429137d-9245-438c-8206-f9e85ef5dd61, Duration=387ms)
258258
```
259259

260-
You can also test by creating a Blob storage account or General Purpose V2 (GPv2) Storage account, [adding an event subscription](../storage/blobs/storage-blob-event-quickstart.md), and setting the endpoint to the function URL:
260+
You can also test by creating a Blob storage account or General Purpose V2 Storage account, [adding an event subscription](../storage/blobs/storage-blob-event-quickstart.md), and setting the endpoint to the function URL:
261261

262262
![Function URL](./media/receive-events/function-url.png)
263263

0 commit comments

Comments
 (0)