Leggere in inglese Modifica

Condividi tramite

Build your first app using Blazor

Preview your first Teams tab app

You've learned to create, build, and run Teams app with tab capability. The following final steps are to deploy your app on Azure and Preview in Teams:

Let's deploy the first app with tab capability on Microsoft Azure using Teams Toolkit.

To provision your tab app in Azure

  1. Select Project > Teams Toolkit > Provision in the Cloud.

    Screenshot of Visual Studio with Project, Teams Toolkit, and Provision in the Cloud options are highlighted in red.

  2. Enter the subscription and resource group details in the Provision dialog:

    1. Select your Subscription name from the dropdown list.
    2. Select your Resource group from the dropdown list.
    3. If you don't have an existing resource group, you can create a new resource group. To create a new resource group, select New > enter the resource name > select OK. Select a location from the new resource group location dropdown list.
    4. Select Provision.

    Screenshot of Provision with New and Provision highlighted in red.

    A Teams Toolkit warning dialog appears.

  3. Select Provision.

    Screenshot of Teams Toolkit with Provision highlighted in red.

    It takes a few minutes for your resource group to provision in the cloud.

  4. Select OK.

    Screenshot of Teams Toolkit with OK option highlighted in red.

  5. Select View Provisioned Resources to view on Azure portal.

    Screenshot of Teams Toolkit with View Provisioned Resources highlighted in red.

  6. Sign in to your Azure portal.

    Your app-dev-rg appears.

    Screenshot of Blazorapp-dev-rg displaying the Resources provisioned in the Azure portal.

    Your resources are provisioned in the Azure portal.

To deploy your tab app to cloud

  1. Select Project > Teams Toolkit > Deploy to the Cloud....

    Screenshot of Visual Studio with Project, Teams Toolkit, and Deploy to the Cloud options highlighted in red.

  2. Select OK.

    Screenshot shows Teams Toolkit with OK option.

    Your tab app is successfully deployed to the cloud!

To preview your tab app in Teams

  1. Select Project > Teams Toolkit > Preview in Teams.

    Screenshot shows Visual Studio with Project, Teams Toolkit, and Preview in Teams options.

  2. Select Add.

    Screenshot shows Teams displaying the Add option for adding Blazor app.

    Congratulations, your first tab app is running in your Azure environment!

    Screenshot of Microsoft Teams with Your app is running in your Azure environment highlighted in red.

  3. Select Authorize to let your app retrieve user details using Microsoft Graph.

    Screenshot of Microsoft Teams with Authorize option under Personal Tab highlighted in red.

  4. Select Accept.

    Screenshot of Permissions requested displaying the App info.

    Your photograph and details appear in your Personal Tab.

    Screenshot of your Personal Tab displaying basic information.