Simple RAG Consumption with Microsoft Teams AI Agent > Using the Simple RAG Consumption with Microsoft Teams AI Agent recipe > Step 4. Configure and publish the Microsoft Teams connection
  

Step 4. Configure and publish the Microsoft Teams connection

Configure the OAuth authentication details and the Microsoft graph API version to connect to the Microsoft Teams instance, and then publish the MicrosoftTeamsAIAgentConnection connection.
  1. 1Open the MicrosoftTeamsAIAgentConnection connection.
  2. 2From the Type list, select Microsoft Teams.
  3. 3From the Runtime Environment list, select Cloud Server or any Secure Agent.
  4. 4From the Authentication Type list, select OAuth2 and enter values for the following properties:
  5. Property
    Description
    Authorization URL
    Required. Enter the OAuth authorization URL for the OAuth provider to authorize the user request.
    For example: https://login.microsoftonline.com/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx/oauth2/v2.0/authorize
    Token Request URL
    Required. Enter the OAuth token request URL that handles token requests.
    For example: https://login.microsoftonline.com/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/oauth2/v2.0/token
    The expiration of the refresh token depends on the OAuth provider. You must re-authenticate and publish the connection before the token expires.
    Note: The refresh token doesn't apply to agents and agent groups.
    Client ID
    Required. Specify the identifier value from the OAuth provider.
    Client Secret
    Required. Enter the client secret to connect to the email application.
    Scope
    Required. Specify the scope. The scope in OAuth authentication limits an application's access to a user's account. You can select multiple scopes for a single client. To enter multiple scopes, separate each value with a space. For example, Channel.Create Channel.Delete.All Channel.ReadBasic.All ChannelMember.Read.All email offline_access Group.Read.All Group.ReadWrite.All.
    Authorization Status
    Indicates the current status, the name of the user who authorized, and the last time when the authorization was completed.
    Authorize Access
    Click to initiate the authorization workflow using OAuth.
  6. 5In the Connection Properties section, enter the Microsoft graph API version in the API_Version property. The API version is used to create a Microsoft Teams connection. For example, v1.0.
  7. 6Save and publish the connection.