创作和发布区域及关联的密钥Authoring and publishing regions and the associated keys

相应的 LUIS 门户支持三个创作区域。Three authoring regions are supported by corresponding LUIS portals. 若要将 LUIS 应用发布到多个区域,每个区域至少需要一个密钥。To publish a LUIS app to more than one region, you need at least one key per region.

LUIS 创作区域LUIS Authoring regions

基于区域,有三个 LUIS 创作门户。There are three LUIS authoring portals, based on region. 必须在同一区域中创建和发布应用。You must author and publish in the same region.

LUISLUIS 创作区域Authoring region Azure 区域名称Azure region name
https://luis.azure.cnhttps://luis.azure.cn 中国China
chinaeast

发布区域和 Azure 资源 Publishing regions and Azure resources

该应用将发布到与 LUIS 门户中添加的 LUIS 资源关联的所有区域。The app is published to all regions associated with the LUIS resources added in the LUIS portal. 例如,对于在 https://luis.azure.cn 上创建的应用,如果你在 chinaeast 中创建 LUIS 或认知服务资源并将其作为资源添加到该应用,则该应用将发布到此区域中。For example, for an app created on https://luis.azure.cn, if you create a LUIS or Cognitive Service resource in chinaeast and add it to the app as a resource, the app is published in that region.

公共应用Public apps

公共应用在所有区域中发布,以便有基于区域的 LUIS 资源密钥的用户可以在与其资源密钥关联的任何区域中访问该应用。A public app is published in all regions so that a user with a region-based LUIS resource key can access the app in whichever region is associated with their resource key.

发布区域绑定到创作区域Publishing regions are tied to authoring regions

创作区域中的应用仅可发布到对应的发布区域。The authoring region app can only be published to a corresponding publish region. 如果应用目前位于错误的创作区域中,请导出应用,然后将其导入发布区域对应的正确创作区域。If your app is currently in the wrong authoring region, export the app, and import it into the correct authoring region for your publishing region.

发布到中国Publishing to China

若要发布到中国区域,请仅在 https://luis.azure.cn 创建 LUIS 应用。To publish to the Chinan regions, you create LUIS apps at https://luis.azure.cn only. 如果尝试使用中国区域中的密钥将应用发布到其他区域,LUIS 会显示警告消息。If you attempt to publish anywhere else using a key in the Chinan region, LUIS displays a warning message. 请改用 https://luis.azure.cn。Instead, use https://luis.azure.cn. https://luis.azure.cn 中创建的 LUIS 应用不会自动迁移到其他区域。LUIS apps created at https://luis.azure.cn don't automatically migrate to other regions. 要实现迁移,请导出然后再导入 LUIS 应用。Export and then import the LUIS app in order to migrate it.

中国发布区域 China publishing regions

全球区域Global region 创作 API 区域和创作网站Authoring API region & authoring website 发布和查询区域Publishing & querying region
API region name
终结点 URL 格式Endpoint URL format
中国China chinaeast
luis.azure.cnluis.azure.cn
中国东部China East
chinaeast
https://chinaeast.api.cognitive.azure.cn/luis/v2.0/apps/YOUR-APP-ID?subscription-key=YOUR-SUBSCRIPTION-KEY

发布到其他区域Publishing to other regions

若要发布到其他区域,请仅在 https://luis.azure.cn 创建 LUIS 应用。To publish to the other regions, you create LUIS apps at https://luis.azure.cn only.

其他发布区域Other publishing regions

区域region 创作 API 区域和创作网站Authoring API region & authoring website 发布和查询区域Publishing & querying region
API region name
终结点 URL 格式Endpoint URL format
亚洲Asia chinaeast
https://luis.azure.cnhttps://luis.azure.cn
中国东部 2China East 2
chinaeast2
https://chinaeast2.api.cognitive.azure.cn/luis/v2.0/apps/YOUR-APP-ID?subscription-key=YOUR-SUBSCRIPTION-KEY

终结点Endpoints

LUIS 当前具有 2 个终结点:一个用于创作,一个用于查询预测分析。LUIS currently has 2 endpoints: one for authoring and one for query prediction analysis.

目的Purpose URLURL
创作Authoring https://{region}.api.cognitive.azure.cn/luis/api/v2.0/apps/{appID}/
文本分析(查询预测)Text analysis (query prediction) https://{region}.api.cognitive.azure.cn/luis/v2.0/apps/{appId}?q={q}[&timezoneOffset][&verbose][&spellCheck][&staging][&bing-spell-check-subscription-key][&log]

下表说明了上表中用大括号 {} 表示的参数。The following table explains the parameters, denoted with curly braces {}, in the previous table.

参数Parameter 目的Purpose
regionregion Azure 区域 - 创作和发布具有不同的区域Azure region - authoring and publishing have different regions
appIDappID 在 URL 路由中使用的 LUIS 应用 ID,可在应用仪表板上找到LUIS app ID used in URL route and found on app dashboard
qq 从客户端应用程序(如聊天机器人)发送的话语文本utterance text sent from client application such as chat bot

故障转移区域Failover regions

每个区域都有一个要故障转移到的次要区域。Each region has a secondary region to fail over to. 中国在中国内部故障转移。hina fails over inside China.

后续步骤Next steps