SOLVED

Develop Teams App without Microsoft 365 Developer Program sandbox subscription

Copper Contributor

Hello, I have a requirement to develop a Teams App for my company, but there is currently an issue with the Microsoft 365 Developer Program sandbox subscription and I am unable to sign up for it.

 

Link to the issue:
https://devblogs.microsoft.com/microsoft365dev/stay-ahead-of-the-game-with-the-latest-updates-to-the...

 

How can I develop a Teams App without the sandbox?

An admin has turned on the settings in Teams Admin (link below) for me.

 

https://learn.microsoft.com/en-us/microsoftteams/platform/concepts/build-and-test/prepare-your-o365-...

 

And I have logged in in Teams Toolkit but when I try and debug the app I get the following error.

 

[Error] - code:botAadAppCreate.HttpClientError, message: A http client error happened while performing the botAadApp/create task. The error response is: {"error":{"code":"Authorization_RequestDenied","message":"Insufficient privileges to complete the operation.","innerError":{"date":"2024-02-19T11:50:37","request-id":"cedb9c9e-51ab-4caf-a4c2-7accb633fb96","client-request-id":"cedb9c9e-51ab-4caf-a4c2-7accb633fb96"}}}
 Help link: https://aka.ms/teamsfx-actions/botaadapp-create

 

Any help would be greatly appreciated.

 

Thank you.

4 Replies
best response confirmed by Steev Pierce (Copper Contributor)
Solution

@Steev Pierce - You can develop a Teams app without the sandbox. You can use the Teams Toolkit in Visual Studio Code to create a new app . The Teams Toolkit provides a “zero-configuration” approach to the developer experience, with integrated Identity, access to cloud storage, data from Microsoft Graph, and other services in Azure and Microsoft 365.

The error message you are encountering, "Authorization_RequestDenied - Insufficient privileges to complete the operation," indicates that the user does not have the required permissions to create an app in Azure Active Directory. Ensure that the user has either the Application Administrator or Application Developer role assigned. These roles provide the necessary permissions to create apps in Azure Active Directory.

 

 

 

Thanks, 

Prasad Das

------------------------------------------------------------------------------------------ 

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

@Prasad_Das-MSFT, Thank you for your reply. I will get the role assigned.
So to debug the app, we need the subscription for microsoft entra ID?

@XDeveloper29 - Yes you need to have subscription for microsoft entra ID for debugging.

1 best response

Accepted Solutions
best response confirmed by Steev Pierce (Copper Contributor)
Solution

@Steev Pierce - You can develop a Teams app without the sandbox. You can use the Teams Toolkit in Visual Studio Code to create a new app . The Teams Toolkit provides a “zero-configuration” approach to the developer experience, with integrated Identity, access to cloud storage, data from Microsoft Graph, and other services in Azure and Microsoft 365.

The error message you are encountering, "Authorization_RequestDenied - Insufficient privileges to complete the operation," indicates that the user does not have the required permissions to create an app in Azure Active Directory. Ensure that the user has either the Application Administrator or Application Developer role assigned. These roles provide the necessary permissions to create apps in Azure Active Directory.

 

 

 

Thanks, 

Prasad Das

------------------------------------------------------------------------------------------ 

If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate. 

View solution in original post