Forum Discussion
How to create a teams app id?
Hi,
When using the Teams Toolkit vs code extension to create a teams application it runs the action teamsApp/create on provision, this is what generates the teams app id right? but where is this created? is it an app registration like botAadApp/create action creates to bind to a azure bot service? How can I manually create this teams app id on azure portal?
- Prasad_Das-MSFTMicrosoft
When using the Teams Toolkit extension in Visual Studio Code to create a Teams application, the
teamsApp/create
action is indeed responsible for generating the Teams App ID.The Teams App ID is not created as an app registration like the
botAadApp/create
action does to bind an Azure Bot Service. Instead, the Teams App ID is automatically generated and associated with your Teams application during the provisioning process within the Teams Developer Portal.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.
- PedroKleinCopper Contributor
Hey Prasad_Das-MSFT, thanks for the quick reply. So the teams app id is just a random generated uuid v4? I ask this because I'm not 100% sure on how to do that step manually, should I just create a new app on the Teams Developer Portal? And by doing so won't this bind the app to my account? What should be the correct way to create the app for a productive scenario? Will it always be bind to a user account?
- Prasad_Das-MSFTMicrosoft
PedroKlein - When you use Teams toolkit, this app id automatically gets created.
If you wish to manually create the Teams App ID in the Azure portal, you can follow these steps:
-
Sign in to Azure Portal: Go to Azure Portal and sign in with your account that has the necessary permissions.
-
Navigate to App Registrations: Once signed in, navigate to the Azure Active Directory section.
-
Create a New App Registration: Click on App registrations and then select New registration.
-
Configure the App Registration:
- Set the application name.
- Add the Web redirect URI to
https://global.consent.azure-apim.net/redirect
. - Select both Access Tokens and ID tokens in the Implicit Grant and hybrid flows section.
-
Add API Permissions:
- In the API Permissions section, click on Add a permission.
- Search for the necessary permissions related to your Teams application.
-
Grant Consent:
- Ensure to select the required permissions, such as
user_impersonation
. - Grant admin consent if necessary.
- Ensure to select the required permissions, such as
-
Generate Client Secret:
- In the Certificates & Secrets page, create a new client secret and save the value for later use.
-
Copy Application (Client) ID:
- In the application Overview page, copy the Application (client) ID and save it for future reference.
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.
-