如何删除 Azure Stack Hub 上的事件中心How to remove Event Hubs on Azure Stack Hub

警告

卸载事件中心会删除(擦除)资源提供程序以及所有用户创建的事件中心群集、命名空间和事件中心资源。Uninstalling Event Hubs will remove (erase) the resource provider, and all user-created Event Hubs clusters, namespaces, and event hubs resources. 这还会删除其关联的事件数据。It will also remove their associated event data.
在决定卸载事件中心之前,请先格外小心地进行相关处理。Please proceed with extreme caution before deciding to uninstall Event Hubs. 卸载事件中心不会删除用于安装事件中心的包。Uninstalling Event Hubs does not delete the packages used to install Event Hubs. 若要实现该操作,请参阅删除事件中心包To achieve that, please refer to Delete Event Hubs packages.

卸载事件中心Uninstall Event Hubs

这一系列的步骤会删除所有事件中心资源(包括群集、命名空间、事件中心和资源提供程序)。This sequence of steps will remove all Event Hubs resources, including clusters, namespaces, event hubs, and the resource provider.

若要删除用户创建的事件中心和所有相关资源,请完成以下步骤:To remove Event Hubs and all related resources created by users, complete the following steps:

  1. 登录到 Azure Stack Hub 管理员门户。Sign in to the Azure Stack Hub administrator portal.

  2. 选择左侧的“市场管理”。Select Marketplace Management on the left.

  3. 选择“资源提供程序”。Select Resource providers.

  4. 从资源提供程序列表中选择“事件中心”。Select Event Hubs from the list of resource providers. 建议你通过在提供的“搜索”文本框中输入“事件中心”来筛选列表。You may want to filter the list by entering "Event Hubs" in the search text box provided.

    删除事件中心 1Remove event hubs 1

  5. 从页面顶部提供的选项中选择“卸载”。Select Uninstall from the options provided across the top the page.

    删除事件中心 2Remove event hubs 2

  6. 输入资源提供程序的名称,然后选择“卸载”。Enter the name of the resource provider, then select Uninstall. 此操作确认你要卸载以下内容:This action confirms your desire to uninstall:

    • 事件中心资源提供程序The Event Hubs resource provider
    • 所有用户创建的群集、命名空间、事件中心和事件数据。All user-created clusters, namespaces, event hubs, and event data.

    删除事件中心 3Remove event hubs 3

    删除事件中心 4Removing event hubs 4

    重要

    在成功删除事件中心之后,必须至少等待 10 分钟,然后才能再次安装事件中心。You must wait at least 10 minutes after Event Hubs has been removed successfully before installing Event Hubs again. 这是因为清理活动可能仍在运行,而这可能与任何新安装冲突。This is due to the fact that cleanup activities might still be running, which may conflict with any new installation.

删除事件中心包Delete Event Hubs packages

如果卸载事件中心后还希望删除用于安装事件中心的任何包,请使用此选项。Use this option if after uninstalling Event Hubs you also wish to remove any packages used to install Event Hubs.

后续步骤Next steps

若要重新进行安装,请返回到安装事件中心资源提供程序一文。To reinstall, return to the Install the Event Hubs resource provider article.