您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

注册应用程序Register your application

若要将自定义决策服务用于应用程序,请在门户中注册该应用程序。To use Custom Decision Service for your application, register it on the portal. 本文介绍了如何执行此操作。This article explains how.

  1. 转到自定义决策服务的前端页Go to the front page of Custom Decision Service. 在功能区上,单击“我的门户”,如图像中所突出显示:On the ribbon, click My Portal, as highlighted in the image:

    我的门户

    如果尚未登录,门户将提示你使用 Microsoft 帐户进行登录。If you are not already signed in, the portal prompts you to sign in with your Microsoft account. 在登录后,门户将在页面右上角显示你的 Microsoft 帐户。After you have signed in, the portal displays your Microsoft account in the upper-right corner of the page.

  2. 若要注册应用程序,请单击“新建应用”按钮。To register your application, click the New App button.

  3. 在对话框中,为你的应用程序选择一个应用 ID。In the dialog box, choose an App ID for your application. 自定义决策服务要求每个应用程序具有唯一的 ID。Custom Decision Service requires a unique ID for each application. 如果其他人已占用了此 ID,则系统会要求你另外选择一个。If someone else has already taken this ID, the system asks you to pick a different one.

  4. 指定一个操作集 API。Specify an Action Set API. 此设置是一个 RSS 或 Atom 馈送,它将你的应用程序的可用内容传送到自定义决策服务。This setting is an RSS or Atom feed that communicates the available content for your application to Custom Decision Service. 为该馈送输入一个名称,并输入提供它的 URL。Enter a name for the feed, and enter the URL from which it is served. 若要稍后执行此步骤,请单击“馈送”按钮,然后单击“新建馈送”按钮。To do this step later, click the Feeds button and then click the New feed button. 下文中介绍了一个创建 RSS 馈送的示例。An example that creates an RSS feed is described later.

  5. 若要注册应用程序,请选择左下角的“自定义应用”复选框。To register your application, select the Custom App check box in the lower-left corner. 输入记录你的应用程序数据的 Azure 存储帐户的连接字符串Enter a connection string for the Azure storage account where your application data is logged. 有关如何创建存储帐户的详细信息,请参阅如何创建、管理或删除存储帐户For more information on how to create a storage account, see How to create, manage, or delete a storage account.

后续步骤Next steps