简体   繁体   English

Publish Bot - Composer - 从现有资源导入

[英]Publish Bot - Composer - Import from Existing Resources

I had few permission related issues due to my account being a one from organization.由于我的帐户是来自组织的帐户,因此我几乎没有与权限相关的问题。 So decided to make use of "Import using existing resources".因此决定使用“使用现有资源导入”。 Please find the.json below that was used to create the publishing profile.请在下方找到用于创建发布配置文件的 .json。

{ "name": "convAISubAuto", "environment": "dev", "tenantId": "TENANT_ID", "hostname": "subAutoConvAI", #Same as azure bot name "runtimeIdentifier": "win-x64", "resourceGroup": "chatbot", "botName": "subAutoConvAI", #Same as azure bot name "subscriptionId": "SUB_ID", "region": "westus", "appServiceOperatingSystem": "windows", "scmHostDomain": "", "luisResource": "convAIBoth", "settings": { "applicationInsights": { "InstrumentationKey": "", "connectionString": "" }, "cosmosDb": { "cosmosDBEndpoint": "", "authKey": "", "databaseId": "botstate-db", "containerId": "botstate-container" }, "blobStorage": { "connectionString": "", "container": "" }, "luis": { "authoringKey": "", "authoringEndpoint": "", "endpointKey": "", "endpoint": "", "region": "eastus" }, "qna": { "subscriptionKey": "", "endpoint": "" }, "MicrosoftAppId": "APP_ID", #Taken from Azure bot configurations screen "MicrosoftAppPassword": "***" { "name": "convAISubAuto", "environment": "dev", "tenantId": "TENANT_ID", "hostname": "subAutoConvAI", #Same as azure 机器人名称 "runtimeIdentifier": "win-x64", " resourceGroup": "chatbot", "botName": "subAutoConvAI", #Same as azure 机器人名称 "subscriptionId": "SUB_ID", "region": "westus", "appServiceOperatingSystem": "windows", "scmHostDomain": " ", "luisResource": "convAIBoth", "settings": { "applicationInsights": { "InstrumentationKey": "", "connectionString": "" }, "cosmosDb": { "cosmosDBEndpoint": "", "authKey" :“”,“databaseId”:“botstate-db”,“containerId”:“botstate-container”},“blobStorage”:{“connectionString”:“”,“container”:“”},“luis”:{ “authoringKey”:“”,“authoringEndpoint”:“”,“endpointKey”:“”,“endpoint”:“”,“region”:“eastus”},“qna”:{“subscriptionKey”:“”,“ endpoint": "" }, "MicrosoftAppId": "APP_ID", #Taken from Azure bot 配置屏幕 "MicrosoftAppPassword": "***" #Taken from secret generated during app registration } } #取自应用注册过程中生成的秘密 } }

The bot is getting published successfully.该机器人正在成功发布。 However, when i click on "Test in Web Chat" option inside the Azure Bot Resource, i am getting blank screen.但是,当我单击 Azure Bot 资源中的“在 Web 聊天中测试”选项时,我得到了空白屏幕。

Also, inside the configuration for Azure bot... The endpoint mentioned was https://host_name/api/messages.此外,在 Azure bot 的配置中......提到的端点是 https://host_name/api/messages。 I had to mention it as the field was blank.我不得不提到它,因为该字段是空白的。

Is there any issue with my publishing profile's JSON file?我的发布配置文件的 JSON 文件有任何问题吗?

The solution is as follows.解决方法如下。

  1. Do a app registration and generate a secret.进行应用注册并生成密钥。
  2. Create an Azure bot and during the first step, there's an option for "Use existing app registration", inside it mention the app ID and secret (app password)创建一个 Azure 机器人,在第一步中,有一个“使用现有应用注册”选项,其中提到了应用 ID 和密码(应用密码)
  3. Use the same app ID and app Password on the above json file.在上述 json 文件上使用相同的应用 ID 和应用密码。

This solved the issue.这解决了这个问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在 Azure 中发布 Composer 机器人 - Unable to Publish Composer Bot in Azure Terraform 导入现有资源 - Terraform import existing resources Bot 框架编写器无法发布到 Azure LUIS 错误 - Bot framework composer not able to publish to Azure LUIS error 如何将 Composer 上创建的 BOT 发布到 Azure 并使其可供最终用户使用? - How to publish Created BOT on Composer to Azure and Make it available for end user? 使用Terraform导入Azure上的现有资源 - Using Terraform to import existing resources on Azure 我无法将对话框发布到 Azure 'TypeError - 无法读取未定义的属性 'AzureSubscriptionId'” [Bot Composer Framework] - I cannot publish Dialog to Azure 'TypeError - Cannot read property 'AzureSubscriptionId' of undefined" [Bot Composer Framework] Azure Bot Composer 中的 Bot Transcript - Bot Transcript in Azure Bot Composer 将已有的Azure资源导入本地Terraform state文件 - Import existing Azure resources into local Terraform state file 如何在 Functions Apps 中从 Bot Framework Composer 进行部署 - How to deploy from Bot Framework Composer in Functions Apps 如何从 Bot Framework Composer 将文件保存到 Azure 文件共享 - How to save files to Azure File Share from Bot Framework Composer
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM