Search code examples
microsoft-teamsteams-toolkit

Cannot Provision Teams App due to Storage domain conflict


We have built a Teams Tab using the Teams Toolkit. When attempting to provision in the cloud I see the following error:

[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

I am setting the Application ID URI to https://{tenant}.onmicrosoft.com/{appId}

There is a storage location in azure with {storageName}.z13.web.core.windows.net.

When I click on "Provision in the cloud", the process attempts to change the Application ID URI to api://{storageName}.z13.web.core.window.net/{appId}.

Attempting to change the Application ID URI in the azure portal to api://{storageName}.z13.web.core.window.net/{appId} results in the exact same error as seen in the Provision process.

Do I have to not use the provided storage location in order to provision the app?

Is there a way to create storage at https://{tenant}.onmicrosoft.com/{appId}?


Solution

  • You could follow the document to setup a CDN for your app.

    Then in provision stage, Teams Toolkit uses your CDN domain for the Application ID URI: api://{cdnName}.azureedge.net/{appId}, which should resolve your issue.

    Further more, you could add a custom domain to your CDN if the CDN domain is also regarded as an unverified domain. How to add a custom domain to CDN endpoint