Enable a custom plugin

Completed

In this exercise, you experiment with a custom plugin. You start by checking the owner settings for who can add and manage their own custom plugins and who can add and manage custom plugins for everyone in the organization. Once you have configured the owner settings, you upload the file for your custom plugin. Uploading the files adds the plugin capability to Copilot. Once the plugin is added, you validate that is shows up as a system capability and start using it.

The creation of the YAML or JSON plugin manifest file, which describes metadata about the plugin and how to invoke it, is outside the scope of this content, but you can obtain more information by visiting Create your own custom plugins.

Note

The environment for this exercise is a simulation generated from the product. As a limited simulation, links on a page may not be enabled and text-based inputs that fall outside of the specified script may not be supported. A pop-up message will display stating, "This feature is not available within the simulation." When this occurs, select OK and continue the exercise steps.
Screenshot of pop-up screen indicating that this feature is not available within the simulation.

Exercise

For this exercise, you're logged in as Avery Howard and have the Copilot owner role. You'll work in Microsoft Copilot for Security and will be accessing a GitHub repository to download the sample manifest file for the plugin.

This exercise should take approximately 10 minutes to complete.

Note

When a lab instruction calls for opening a link to the simulated environment, it is generally recommended that you open the link in a new browser window so that you can simultaneously view the instructions and the exercise environment. To do so, select the right mouse key and select the option.

Before you start

For this exercise, you'll be using a sample .yaml file, 'KQL_DefenderExample.yaml.'

  1. Select the link KQL_DefenderExample.yaml to access the sample file.

  2. Select the Download raw file download raw file icon icon. Save the file on your local computer, as you will need it later.

    Alternatively, because this is a simulation, you can create the file named 'KQL_DefenderExample.yaml.' Because this is a simulation, the contents of the file you create won't matter. The system capabilities and prompt responses shown in the simulation, however, are based on the actual file.

Task: Update owner settings for custom plugins

In this task, you configure Copilot so that Copilot owners and contributors can add and manage their own custom plugins and for everyone in the organization.

  1. Open the simulated environment by selecting this link: Microsoft Copilot for Security.

  2. Select the Home menu (hamburger) icon

  3. Select Owner settings.

  4. Under Plugins for Copilot for Security,

    1. Set "Who can add and manage their own custom plugins" to Contributors and owners.
    2. Set "Who can add and manage custom plugins for everyone in the organization" to Contributors and owners.
  5. Return to the landing page. Select Microsoft Copilot for Security next to the home menu (hamburger) icon.

Task: Upload the file for your custom plugin

In this task, you upload the file named, KQL_DefenderExample.yaml, that you downloaded in the 'Before you start' section of this exercise.

  1. From the prompt bar on the Copilot landing page, select the sources icon.

  2. On the Manage sources window, scroll down until you get to the Custom plugins. Select the Add plugin add plugin button button. This opens the Add a plugin window.

  3. In the Add a plugin window, ensure the setting for Who can use this plugin is set to Just me.

  4. For this exercise, select Copilot for Security Plugin as this is the format for the .yaml file of your custom plugin.

  5. From the upload box that appears, select Upload file, then select the file you previously downloaded to your local computer, KQL_DefenderExample.yaml then select Add.

  6. On the custom plugins page, the plugin has been added and is enabled. Note the private tag.

  7. Select the Settings icon. The settings icon shows basic plugin information. Note the name and brief description. This is a basic sample plugin so there are no configuration parameters to configure. If there were API keys or sign-in credentials required for the plugin, this is where they would be configured, like the exercise where you configured the Microsoft Sentinel plugin. Here you can also delete the plugin. Select Cancel to exit the page.

  8. Close the manage sources window by selecting the X on the top right of the window.

Task: Test the custom plugin

In this task, you verify the capability enabled by the plugin can be accessed from the prompts icon and you test it.

  1. From the prompt bar, select the Prompts icon.

  2. Select See all system capabilities.

  3. Scroll all the way down until you get to My sample Defender KQL plugin. Listed below the plugin name is the capability (prompt) enabled by the plugin. Select Get Latest Emails by Recipient to run the prompt. For future reference you can search by this capability (prompt) name.

  4. Enter email address of a user whose email you need to audit: nosv32@woodgrove.ms.

  5. As with any prompt, you can select the response and pin it the pin board, you can share it, edit it, and more.

Review

In this exercise, you enabled a custom plugin by uploading the .yaml file for the plugin and then tested the capability supported by the plugin.