Forum Discussion

PedroKlein's avatar
PedroKlein
Copper Contributor
Mar 12, 2024

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?

 

 

  • PedroKlein - 

    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. 

    • PedroKlein's avatar
      PedroKlein
      Copper 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-MSFT's avatar
        Prasad_Das-MSFT
        Icon for Microsoft rankMicrosoft

        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:

        1. Sign in to Azure Portal: Go to Azure Portal and sign in with your account that has the necessary permissions.

        2. Navigate to App Registrations: Once signed in, navigate to the Azure Active Directory section.

        3. Create a New App Registration: Click on App registrations and then select New registration.

        4. Configure the App Registration:

        5. Add API Permissions:

          • In the API Permissions section, click on Add a permission.
          • Search for the necessary permissions related to your Teams application.
        6. Grant Consent:

          • Ensure to select the required permissions, such as user_impersonation.
          • Grant admin consent if necessary.
        7. Generate Client Secret:

          • In the Certificates & Secrets page, create a new client secret and save the value for later use.
        8. 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. 

Resources