Azure 事件网格中的系统主题System topics in Azure Event Grid

当你为 Azure 事件源创建第一个事件订阅时,Azure 事件网格服务会创建系统主题。The Azure Event Grid service creates system topics when you create a first event subscription for an Azure event source. 目前,事件网格不会为 2020 年 3 月 15 日之前创建的主题源创建系统主题。Currently, Event Grid doesn't create system topics for topic sources that were created before Mar, 15, 2020. 对于在此日期创建的或之后创建的所有主题源,事件网格会自动创建系统主题。For all the topic sources you created on or after this date, Event Grid automatically creates system topics. 本文介绍 Azure 事件网格中的系统主题 。This article describes system topics in Azure Event Grid.

概述Overview

为 Azure 事件源(如 Azure 存储帐户)创建第一个事件订阅时,该订阅的预配过程会创建类型为“Microsoft.EventGrid/systemTopics” 的附加资源。When you create first event subscription for an Azure event source such as Azure Storage account, provisioning process for the subscription creates an additional resource of type Microsoft.EventGrid/systemTopics. 删除 Azure 事件源的最后一个事件订阅后,系统主题会被自动删除。When the last event subscription to the Azure event source is deleted, the system topic is automatically deleted.

系统主题不适用于自定义主题方案(即事件网格主题和事件网格域)。System topic isn't applicable to custom topic scenarios, that is, Event Grid topics and Event Grid domains.

位置Location

对于位于特定区域/位置的 Azure 事件源,将在与 Azure 事件源相同的位置创建系统主题。For Azure event sources that are in a specific region/location, system topic is created in the same location as the Azure event source. 例如,如果为中国北部的 Azure Blob 存储创建事件订阅,则会在中国北部创建系统主题。For example, if you create an event subscription for an Azure blob storage in China North, the system topic is created in China North.

资源组Resource group

通常,系统主题在 Azure 事件源所在的资源组中创建。In general, system topic is created in the same resource group that the Azure event source is in. 对于在 Azure 订阅范围内创建的事件订阅,系统主题在资源组“Default-EventGrid” 下创建。For event subscriptions created at Azure subscription scope, system topic is created under the resource group Default-EventGrid. 如果该资源组不存在,则 Azure 事件网格会在创建系统主题之前创建该资源组。If the resource group doesn't exist, Azure Event Grid creates it before creating the system topic.

尝试使用存储帐户删除资源组时,你会在受影响的资源列表中看到系统主题。When you try to delete the resource group with the storage account, you'll see the system topic in the list of affected resources.

删除资源组

后续步骤Next steps

请参阅以下文章:See the following articles: