All samples

Simulate creating a Microsoft Graph connector and its schema

This sample contains a Dev Proxy mock file that simulates responses for creating a Microsoft Graph connector and provisioning its schema. Provisioning Graph connector schema is a long-running operation, and to simulate checking the status of the provisioning operation, the mock uses simulating the n-th request feature of the Developer Proxy.

Waldek Mastykarz

Simulate creating a Microsoft Graph connector and its schema

Summary

This sample contains a Dev Proxy mock file that simulates responses for creating a Microsoft Graph connector and provisioning its schema. Provisioning Graph connector schema is a long-running operation, and to simulate checking the status of the provisioning operation, the mock uses simulating the n-th request feature of the Developer Proxy.

Dev Proxy simulating rate limiting on Microsoft Graph APIs

Compatibility

Dev Proxy v2.1.0

Contributors

Version history

VersionDateComments
1.7February 4, 2026Updated to Dev Proxy v2.1.0
1.6January 18, 2026Moved config files to .devproxy folder
1.5January 5, 2026Updated to Dev Proxy v2.0.0
1.4June 27, 2025Updated to Dev Proxy v0.29.2
1.3January 11, 2024Updated to new format
1.2December 22, 2023Updated to new format
1.1November 14, 2023Renamed to Dev Proxy
1.0October 5, 2023Updated sample to use PATCH for creating the schema
1.0September 8, 2023Initial release

Minimal path to awesome

  • Get the sample:
    • Download just this sample:

      npx gitload-cli https://github.com/pnp/proxy-samples/tree/main/samples/microsoft-graph-connector

      or

    • Download as a .ZIP file and unzip it, or

    • Clone this repository

  • Start Dev Proxy specifying the path to the mock file, eg. devproxy --mocks-file microsoft-graph-connector.json

Features

This mock file simulates Microsoft Graph API responses for:

  • creating a Microsoft Graph connector
  • creating a Microsoft Graph connector schema
  • checking the status of the schema provisioning operation
  • completing the schema provisioning operation with a success

For more information about mocking requests see the documentation.

Help

We do not support samples, but this community is always willing to help, and we want to improve these samples. We use GitHub to track issues, which makes it easy for community members to volunteer their time and help resolve issues.

You can try looking at issues related to this sample to see if anybody else is having the same issues.

If you encounter any issues using this sample, create a new issue.

Finally, if you have an idea for improvement, make a suggestion.

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.