Skip to content

microsoftgraph/msgraph-connector-agent-sample

Repository files navigation

Microsoft Graph connector agent sample

dotnet build License.

Microsoft Graph connectors let you add your own data to the semantic search index and have it power various Microsoft 365 experiences. This .NET application shows you how to use the Microsoft Graph connector agent and the Microsoft Graph connectors SDK to create a custom connector that indexes items from a sample appliance parts inventory. This connector sample powers experiences such as Microsoft Search, Copilot in Teams, the Microsoft 365 App, and more.

Prerequisites

Configure the sample

  1. Generate a new GUID to use as the connector ID for your connector. You can use PowerShell to generate a GUID with the following command.

    [guid]::NewGuid()
  2. Open appsettings.json and add the following, replacing YOUR_CONNECTOR_ID_HERE with the GUID you generated.

    "Connector": {
      "ConnectorUniqueId": "YOUR_CONNECTOR_ID_HERE"
    }

Configure the Microsoft Graph connector agent

See for steps to configure the agent and test the connector.

Publish the connector

See for steps to publish the connector.

Code of conduct

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Trademarks

This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.

About

This .NET application shows how to use the Microsoft Graph connector agent to create a connection to the Microsoft Search service and index custom items.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages