Skip to main content

Module 6 - Setup the Knowledgebase

In the module we will provision an Azure Storage Account that will hold our operations manual / knowledgebase that will be used by the Logic Apps Agent Loop to determine the actions our agent performs.

  1. Search for and Navigate to Storage Accounts

    Search Storage Accounts

  2. Create a new storage account by clicking + Create

    Create New Storage Account

  3. Configure the new storage account as follows:

    • Resource Groups: logic-apps-ai-agents-rg
    • Storage Account: logicappsaiagentkb<your-initials|date> (Storage account name needs to be globally unique)
    • Redundancy: Locally-redundant storage (LRS)
    • Click Review + Create
    • Click Create

    Configure New Storage Account

  4. Expand Data Storage and select Containers in the left side feature options for your storage account:

    Storage Account Containers

  5. Configure a new container as follows:

    • Name: playbooks
    • Click: Create

    Create new container

  6. Upload the playbook to the container by cliking Upload

    Upload playbook

  7. Download the knowledge base - Agent in a Day - Operational Runbook.docx

  8. Navigate to the location on your machine where you downloaded the Agent in a Day - Operational Runbook.docx file, select it, then click Upload

    Upload Contoso Energy - Operational Runbook

    Once successfully upload you will receive the following message:

    Blob Upload Successful

    And now be able to see the file displayed for the playbooks container:

    Playbook blob listing

Configure Access to the Storage Account

We will need to grant the Logic Apps instance access to read the blobs in our storage account. We will use Managed Identity for this purpose as it simplifies assigning access and does not require the use of security keys. To learn more about Managed Identities, please see the following article: Managed Identities for Azure resources.

  1. Navigate to the Access Control (IAM) settings fo the Storage Account

    Storage Account Access Control IAM

  2. Select the role to add

    • Select Add -> Add Role Assignment
    • Search for and select the Storage Blob Data Reader role
    • Click Next

    Add role assignment

  3. Select the Managed Identity to be granted the access

    • Select Managed Identity
    • Click + Select Members

    Managed Identity

  4. Select the Logic App created in earlier module

    • In the Managed Identity dropdown, select Logic Apps(Standard)
    • Select the Logic App created in the earlier module

    Logic Apps Managed Identity

    • Click Select
    • Click Close