OfficeDev / teams-toolkit

Developer tools for building Teams apps
Other
451 stars 177 forks source link

Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant #12078

Closed srivatsabs closed 1 month ago

srivatsabs commented 1 month ago

Describe the bug Created sample app from HelloWorld In-meeting app sample by using the sample provided in the teams tool kit. Run npm install - Sucessfull Tried to provision the app.

Getting below error:

[Error] - Failed to Execute lifecycle provision due to failed action: teamsApp/create. TeamsAppCreateConflict:Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue.. Env output: {}

I am global admin of the tenant and all required resource groups are created and while provisioning I am getting this error:

Lifecycle stage: provision(7 step(s) in total). The following actions will be executed: (1/7) Action teamsApp/create: create a Teams app. (2/7) Action arm/deploy: Deploy the given ARM templates to Azure. (3/7) Action azureStorage/enableStaticWebsite: enable static website setting in Azure Storage. (4/7) Action teamsApp/validateManifest: validate a Teams app. (5/7) Action teamsApp/zipAppPackage: build a Teams app package. (6/7) Action teamsApp/validateAppPackage: validate a Teams app. (7/7) Action teamsApp/update: update a Teams app.

[2024-07-27T17:33:28.249Z] [Info] - Executing lifecycle provision [2024-07-27T17:33:38.639Z] [Error] - Failed to Execute lifecycle provision due to failed action: teamsApp/create. TeamsAppCreateConflict:Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue.. Env output: {} [2024-07-27T17:33:38.641Z] [Info] - Execution summary:

Summary: (×) Error: Lifecycle stage provision failed. (×) Error: teamsApp/create failed. (×) Error: Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue. (!) Warning: arm/deploy was not executed. (!) Warning: azureStorage/enableStaticWebsite was not executed. (!) Warning: teamsApp/validateManifest was not executed. (!) Warning: teamsApp/zipAppPackage was not executed. (!) Warning: teamsApp/validateAppPackage was not executed. (!) Warning: teamsApp/update was not executed.

[2024-07-27T17:33:38.683Z] [Error] - code:AppStudioPlugin.TeamsAppCreateConflict, message: Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue. Help link: https://aka.ms/teamsfx-switch-account-or-subscription-help

Earlier I was able to successfully run the provision but from 26th July its not working as expected

microsoft-github-policy-service[bot] commented 1 month ago

Thank you for contacting us! Any issue or feedback from you is quite important to us. We will do our best to fully respond to your issue as soon as possible. Sometimes additional investigations may be needed, we will usually get back to you within 2 days by adding comments to this issue. Please stay tuned.

chiragpgauswami commented 1 month ago

I'm Also Getting Same Issue Do you find any solution ?

image

rupesh-raj1 commented 1 month ago

I am also facing the same issue, this seems to be a problem with app creation on the developer portal.


[2024-07-28T07:38:45.903Z] [Info] - Started local tunneling service in 2.48 seconds.
[2024-07-28T07:38:45.957Z] [Info] - Executing provision 

Lifecycle stage: provision(7 step(s) in total). The following actions will be executed: 
(1/7) Action teamsApp/create: create Teams app.
(2/7) Action botAadApp/create: create a new or reuse an existing bot Microsoft Entra app.
(3/7) Action botFramework/create: creates or updates the bot registration on dev.botframework.com
(4/7) Action teamsApp/validateManifest: validate Teams app.
(5/7) Action teamsApp/zipAppPackage: build Teams app package.
(6/7) Action teamsApp/validateAppPackage: validate Teams app.
(7/7) Action teamsApp/update: update Teams app.

[2024-07-28T07:38:45.958Z] [Info] - Executing lifecycle provision
[2024-07-28T07:38:57.478Z] [Error] - Failed to Execute lifecycle provision due to failed action: teamsApp/create. TeamsAppCreateConflict:Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue.. Env output: {}
[2024-07-28T07:38:57.479Z] [Info] - Execution summary:

Summary:
(×) Error: Lifecycle stage provision failed.
  (×) Error: teamsApp/create failed.
    (×) Error: Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue.
  (!) Warning: botAadApp/create was not executed.
  (!) Warning: botFramework/create was not executed.
  (!) Warning: teamsApp/validateManifest was not executed.
  (!) Warning: teamsApp/zipAppPackage was not executed.
  (!) Warning: teamsApp/validateAppPackage was not executed.
  (!) Warning: teamsApp/update was not executed.

[2024-07-28T07:38:57.519Z] [Error] - code:AppStudioPlugin.TeamsAppCreateConflict, message: Unable to create Teams app, which may be because your app ID is conflicting with another app's ID in your tenant. Click 'Get Help' to resolve this issue.
 Help link: https://aka.ms/teamsfx-switch-tenant
chiragpgauswami commented 1 month ago

Yes i tried All things created new app, deleted all Services and completely started from the new still it will returning me this kind of errors. 2 Day Ago it is Completely working for me but now it is giving me errors.

MathiasZander commented 1 month ago

Same problem here, it worked some days ago.

srivatsabs commented 1 month ago

I'm Also Getting Same Issue Do you find any solution ?

image

No, this morning also I tried and still getting same error.

greigs commented 1 month ago

Same problem here. It does partially create the app, which you can see if you go to https://dev.teams.microsoft.com/apps - and if you copy the app ID into your config, it will try to update on next deploy. However this will fail due to the "Key based authentication is not permitted on this storage account" error that so many other people are having right now. One of those bug reports is here: https://github.com/OfficeDev/teams-toolkit/issues/12067

lior-lew commented 1 month ago

same here. 19 hours and still no fix. this was the last piece of the puzzle.

marios-petrov commented 1 month ago

Yup, I got this and felt insane the entire time trying to fix it. Tried everything imaginable and beyond..... :(

HuihuiWu-Microsoft commented 1 month ago

Duplicated with https://github.com/OfficeDev/teams-toolkit/issues/12089