Prerequisites for deploying Financial document analysis skill for agents (preview)

Important

This is a preview feature. This information relates to a prerelease feature that may be substantially modified before it's released. Microsoft makes no warranties, expressed or implied, with respect to the information provided here.

Before deploying Financial document analysis skill for agents, ensure that your environment meets all the necessary prerequisites:

Prerequisite tasks

You need to perform a few before deploying Financial document analysis skill for agents.

Assign a role to the OpenAI resource

  1. Sign in to the Azure portal with the Owner role.

  2. In the navigation menu, select Access control (IAM).

Screenshot of the Access Control (IAM) page.

  1. Select Add > Add role assignment.

  2. select Cognitive Services OpenAI Contributor and select Next.

Screenshot of the page to add role assignments.

  1. On the Members tab, select Managed identity, followed by + Select members.

  2. Select your OpenAI resource and then select Next, as shown in the following image:

Screenshot of the page to add members for a role.

  1. Select Review + assign, as shown in the following image:

Screenshot of the page to review and assign the role.

  1. Verify that the particular role is assigned.

    a. Return to the OpenAI resource Overview page.

    b. In the navigation menu, select Resource Management > Identity.

    c. Select Azure role assignments to see all the assigned roles.

    Screenshot of the Identity page with the Azure role assignment option.

    d. On the Azure role assignments page, verify whether the Cognitive Services OpenAI Contributor role is assigned to the OpenAI resource.

    Screenshot of the page to verify the role assignment to the OpenAI resource.

Create the app registration

Important

You need to have the Application Administrator role to create the app registration. Learn more at Assign Microsoft Entra roles to users.

  1. Sign in to the Azure portal.

  2. Select Microsoft Entra ID, as shown.

Screenshot of the option to select Microsoft Entra ID

  1. In the navigation menu, select Manage > App registrations, followed by + New registration.

Screenshot of the page to create new app registration

  1. Enter a unique name for the app and then select Register.

Screenshot of the page to register an app

  1. Go to the App registrations page for the app that you registered and select Expose an API.

Screenshot of the page to expose an API

  1. Select + Add a Scope, and add DocQnA.Users. This value is case-sensitive.

  2. Select Add a client application, enter 04b07795-8ddb-461a-bbee-02f9e1bf7b46 as the Client id, and select the checkbox under Authorized scopes. The Client id is the Application ID of the Azure CLI.

    Note

    You also need to add the client ID of your back-end app if you want the app to receive the token on behalf of a user.

  3. Select App roles and add the Users role. This role is critical to access the Document insights API.

Screenshot of the page to add the Users roles

  1. In the navigation menu, select Manage > Manifest and change the requestedAccessTokenVersion value in the manifest file to 2.

Screenshot of the manifest file

  1. Return to the Overview page and select Managed application in the local directory to provide users and groups with permissions to use the app registration.

Screenshot of the overview page with the Managed application option highlighted

  1. Add the users and the groups that need permissions to access the API.

Screenshot of the page to add users and groups

  1. For application permissions, you need to provide the API permissions and add the application with the relevant permission.

Screenshot of the page to add API permissions

Next step

Deploy Financial document analysis skill for agents