Debugging Issues with Custom Teams App in VS Code SDK: AAD ResourceNotFound Error

Brett Henry 0 Reputation points
2025-02-06T01:39:11.8+00:00

I'm currently facing a couple of issues while debugging my Teams app. Here's the context:

Account & Setup:

I'm logged in using an external account, set as Global Admin and Application Admin.

  I have only one Azure subscription, which I've confirmed is present. I'm using the correct subscription and tenant.
  
  **App Registration:**
  
     My `AAD_APP_CLIENT_ID` matches my app registration (created prior to the Teams app).
     
        The `TEAMS_APP_ID` matches the ID of the Teams app Manifest in the developer portal.
        
  1. Error Encountered:
    • When attempting to run debug, I encounter the following error:
           [aadAppUpdate.HttpClientError]: A http client error occurred while performing the aadApp/update task. The error response is: {"error":{"code":"Request_ResourceNotFound","message":"Resource '5xxxxxxf-xxxxx-xxxx-xxxx-xxxxxxxxxxxxxx' does not exist or one of its queried reference-property objects are not present.","innerError":{"date":"2025-02-06T01:23:05","request-id":"xxxxxxxx-9e43-4f9b-8dc7-xxxxxxxxx","client-request-id":"xxxxxxxx-9e43-4f9b-8dc7-xxxxxxxxxxxxa"}}
      
  2. Additional Issue:
    • If I create a new custom app without making any changes, it never shows in the browser during debugging. The console shows 401 errors trying to perform authentication.
    • I've used the command line to verify all my IDs match, and I have access to them.

Has anyone experienced similar issues or have any suggestions on how to resolve them?

Thanks in advance for your help!

Attachment: Image of a Failed Unmodified SDK Tabs Template and failed auth.
msedge_iPpgSIFB7o

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
10,812 questions
Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,540 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.