如何在 Azure Stack Hub 上安装事件中心How to install Event Hubs on Azure Stack Hub

重要

Azure Stack 中心上的事件中心目前处于预览阶段,在预览期间可免费使用。Event Hubs on Azure Stack Hub is currently in preview, and is provided free during the preview period.

本文介绍如何下载和安装事件中心资源提供程序,使其可供客户订阅。This article shows you how to download and install the Event Hubs resource provider, making it available to offer to customers for subscription.

下载包Download packages

必须先使用市场管理功能下载资源提供程序及其相关的包,然后才能在 Azure Stack Hub 上安装事件中心。Before you can install Event Hubs on Azure Stack Hub, you must download the resource provider and its dependent packages using the Marketplace Management feature. 如果不熟悉市场管理,请花费一些时间阅读从 Azure 下载市场项并将其发布到 Azure Stack HubIf you're not familiar with Marketplace Management, spend time reviewing Download marketplace items from Azure and publish to Azure Stack Hub. 本文逐步讲解如何将项目从 Azure 下载到 Azure Stack Hub 市场。This article will walk you through the process of downloading items from Azure to the Azure Stack Hub marketplace. 它涵盖了联网场景和离线场景。It covers both connected and disconnected scenarios.

备注

下载过程可能需要 30 分钟到 2 小时的时间,具体取决于网络延迟和 Azure Stack Hub 实例上的现有包。The download process can take 30 minutes to 2 hours, depending on the network latency and existing packages on your Azure Stack Hub instance.

对于联网场景,请遵循以下说明:Follow these instructions for a connected scenario:

  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. 选择“+ 从 Azure 添加”。****Select + Add from Azure.
  5. 使用搜索栏搜索“事件中心”。Search for "Event Hubs" using the search bar.
  6. 在搜索结果中选择“事件中心”行。Select the "Event Hubs" row on the search results.
  7. 在“事件中心”下载页上,选择要安装的事件中心版本,然后选择页面底部的“下载”****。On the "Event Hubs" download page, select the Event Hubs version you wish to install, then select Download at the bottom of the page. 市场管理 - 包Marketplace management packages

请注意,其他软件包会随事件中心一起下载,其中包括:Notice that additional software packages are downloaded along with Event Hubs, including:

  • Azure Stack Hub 加载项 RP Windows Server(仅限内部)Azure Stack Hub Add-On RP Windows Server INTERNAL ONLY
  • PowerShell 所需状态配置PowerShell Desired State Configuration

安装Installation

  1. 如果尚未登录,请登录到 Azure Stack Hub 管理员门户,选择左侧的“市场管理”,然后选择“资源提供程序”**** ****。If you haven't already, sign in to the Azure Stack Hub administrator portal, select Marketplace Management on the left, select Resource providers.

  2. 下载了“事件中心”和所需的其他软件后,“市场管理”会显示状态为“未安装”的“事件中心”包****。Once Event Hubs and other required software have been downloaded, Marketplace Management shows the "Event Hubs" packages with a status of "Not Installed". 可能还有状态显示为“已下载”的其他包。There may be other packages that show a status of "Downloaded". 选择要安装的“事件中心”行。Select the "Event Hubs" row you wish to install. 市场管理 - 下载的包Marketplace management downloaded packages

  3. “事件中心”安装包页面会在顶部显示一条蓝色横幅。The Event Hubs install package page shows a blue banner across the top. 选择该横幅,开始安装事件中心。Select the banner to start the installation of Event Hubs. “市场管理”中的“事件中心”- 开始安装Marketplace management event hubs - start install

安装先决条件Install prerequisites

  1. 接下来,你将转到“安装”页。Next you're transferred to the install page. 选择“安装必备组件”**** 开始安装过程。Select Install Prerequisites to begin the installation process. “市场管理”中的“事件中心”- 必备组件Marketplace management event hubs - prerequisites

  2. 等到必备组件安装成功。Wait until the installation of prerequisites succeeds. 在继续下一步之前,你应该会在“安装必备组件”**** 旁边看到一个绿色的复选标记。You should see a green checkmark next to Install prerequisites before proceeding to the next step.

    “市场管理”中的“事件中心”- 必备组件

准备机密Prepare secrets

  1. 在****“2. 准备机密”步骤下,选择“添加证书”****,此时会显示“添加证书”**** 面板。Under the 2. Prepare secrets step, select Add certificate, and the Add a certificate panel will appear. “市场管理”中的“事件中心”- 准备机密Marketplace management event hubs - prepare secrets

  2. 选择“添加证书”**** 上的“浏览”按钮(紧邻证书文件名字段的右侧)。Select the browse button on Add a certificate, just to the right of the certificate filename field.

  3. 选择在完成先决条件时获取的 .pfx 证书文件。Select the .pfx certificate file you procured when completing the prerequisites. 有关详细信息,请参阅安装先决条件For more information, see the installation Prerequisites.

  4. 输入你在为事件中心 SSL 证书创建安全字符串时提供的密码。Enter the password you provided to create a secure string for Event Hubs SSL Certificate. 然后选择“添加”****。Then select Add. “市场管理”中的“事件中心”- 添加证书Marketplace management event hubs - add certificate

安装资源提供程序Install resource provider

  1. 证书安装成功后,在继续下一步之前,你应该会在“准备密钥”**** 旁边看到一个绿色的复选标记。When the installation of the certificate succeeds, you should see a green checkmark next to Prepare secrets before proceeding to the next step. 现在,选择“3 安装资源提供程序”**** 下面的“安装”**** 按钮。Now select the Install button next to 3 Install resource provider. “市场管理”中的“事件中心”- 开始安装Marketplace management event hubs - start install

  2. 接下来,你会看到以下页面,其中指示正在安装事件中心资源提供程序。Next you'll see the following page, which indicates that Event Hubs resource provider is being installed. “市场管理”中的“事件中心”- 正在安装Marketplace management event hubs - installing

  3. 等待安装完成通知。Wait for the installation complete notification. 此过程通常要花费一小时或更长时间,具体取决于你的 Azure Stack Hub 类型。This process usually takes one or more hours, depending on your Azure Stack Hub type. “市场管理”中的“事件中心”- 安装完成Marketplace management event hubs - install complete

  4. 返回到“市场管理”**** 的“资源提供程序”**** 页,验证是否已成功安装事件中心。Verify that the installation of Event Hubs has succeeded, by returning to the Marketplace Management, Resource Providers page. 事件中心的状态应显示为“已安装”。The status of Event Hubs should show "Installed". “市场管理”中的“事件中心”- 可用Marketplace management event hubs available

注册事件中心Register Event Hubs

现在,你需要注册事件中心资源提供程序。Now you need to register the Event Hubs resource provider. 完成注册后,便可以使用“事件中心”管理页来管理服务。Registration allows you to use the Event Hubs administration page, to manage the service.

  1. 在管理员门户中,选择左上方的“所有服务”。****In the administrator portal, select All services in the top left.

  2. 选择“订阅”。****Select Subscriptions. 你会看到一个订阅列表。You're presented with a list of subscriptions.

    备注

    请确保未选择“用户订阅”****Be sure not to select User Subscriptions

  3. 在“订阅”页上选择“默认提供程序订阅”。**** ****Select Default Provider Subscription, on the Subscriptions page.

  4. 在“默认提供程序订阅”**** 页的左侧,选择“资源提供程序”****。Select Resource providers, on the left of the Default Provider Subscription page.

  5. 在顶部的“按名称筛选”**** 字段中,搜索字符串“EventHub”。In the Filter by name field at the top, search for the string "EventHub".

  6. 查看“Microsoft EventHub”和“Microsoft.EventHub.Admin”资源提供程序行的“状态”**** 列。Look at the Status column of the "Microsoft.EventHub" and "Microsoft.EventHub.Admin" resource provider rows.

  7. 如果其中任何一个的状态为“未注册”,请选择每个提供程序,然后选择“注册”****。If any of them have a status of "Unregistered", select each provider, then select Register. 未注册的资源提供程序Unregistered resource providers

  8. 几秒钟后,选择“刷新”****。After a few seconds, select Refresh. 此时应会看到资源提供程序的状态为“已注册”。You should now see the resource provider with a status of Registered.

  9. 现在,应会看到“Microsoft.EventHub”和“Microsoft.EventHub.Admin”,其状态为“已注册”。You should now see Microsoft.EventHub and Microsoft.EventHub.Admin, with a status of "Registered". 已注册的资源提供程序Registered resource providers

  10. 返回到“所有服务”**** 页。Return to the All services page.

  11. 搜索“事件中心”。Search for "Event Hubs". 现在应会看到“事件中心”,这是“事件中心”管理页的入口点。You should now see "Event Hubs", which is your entry point to Event Hubs administration page. 可用服务 - 事件中心Services available - event hubs

后续步骤Next steps

你必须先创建一个或多个计划、套餐和订阅,然后用户才能部署事件中心资源。Before users can deploy Event Hubs resources, you must create one or more plans, offers, and subscriptions.

  • 如果这是你第一次提供服务,请从向用户提供服务教程开始。If this is the first time you're offering a service, start with the Offer services to users tutorial. 然后继续学习下一教程测试服务产品Then continue with the next tutorial, Test a service offering.
  • 熟悉提供服务的概念后,请创建包含事件中心资源提供程序的套餐和计划。Once you're familiar with the concept of offering a service, create an offer and plan that includes the Event Hubs resource provider. 然后为你的用户创建订阅,或为其提供套餐信息,以便他们可以创建自己的订阅。Then create a subscription for your users, or give them the offer information so they can create their own. 如需参考信息,还可以阅读服务、计划、套餐、订阅概述下的一系列文章。For reference, you can also follow the series of articles under the Service, plan, offer, subscription overview.

若要查找更新,请阅读如何更新 Azure Stack Hub上的事件中心To check for updates, How to update Event Hubs on Azure Stack Hub.

如果需要删除资源提供程序,请参阅删除事件中心资源提供程序If you need to remove the resource provider, see Remove the Event Hubs resource provider

若要了解有关用户体验的详细信息,请访问用户文档中的 Azure Stack Hub 上的事件中心概述To learn more about the user experience, visit the Event Hubs on Azure Stack Hub overview in the User documents.