Missing permissions to prepare app dependencies teams toolkit

Demy Besten (student) 0 Reputation points
2024-11-18T09:04:50.6533333+00:00

I am currently working on a project for a company that wants me to make a teams bot for them, they have provided me with a microsoft account from their orginization but I dont seem to have the needed permissions. I have already made sure the account has the permission to create custom apps. however when i try step 2 from the quick start guide : User's image

I get this error:
Executing provision

Lifecycle stage: provision(8 step(s) in total). The following actions will be executed:

(1/8) Action teamsApp/create: create Teams app.

(2/8) Action aadApp/create: Create a Microsoft Entra app to authenticate users

(3/8) Action file/createOrUpdateJsonFile: Create or update JSON file.

(4/8) Action botFramework/create: creates or updates the bot registration on dev.botframework.com

(5/8) Action teamsApp/validateManifest: validate Teams app.

(6/8) Action teamsApp/zipAppPackage: build Teams app package.

(7/8) Action teamsApp/validateAppPackage: validate Teams app.

(8/8) Action teamsApp/update: update Teams app.

Executing lifecycle provision

Executing action teamsApp/create in lifecycle provision

Teams app with id 8627a897-a266-41ae-9fae-fe8675bff626 already exists, skipped creating a new Teams app.

Action teamsApp/create in lifecycle provision succeeded with output {"TEAMS_APP_ID":"8627a897-a266-41ae-9fae-fe8675bff626","TEAMS_APP_TENANT_ID":"4b1f17f7-26f6-4624-a58c-2bc917bae8f3"}

Executing action aadApp/create in lifecycle provision

Executing action aadApp/create

Environment variable BOT_ID does not exist, creating a new Microsoft Entra app...

Unable to execute action aadApp/create. Error message: {"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2024-11-18T09:00:26","request-id":"33f3723f-daa0-4eb3-a352-cfe9d179fc4f","client-request-id":"33f3723f-daa0-4eb3-a352-cfe9d179fc4f"}}}

Failed to Execute lifecycle provision due to failed action: aadApp/create. HttpClientError:A http client error occurred while performing the aadApp/create task. The error response is: {"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2024-11-18T09:00:26","request-id":"33f3723f-daa0-4eb3-a352-cfe9d179fc4f","client-request-id":"33f3723f-daa0-4eb3-a352-cfe9d179fc4f"}}}. Env output: {"TEAMS_APP_ID":"8627a897-a266-41ae-9fae-fe8675b...

Execution summary:

Summary:

(×) Error: Lifecycle stage provision failed.

(√) Done: teamsApp/create was executed successfully.

(√) Done: Teams app with id 8627a897-a266-41ae-9fae-fe8675bff626 already exists, skipped creating a new Teams app.
```  (×) Error: aadApp/create failed.

(×) Error: A http client error occurred while performing the aadApp/create task. The error response is: {"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2024-11-18T09:00:26","request-id":"33f3723f-daa0-4eb3-a352-cfe9d179fc4f","client-request-id":"33f3723f-daa0-4eb3-a352-cfe9d179fc4f"}}}


  (!) 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.

{

  "errorType": "UserError",

  "source": "aadAppCreate",

  "name": "HttpClientError",

  "message": "A http client error occurred while performing the aadApp/create task. The error response is: {\"error\":{\"code\":\"Authorization_RequestDenied\",\"message\":\"Insufficient privileges to complete the operation.\",\"innerError\":{\"date\":\"2024-11-18T09:00:26\",\"request-id\":\"33f3723f-daa0-4eb3-a352-cfe9d179fc4f\",\"client-request-id\":\"33f3723f-daa0-4eb3-a352-cfe9d179fc4f\"}}}",

  "stack": "HttpClientError: A http client error occurred while performing the aadApp/create task. The error response is: {\"error\":{\"code\":\"Authorization_RequestDenied\",\"message\":\"Insufficient privileges to complete the operation.\",\"innerError\":{\"date\":\"2024-11-18T09:00:26\",\"request-id\":\"33f3723f-daa0-4eb3-a352-cfe9d179fc4f\",\"client-request-id\":\"33f3723f-daa0-4eb3-a352-cfe9d179fc4f\"}}}\n    at CreateAadAppDriver.executeInternal (C:\\snapshot\\server\\lib\\index.js)\n    at process.pr...

  "innerError": {

"message": "Request failed with status code 403",

"name": "AxiosError",

"stack": "AxiosError: Request failed with status code 403\n at settle (C:\snapshot\server\lib\index.js)\n at Unzip.handleStreamEnd (C:\snapshot\server\lib\index.js)\n at Unzip.emit (node:events:549:35)\n at endReadableNT (node:internal/streams/readable:1359:12)\n at process.processTicksAndRejections (node:internal/process/task_queues:82:21)\n at Axios.request (C:\snapshot\server\lib\index.js)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)...

"config": {

"transitional": {

"silentJSONParsing": true,

"forcedJSONParsing": true,

"clarifyTimeoutError": false

},

"adapter": [

"xhr",

"http",

"fetch"

],

"transformRequest": [

null

],

"transformResponse": [

null

],

"timeout": 0,

"xsrfCookieName": "XSRF-TOKEN",

"xsrfHeaderName": "X-XSRF-TOKEN",

"maxContentLength": -1,

"maxBodyLength": -1,

"env": {},

"headers": {

"Accept": "application/json, text/plain, */*",

"Content-Type": "application/json",

"Authorization": "Bearer eyJ0eXAiOiJKV1QiLCJub25jZSI6InFXTlpoenZILV92QnNPOTZOWFNpWUs0WEI4UV9kRWhUaXdNWGVaYlNLX0UiLCJhbGciOiJSUzI1NiIsIng1dCI6Inp4ZWcyV09OcFRrd041R21lWWN1VGR0QzZKMCIsImtpZCI6Inp4ZWcyV09OcFRrd041R21lWWN1VGR0QzZKMCJ9.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC80YjFmMTdmNy0yNmY2LTQ2MjQtYTU4Yy0yYmM5MTdiYWU4ZjMvIiwiaWF0IjoxNzMxOTIwMTI1LCJuYmYiOjE3MzE5MjAxMjUsImV4cCI6MTczMTkyNDMxNCwiYWNjdCI6MCwiYWNyIjoiMSIsImFpbyI6IkFWUUFxLzhZQUFBQUFpM3NBd2x2Qk...

"User-Agent": "axios/1.7.5",

"Content-Length": "74",

"Accept-Encoding": "gzip, compress, deflate, br"

},

"baseURL": "https://graph.microsoft.com/v1.0",

"method": "post",

"url": "applications",

"data": "{"displayName":"TeamsAppTestlocal","signInAudience":"AzureADMultipleOrgs"}",

"axios-retry": {

"retryCount": 0,

"lastRequestTime": 1731920400773

}

},

"code": "ERR_BAD_REQUEST",

"status": 403


  "userData": null,

  "timestamp": "2024-11-18T09:00:01.384Z",

  "displayMessage": "A http client error occurred while performing the aadApp/create task. The error response is: {\"error\":{\"code\":\"Authorization_RequestDenied\",\"message\":\"Insufficient privileges to complete the operation.\",\"innerError\":{\"date\":\"2024-11-18T09:00:26\",\"request-id\":\"33f3723f-daa0-4eb3-a352-cfe9d179fc4f\",\"client-request-id\":\"33f3723f-daa0-4eb3-a352-cfe9d179fc4f\"}}}",

  "helpLink": "https://aka.ms/teamsfx-actions/aadapp-create",

  "issueLink": null

}

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,369 questions
{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.