Bewerken

Delen via


Add cloud resources to Teams app

Microsoft Teams Toolkit allows you to provision the cloud resources for hosting your app. You can add the cloud resources according to your development needs. The advantage of adding more cloud resources in TeamsFx is that you can autogenerate all configuration files and connect to Microsoft Teams app by using Teams Toolkit.

Note

If you've created SharePoint Framework (SPFx) based tab project, you can't add Azure cloud resources.

Add cloud resources

You can add cloud resources in the following ways:

To add cloud resources by using Teams Toolkit in Microsoft Visual Studio Code

  1. Open your Teams app project in Visual Studio Code.

  2. Select Teams Toolkit from the Visual Studio Code activity bar.

  3. Select View How-to Guides in the DEVELOPMENT section.

    Screenshot shows the option to select View How-to Guides under Development.

  4. From the dropdown list that appears, select the cloud service integration you want to add to your app. You're redirected to the respective How-to Guide.

    Screenshot shows the Cloud service integration options in View How-to Guides.

    Cloud service integration How-to Guide
    Integrate with Azure Functions How to Integrate Azure Functions with your Teams app
    Integrate with Azure SQL Database How to Integrate Azure SQL Database with your Teams app
    Integrate with Azure API Management How to Integrate Azure API Management with your Teams App and export the API to power app
    Integrate with Azure Key Vault How to Integrate Azure Key Vault with your Teams app

To add cloud resources by using Command Palette

  1. Open your Teams app project in Visual Studio Code.

  2. Select View > Command Palette... or Ctrl+Shift+P.

    Screenshot shows the Command Palette option under View.

  3. Enter How-to Guides and select Teams:View How-to Guides from the list.

    Screenshot shows the selection of View how-to guides from the list.

  4. From the dropdown list that appears, select the capability you want to add to your app. You're redirected to the respective How-to Guide.

    Screenshot shows the capabilities in View How-to Guides list.

    Cloud service integration How-to Guide
    Integrate with Azure Functions How to Integrate Azure Functions with your Teams app
    Integrate with Azure SQL Database How to Integrate Azure SQL Database with your Teams app
    Integrate with Azure API Management How to Integrate Azure API Management with your Teams App and export the API to power app
    Integrate with Azure Key Vault How to Integrate Azure Key Vault with your Teams app

See also