【问题标题】:Cannot Provision Teams App due to Storage domain conflict由于存储域冲突,无法预配 Teams 应用
【发布时间】:2021-11-28 16:09:14
【问题描述】:

我们使用 Teams Toolkit 构建了一个 Teams 选项卡。尝试在云中进行配置时,我看到以下错误:

[Error] - Failed to update Application ID URI in Azure Active Directory. Please refer to the help link for further steps., Request failed with status code 500 Detailed error: Request failed with status code 500. Reason: Values of identifierUris property must use a verified domain of the organization or its subdomain: '{storageName}.z13.web.core.windows.net

我将应用程序 ID URI 设置为 https://{tenant}.onmicrosoft.com/{appId}

Azure 中有一个存储位置,{storageName}.z13.web.core.windows.net

当我点击“云端供应”时,进程会尝试将应用程序 ID URI 更改为 api://{storageName}.z13.web.core.window.net/{appId}

尝试将 Azure 门户中的应用程序 ID URI 更改为 api://{storageName}.z13.web.core.window.net/{appId} 会导致与预配过程中看到的完全相同的错误。

我是否必须使用提供的存储位置来配置应用程序?

有没有办法在https://{tenant}.onmicrosoft.com/{appId} 创建存储?

【问题讨论】:

  • 您如何在云中进行配置?您是否使用 ARM 模板来创建资源?如果是,您可以参考下面的 ARM 模板:github.com/OfficeDev/microsoft-teams-apps-faqplus/blob/master/…
  • 看起来您使用的应用程序 ID URI 格式错误。它应该如下所示: api://app Domain/{BotID} 示例: api://newhireonbxxx.azuredfd.net/c6c1f32b-xxxx-49xx-xxxx-753cc1d563b7
  • 我正在使用 Visual Studio Code 的 Teams Toolkit 扩展,并单击“部署”下的“云端供应”选项。没有botId。我使用的 ID 是 Azure App ID。
  • identifierUris 是用户定义的 URI,用于在其 Azure AD 租户内或在经过验证的自定义域(如果应用程序是多租户)内唯一标识 Web 应用程序。您能否重新验证应用程序的 identifierUris 是否驻留在租户中?请参考下面这个问题,它在类似的行:github.com/MicrosoftDocs/windows-uwp/issues/1717

标签: microsoft-teams teams-toolkit


【解决方案1】:

您可以关注document 为您的应用设置 CDN。

然后在配置阶段,Teams Toolkit 将您的 CDN 域用于应用程序 ID URI:api://{cdnName}.azureedge.net/{appId},这应该可以解决您的问题。

此外,如果 CDN 域也被视为未经验证的域,您可以将自定义域添加到您的 CDN。 How to add a custom domain to CDN endpoint

【讨论】:

  • 谢谢!它比那个帮助的想法多走了几步,但它引导我走上了正确的道路。
【解决方案2】:

我是 Microsoft Teams Toolkit 的开发人员,感谢您试用我们的新 Toolkit。此错误可能是因为 Azure AD 应用在“支持的帐户类型”中设置为 MultiTenant。

目前不支持多租户 Azure AD 应用。您可以按照以下步骤将 Azure AD 应用切换到 SingleTenant。

  1. 打开 Azure Protal (https://portal.azure.com/#blade/Microsoft_AAD_IAM/ActiveDirectoryMenuBlade/RegisteredApps)
  2. 点击“应用注册”并找到您的应用
  3. 点击“Authentication”,在“Supported account types”中选择SingleTenant

【讨论】:

  • 为什么不允许 Teams 选项卡成为多租户?我们如何部署应用程序以供 Teams 中的任何人作为单租户使用?
  • Azure AD 应用不允许存储端点作为应用 ID Uri。如果需要支持多租户,可以按照上面智杰提供的解决方案。谢谢!
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 2021-09-02
  • 1970-01-01
  • 2011-02-19
  • 2020-08-08
  • 1970-01-01
  • 1970-01-01
  • 2012-12-01
相关资源
最近更新 更多