充当事件网格源的 Azure Blob 存储Azure Blob Storage as an Event Grid source

本文提供 Blob 存储事件的属性和架构。This article provides the properties and schema for blob storage events. 有关事件架构的简介,请参阅 Azure 事件网格事件架构 For an introduction to event schemas, see Azure Event Grid event schema. 它还提供了一个快速入门和教程的列表,这些快速入门和教程介绍如何使用 Azure Blob 存储作为事件源。It also gives you a list of quick starts and tutorials to use Azure Blob Storage as an event source.

备注

只有种类为“StorageV2 (常规用途 v2)”和“BlobStorage”的存储帐户支持事件集成。 Only storage accounts of kind StorageV2 (general purpose v2) and BlobStorage support event integration. “存储(常规用途 v1)”不支持与事件网格集成。Storage (genral purpose v1) does not support integration with Event Grid.

事件网格事件架构Event Grid event schema

Blob REST API 的事件列表List of events for Blob REST APIs

当客户端通过调用 Blob REST API 创建、替换或删除 Blob 时,将触发这些事件。These events are triggered when a client creates, replaces, or deletes a blob by calling Blob REST APIs.

备注

$logs$blobchangefeed 容器未与事件网格集成,因此这些容器中的活动将不会生成事件。The $logs and $blobchangefeed containers aren't integrated with Event Grid, so activity in these containers will not generate events. 此外,将 DFS 终结点 (abfss://URI) 用于启用了非分层命名空间的帐户将不会生成事件,但 blob 终结点 (wasb:// URI) 会生成事件。Also, using the dfs endpoint (abfss://URI) for non-hierarchical namespace enabled accounts will not generate events, but the blob endpoint (wasb:// URI) will generate events.

事件名称Event name 说明Description
Microsoft.Storage.BlobCreatedMicrosoft.Storage.BlobCreated 创建或替换 Blob 时触发。Triggered when a blob is created or replaced.
具体而言,当客户端使用 Blob REST API 中可用的 PutBlobPutBlockListCopyBlob 操作时,将触发此事件。Specifically, this event is triggered when clients use the PutBlob, PutBlockList, or CopyBlob operations that are available in the Blob REST API.
Microsoft.Storage.BlobDeletedMicrosoft.Storage.BlobDeleted 删除 Blob 时触发。Triggered when a blob is deleted.
具体而言,当客户端调用 Blob REST API 中可用的 DeleteBlob 操作时,将触发此事件。Specifically, this event is triggered when clients call the DeleteBlob operation that is available in the Blob REST API.

备注

若要确保 Microsoft.Storage.BlobCreated 事件仅在块 Blob 完全提交后触发,请针对 CopyBlobPutBlobPutBlockList REST API 调用筛选此事件。If you want to ensure that the Microsoft.Storage.BlobCreated event is triggered only when a Block Blob is completely committed, filter the event for the CopyBlob, PutBlob, and PutBlockList REST API calls. 这些 API 调用仅在数据已完全提交到块 Blob 后才触发 Microsoft.Storage.BlobCreated 事件。These API calls trigger the Microsoft.Storage.BlobCreated event only after data is fully committed to a Block Blob. 若要了解如何创建筛选器,请参阅筛选事件网格的事件To learn how to create a filter, see Filter events for Event Grid.

Azure Data Lake Storage Gen 2 REST API 的事件列表List of the events for Azure Data Lake Storage Gen 2 REST APIs

如果在存储帐户上启用分层命名空间,并且客户端调用 Azure Data Lake Storage Gen2 REST API,则会触发这些事件。These events are triggered if you enable a hierarchical namespace on the storage account, and clients call Azure Data Lake Storage Gen2 REST APIs. 有关 Azure Data Lake Storage Gen2 的详细信息,请参阅 Azure Data Lake Storage Gen2 简介For more information bout Azure Data Lake Storage Gen2, see Introduction to Azure Data Lake Storage Gen2.

事件名称Event name 说明Description
Microsoft.Storage.BlobCreatedMicrosoft.Storage.BlobCreated 创建或替换 Blob 时触发。Triggered when a blob is created or replaced.
具体而言,当客户端使用 Azure Data Lake Storage Gen2 REST API 中提供的 CreateFileFlushWithClose 操作时,会触发此事件。Specifically, this event is triggered when clients use the CreateFile and FlushWithClose operations that are available in the Azure Data Lake Storage Gen2 REST API.
Microsoft.Storage.BlobDeletedMicrosoft.Storage.BlobDeleted 删除 Blob 时触发。Triggered when a blob is deleted.
具体而言,当客户端调用 Azure Data Lake Storage Gen2 REST API 中提供的 DeleteFile 操作时,也会触发此事件。Specifically, This event is also triggered when clients call the DeleteFile operation that is available in the Azure Data Lake Storage Gen2 REST API.
Microsoft.Storage.BlobRenamedMicrosoft.Storage.BlobRenamed 重命名 Blob 时触发。Triggered when a blob is renamed.
具体而言,当客户端使用 Azure Data Lake Storage Gen2 REST API 中提供的 RenameFile 操作时,会触发此事件。Specifically, this event is triggered when clients use the RenameFile operation that is available in the Azure Data Lake Storage Gen2 REST API.
Microsoft.Storage.DirectoryCreatedMicrosoft.Storage.DirectoryCreated 创建目录时触发。Triggered when a directory is created.
具体而言,当客户端使用 Azure Data Lake Storage Gen2 REST API 中提供的 CreateDirectory 操作时,会触发此事件。Specifically, this event is triggered when clients use the CreateDirectory operation that is available in the Azure Data Lake Storage Gen2 REST API.
Microsoft.Storage.DirectoryRenamedMicrosoft.Storage.DirectoryRenamed 重命名目录时触发。Triggered when a directory is renamed.
具体而言,当客户端使用 Azure Data Lake Storage Gen2 REST API 中提供的 RenameDirectory 操作时,会触发此事件。Specifically, this event is triggered when clients use the RenameDirectory operation that is available in the Azure Data Lake Storage Gen2 REST API.
Microsoft.Storage.DirectoryDeletedMicrosoft.Storage.DirectoryDeleted 删除目录时触发。Triggered when a directory is deleted.
具体而言,当客户端使用 Azure Data Lake Storage Gen2 REST API 中提供的 DeleteDirectory 操作时,会触发此事件。Specifically, this event is triggered when clients use the DeleteDirectory operation that is available in the Azure Data Lake Storage Gen2 REST API.

备注

若要确保 Microsoft.Storage.BlobCreated 事件仅在块 Blob 完全提交后触发,请针对 FlushWithClose REST API 调用筛选此事件。If you want to ensure that the Microsoft.Storage.BlobCreated event is triggered only when a Block Blob is completely committed, filter the event for the FlushWithClose REST API call. 此 API 调用仅在数据已完全提交到块 Blob 后才触发 Microsoft.Storage.BlobCreated 事件。This API call triggers the Microsoft.Storage.BlobCreated event only after data is fully committed to a Block Blob. 若要了解如何创建筛选器,请参阅筛选事件网格的事件To learn how to create a filter, see Filter events for Event Grid.

事件响应的内容The contents of an event response

触发某个事件后,事件网格服务会将有关该事件的数据发送到订阅终结点。When an event is triggered, the Event Grid service sends data about that event to subscribing endpoint.

本部分包含有关每个 Blob 存储事件的数据外观示例。This section contains an example of what that data would look like for each blob storage event.

Microsoft.Storage.BlobCreated 事件Microsoft.Storage.BlobCreated event

[{
  "topic": "/subscriptions/{subscription-id}/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/my-storage-account",
  "subject": "/blobServices/default/containers/test-container/blobs/new-file.txt",
  "eventType": "Microsoft.Storage.BlobCreated",
  "eventTime": "2017-06-26T18:41:00.9584103Z",
  "id": "831e1650-001e-001b-66ab-eeb76e069631",
  "data": {
    "api": "PutBlockList",
    "clientRequestId": "6d79dbfb-0e37-4fc4-981f-442c9ca65760",
    "requestId": "831e1650-001e-001b-66ab-eeb76e000000",
    "eTag": "\"0x8D4BCC2E4835CD0\"",
    "contentType": "text/plain",
    "contentLength": 524288,
    "blobType": "BlockBlob",
    "url": "https://my-storage-account.blob.core.chinacloudapi.cn/testcontainer/new-file.txt",
    "sequencer": "00000000000004420000000000028963",
    "storageDiagnostics": {
      "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0"
    }
  },
  "dataVersion": "",
  "metadataVersion": "1"
}]

Microsoft.Storage.BlobCreated 事件 (Data Lake Storage Gen2)Microsoft.Storage.BlobCreated event (Data Lake Storage Gen2)

如果 Blob 存储帐户具有分层命名空间,则数据看起来与上一个示例类似,但以下更改除外:If the blob storage account has a hierarchical namespace, the data looks similar to the previous example with the exception of these changes:

  • dataVersion 键设置为值 2The dataVersion key is set to a value of 2.

  • data.api 键设置为字符串 CreateFileFlushWithCloseThe data.api key is set to the string CreateFile or FlushWithClose.

  • contentOffset 键包含在数据集中。The contentOffset key is included in the data set.

备注

如果应用程序使用 PutBlockList 操作将新的 Blob 上传到帐户,则数据不会包含这些更改。If applications use the PutBlockList operation to upload a new blob to the account, the data won't contain these changes.

[{
  "topic": "/subscriptions/{subscription-id}/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/my-storage-account",
  "subject": "/blobServices/default/containers/my-file-system/blobs/new-file.txt",
  "eventType": "Microsoft.Storage.BlobCreated",
  "eventTime": "2017-06-26T18:41:00.9584103Z",
  "id": "831e1650-001e-001b-66ab-eeb76e069631",
  "data": {
    "api": "CreateFile",
    "clientRequestId": "6d79dbfb-0e37-4fc4-981f-442c9ca65760",
    "requestId": "831e1650-001e-001b-66ab-eeb76e000000",
    "eTag": "\"0x8D4BCC2E4835CD0\"",
    "contentType": "text/plain",
    "contentLength": 0,
    "contentOffset": 0,
    "blobType": "BlockBlob",
    "url": "https://my-storage-account.dfs.core.chinacloudapi.cn/my-file-system/new-file.txt",
    "sequencer": "00000000000004420000000000028963",  
    "storageDiagnostics": {
    "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0"
    }
  },
  "dataVersion": "2",
  "metadataVersion": "1"
}]

Microsoft.Storage.BlobDeleted 事件Microsoft.Storage.BlobDeleted event

[{
  "topic": "/subscriptions/{subscription-id}/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/my-storage-account",
  "subject": "/blobServices/default/containers/testcontainer/blobs/file-to-delete.txt",
  "eventType": "Microsoft.Storage.BlobDeleted",
  "eventTime": "2017-11-07T20:09:22.5674003Z",
  "id": "4c2359fe-001e-00ba-0e04-58586806d298",
  "data": {
    "api": "DeleteBlob",
    "requestId": "4c2359fe-001e-00ba-0e04-585868000000",
    "contentType": "text/plain",
    "blobType": "BlockBlob",
    "url": "https://my-storage-account.blob.core.chinacloudapi.cn/testcontainer/file-to-delete.txt",
    "sequencer": "0000000000000281000000000002F5CA",
    "storageDiagnostics": {
      "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0"
    }
  },
  "dataVersion": "",
  "metadataVersion": "1"
}]

Microsoft.Storage.BlobDeleted 事件 (Data Lake Storage Gen2)Microsoft.Storage.BlobDeleted event (Data Lake Storage Gen2)

如果 Blob 存储帐户具有分层命名空间,则数据看起来与上一个示例类似,但以下更改除外:If the blob storage account has a hierarchical namespace, the data looks similar to the previous example with the exception of these changes:

  • dataVersion 键设置为值 2The dataVersion key is set to a value of 2.

  • data.api 键设置为字符串 DeleteFileThe data.api key is set to the string DeleteFile.

  • url 键包含路径 dfs.core.chinacloudapi.cnThe url key contains the path dfs.core.chinacloudapi.cn.

备注

如果应用程序使用 DeleteBlob 操作从帐户中删除 Blob,则数据不会包含这些更改。If applications use the DeleteBlob operation to delete a blob from the account, the data won't contain these changes.

[{
  "topic": "/subscriptions/{subscription-id}/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/my-storage-account",
  "subject": "/blobServices/default/containers/my-file-system/blobs/file-to-delete.txt",
  "eventType": "Microsoft.Storage.BlobDeleted",
  "eventTime": "2017-06-26T18:41:00.9584103Z",
  "id": "831e1650-001e-001b-66ab-eeb76e069631",
    "data": {
    "api": "DeleteFile",
    "clientRequestId": "6d79dbfb-0e37-4fc4-981f-442c9ca65760",
    "requestId": "831e1650-001e-001b-66ab-eeb76e000000",
    "contentType": "text/plain",
    "blobType": "BlockBlob",
    "url": "https://my-storage-account.dfs.core.chinacloudapi.cn/my-file-system/file-to-delete.txt",
    "sequencer": "00000000000004420000000000028963",  
    "storageDiagnostics": {
    "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0"
    }
  },
  "dataVersion": "2",
  "metadataVersion": "1"
}]

Microsoft.Storage.BlobRenamed 事件Microsoft.Storage.BlobRenamed event

[{
  "topic": "/subscriptions/{subscription-id}/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/my-storage-account",
  "subject": "/blobServices/default/containers/my-file-system/blobs/my-renamed-file.txt",
  "eventType": "Microsoft.Storage.BlobRenamed",
  "eventTime": "2017-06-26T18:41:00.9584103Z",
  "id": "831e1650-001e-001b-66ab-eeb76e069631",
  "data": {
    "api": "RenameFile",
    "clientRequestId": "6d79dbfb-0e37-4fc4-981f-442c9ca65760",
    "requestId": "831e1650-001e-001b-66ab-eeb76e000000",
    "destinationUrl": "https://my-storage-account.dfs.core.chinacloudapi.cn/my-file-system/my-renamed-file.txt",
    "sourceUrl": "https://my-storage-account.dfs.core.chinacloudapi.cn/my-file-system/my-original-file.txt",
    "sequencer": "00000000000004420000000000028963",  
    "storageDiagnostics": {
    "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0"
    }
  },
  "dataVersion": "1",
  "metadataVersion": "1"
}]

Microsoft.Storage.DirectoryCreated 事件Microsoft.Storage.DirectoryCreated event

[{
  "topic": "/subscriptions/{subscription-id}/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/my-storage-account",
  "subject": "/blobServices/default/containers/my-file-system/blobs/my-new-directory",
  "eventType": "Microsoft.Storage.DirectoryCreated",
  "eventTime": "2017-06-26T18:41:00.9584103Z",
  "id": "831e1650-001e-001b-66ab-eeb76e069631",
  "data": {
    "api": "CreateDirectory",
    "clientRequestId": "6d79dbfb-0e37-4fc4-981f-442c9ca65760",
    "requestId": "831e1650-001e-001b-66ab-eeb76e000000",
    "url": "https://my-storage-account.dfs.core.chinacloudapi.cn/my-file-system/my-new-directory",
    "sequencer": "00000000000004420000000000028963",  
    "storageDiagnostics": {
    "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0"
    }
  },
  "dataVersion": "1",
  "metadataVersion": "1"
}]

Microsoft.Storage.DirectoryRenamed 事件Microsoft.Storage.DirectoryRenamed event

[{
  "topic": "/subscriptions/{subscription-id}/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/my-storage-account",
  "subject": "/blobServices/default/containers/my-file-system/blobs/my-renamed-directory",
  "eventType": "Microsoft.Storage.DirectoryRenamed",
  "eventTime": "2017-06-26T18:41:00.9584103Z",
  "id": "831e1650-001e-001b-66ab-eeb76e069631",
  "data": {
    "api": "RenameDirectory",
    "clientRequestId": "6d79dbfb-0e37-4fc4-981f-442c9ca65760",
    "requestId": "831e1650-001e-001b-66ab-eeb76e000000",
    "destinationUrl": "https://my-storage-account.dfs.core.chinacloudapi.cn/my-file-system/my-renamed-directory",
    "sourceUrl": "https://my-storage-account.dfs.core.chinacloudapi.cn/my-file-system/my-original-directory",
    "sequencer": "00000000000004420000000000028963",  
    "storageDiagnostics": {
    "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0"
    }
  },
  "dataVersion": "1",
  "metadataVersion": "1"
}]

Microsoft.Storage.DirectoryDeleted 事件Microsoft.Storage.DirectoryDeleted event

[{
  "topic": "/subscriptions/{subscription-id}/resourceGroups/Storage/providers/Microsoft.Storage/storageAccounts/my-storage-account",
  "subject": "/blobServices/default/containers/my-file-system/blobs/directory-to-delete",
  "eventType": "Microsoft.Storage.DirectoryDeleted",
  "eventTime": "2017-06-26T18:41:00.9584103Z",
  "id": "831e1650-001e-001b-66ab-eeb76e069631",
  "data": {
    "api": "DeleteDirectory",
    "clientRequestId": "6d79dbfb-0e37-4fc4-981f-442c9ca65760",
    "requestId": "831e1650-001e-001b-66ab-eeb76e000000",
    "url": "https://my-storage-account.dfs.core.chinacloudapi.cn/my-file-system/directory-to-delete",
    "recursive": "true", 
    "sequencer": "00000000000004420000000000028963",  
    "storageDiagnostics": {
    "batchId": "b68529f3-68cd-4744-baa4-3c0498ec19f0"
    }
  },
  "dataVersion": "1",
  "metadataVersion": "1"
}]

事件属性Event properties

事件具有以下顶级数据:An event has the following top-level data:

属性Property 类型Type 说明Description
主题topic stringstring 事件源的完整资源路径。Full resource path to the event source. 此字段不可写入。This field is not writeable. 事件网格提供此值。Event Grid provides this value.
subjectsubject stringstring 事件主题的发布者定义路径。Publisher-defined path to the event subject.
eventTypeeventType stringstring 此事件源的一个注册事件类型。One of the registered event types for this event source.
EventTimeeventTime stringstring 基于提供程序 UTC 时间的事件生成时间。The time the event is generated based on the provider's UTC time.
idid stringstring 事件的唯一标识符。Unique identifier for the event.
datadata 对象 (object)object Blob 存储事件数据。Blob storage event data.
dataVersiondataVersion stringstring 数据对象的架构版本。The schema version of the data object. 发布者定义架构版本。The publisher defines the schema version.
metadataVersionmetadataVersion stringstring 事件元数据的架构版本。The schema version of the event metadata. 事件网格定义顶级属性的架构。Event Grid defines the schema of the top-level properties. 事件网格提供此值。Event Grid provides this value.

数据对象具有以下属性:The data object has the following properties:

属性Property 类型Type 说明Description
apiapi stringstring 触发事件的操作。The operation that triggered the event.
ClientRequestIdclientRequestId stringstring 客户端提供的用于存储 API 操作的请求 ID。a client-provided request id for the storage API operation. 此 ID 可用于通过 Azure 存储诊断日志中的“client-request-id”字段关联到这些日志,并且可以通过“x-ms-client-request-id”标头提供到客户端请求中。This id can be used to correlate to Azure Storage diagnostic logs using the "client-request-id" field in the logs, and can be provided in client requests using the "x-ms-client-request-id" header. 请参阅日志格式See Log Format.
requestIdrequestId stringstring 用于存储 API 操作的服务生成的请求 ID。Service-generated request id for the storage API operation. 可用于通过 Azure 存储诊断日志中的“request-id-header”字段关联到这些日志,并且由“x-ms-request-id”标头中的初始化 API 调用返回。Can be used to correlate to Azure Storage diagnostic logs using the "request-id-header" field in the logs and is returned from initiating API call in the 'x-ms-request-id' header. 请参阅日志格式See Log Format.
eTageTag stringstring 可用于根据条件执行操作的值。The value that you can use to perform operations conditionally.
contentTypecontentType stringstring 为 Blob 指定的内容类型。The content type specified for the blob.
contentLengthcontentLength integerinteger Blob 大小,以字节为单位。The size of the blob in bytes.
blobTypeblobType stringstring Blob 的类型。The type of blob. 有效值为“BlockBlob”或“PageBlob”。Valid values are either "BlockBlob" or "PageBlob".
contentOffsetcontentOffset numbernumber 在事件触发应用程序完成写入文件时执行的写入操作的偏移量(以字节为单位)。The offset in bytes of a write operation taken at the point where the event-triggering application completed writing to the file.
只有对具有分层命名空间的 Blob 存储帐户触发的事件才显示此值。Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
destinationUrldestinationUrl stringstring 操作完成后存在的文件的 URL。The url of the file that will exist after the operation completes. 例如,如果重命名了某个文件,则 destinationUrl 属性将包含新文件名的 URL。For example, if a file is renamed, the destinationUrl property contains the url of the new file name.
只有对具有分层命名空间的 Blob 存储帐户触发的事件才显示此值。Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
sourceUrlsourceUrl stringstring 执行操作之前存在的文件的 URL。The url of the file that exists prior to the operation. 例如,如果重命名了某个文件,则 sourceUrl 将包含执行重命名操作之前的原始文件名的 URL。For example, if a file is renamed, the sourceUrl contains the url of the original file name prior to the rename operation.
只有对具有分层命名空间的 Blob 存储帐户触发的事件才显示此值。Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
urlurl stringstring Blob 的路径。The path to the blob.
如果客户端使用 Blob REST API,则 URL 采用以下结构:<storage-account-name>.blob.core.chinacloudapi.cn/<container-name>/<file-name>。If the client uses a Blob REST API, then the url has this structure: <storage-account-name>.blob.core.chinacloudapi.cn/<container-name>/<file-name>.
如果客户端使用 Data Lake Storage REST API,则 URL 采用以下结构:<storage-account-name>.dfs.core.chinacloudapi.cn/<file-system-name>/<file-name>。If the client uses a Data Lake Storage REST API, then the url has this structure: <storage-account-name>.dfs.core.chinacloudapi.cn/<file-system-name>/<file-name>.
recursiverecursive stringstring 若要对所有子目录执行该操作,则为 True;否则为 FalseTrue to perform the operation on all child directories; otherwise False.
只有对具有分层命名空间的 Blob 存储帐户触发的事件才显示此值。Appears only for events triggered on blob storage accounts that have a hierarchical namespace.
sequencersequencer stringstring 一个不透明的字符串值,表示任何特定 blob 名称的事件的逻辑顺序。An opaque string value representing the logical sequence of events for any particular blob name. 用户可以使用标准字符串比较,了解同一个 blob 名称上两个事件的相对序列。Users can use standard string comparison to understand the relative sequence of two events on the same blob name.
storageDiagnosticsstorageDiagnostics objectobject Azure 存储服务中偶尔附带的诊断数据。Diagnostic data occasionally included by the Azure Storage service. 如果存在,事件使用者应忽略它。When present, should be ignored by event consumers.

教程和操作指南Tutorials and how-tos

标题Title 说明Description
快速入门:使用 Azure CLI 将 Blob 存储事件路由到自定义 Web 终结点Quickstart: route Blob storage events to a custom web endpoint with Azure CLI 介绍如何使用 Azure CLI 将 Blob 存储事件发送到 WebHook。Shows how to use Azure CLI to send blob storage events to a WebHook.
快速入门:使用 PowerShell 将 Blob 存储事件路由到自定义 Web 终结点Quickstart: route Blob storage events to a custom web endpoint with PowerShell 介绍如何使用 Azure PowerShell 将 Blob 存储事件发送到 WebHook。Shows how to use Azure PowerShell to send blob storage events to a WebHook.
Azure CLI:订阅 Blob 存储帐户的事件Azure CLI: subscribe to events for a Blob storage account 用于订阅 Blob 存储帐户的事件的示例脚本。Sample script that subscribes to event for a Blob storage account. 它将事件发送到 WebHook。It sends the event to a WebHook.
PowerShell:订阅 Blob 存储帐户的事件PowerShell: subscribe to events for a Blob storage account 用于订阅 Blob 存储帐户的事件的示例脚本。Sample script that subscribes to event for a Blob storage account. 它将事件发送到 WebHook。It sends the event to a WebHook.
资源管理器模板:创建 Blob 存储和订阅Resource Manager template: Create Blob storage and subscription 部署 Azure Blob 存储帐户并订阅该存储帐户的事件。Deploys an Azure Blob storage account and subscribes to events for that storage account. 它将事件发送到 WebHook。It sends events to a WebHook.
概述:响应 Blob 存储事件Overview: reacting to Blob storage events 概述 Blob 存储与事件网格的集成。Overview of integrating Blob storage with Event Grid.

后续步骤Next steps