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.
- The .NET SDK installed on your Windows development machine (Windows 10 or later, or Windows Server 2016 or later).
- You should have a Microsoft work or school account with the Global administrator role. If you don't have a Microsoft account, you can sign up for the Microsoft 365 Developer Program to get a free Microsoft 365 subscription.
- The Microsoft Graph connector agent installed on your development machine.
-
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()
-
Open appsettings.json and add the following, replacing
YOUR_CONNECTOR_ID_HERE
with the GUID you generated."Connector": { "ConnectorUniqueId": "YOUR_CONNECTOR_ID_HERE" }
See for steps to configure the agent and test the connector.
See for steps to publish the connector.
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.
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.