purview-api-samples
AGENTS.md16 starsChanged 5 months agoMITView on GitHub
Short router / table of contents for humans and coding agents. This repo is a multi-sample collection of independent Microsoft Purview developer samples — there is no single buildable service. Each sample is self-contained with its own README, prerequisites, and run instructions. Samples that show how to call the Microsoft Purview APIs in Microsoft Graph to support data security, compliance, and governance. See README.md for the canonical sample list. See docs/conventions.md for observed code-style and structure conventions, and CONTRIBUTING.md for…
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repositoryOne other file it gives its agents.
- .github/copilot-instructions.mdCopilot instructions
The file
We split this AGENTS.md into the rules it gives an agent
5 rules. About 0 are common, 1 is distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 35
Run scripts/verify.ps1 — parses every PowerShell script, byte-checks JSON samples, compiles the Python sources, and (when the .NET SDK is …
- Very specific: line 46
Every PR and ADO work item must follow the tagging rules in .github/instructions/telemetry.instructions.md.
- Distinctive: line 52
Keep changes scoped to a single sample where possible.
- Very specific: line 54
Never commit real tenant IDs, client secrets, or cloud credentials — see .gitignore and .env.example.
- Very specific: line 56
Keep PRs small and reviewable (see .github/copilot-instructions.md).
≈ “Common” is an estimate: at least 1 in 5 of the 43,423 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
AGENTS.md — Repo router for microsoft/purview-api-samples
Short router / table of contents for humans and coding agents. This repo is a multi-sample collection of independent Microsoft Purview developer samples — there is no single buildable service. Each sample is self-contained with its own README, prerequisites, and run instructions.
What this repo is
Samples that show how to call the Microsoft Purview APIs in Microsoft Graph to
support data security, compliance, and governance. See README.md
for the canonical sample list.
Samples (entry points)
| Sample | Stack | Entry point | Docs |
| AWSBedrock | Python 3.12 (AWS Lambda) + browser MSAL frontend + CloudFormation | AWSBedrock/lambda/lambda_function.py, AWSBedrock/frontend/serve.py | AWSBedrock/README.md |
| DLPforCustomAIApps | PowerShell 7+ | DLPforCustomAIApps/Create-DlpPolicyForCustomAIApps.ps1 | DLPforCustomAIApps/README.md |
| Foundry | Windows PowerShell 5.1 / PowerShell 7+ (Az.Accounts) | Foundry/EnableFoundryPurview.ps1 | Foundry/README.md |
| Postman Collection | Postman / JSON | Postman Collection/DSPM4AI_API_postman_collection.json | Postman Collection/README.MD |
| dotnet/Desktop | .NET 8 WPF (net8.0-windows) | dotnet/Desktop/Purview API Explorer.sln | dotnet/Desktop/README.MD |
Conventions
See docs/conventions.md for observed code-style and
structure conventions, and CONTRIBUTING.md for the CLA and
Code of Conduct process.
Verification / Definition of Done
This repo has no CI pipeline and no single build. Use the repo-level verify loop to sanity-check all samples without deploying any of them:
- Run
scripts/verify.ps1— parses every PowerShell script, byte-checks JSON samples, compiles the Python sources, and (when the .NET SDK is available) builds the WPF solution. - See
docs/build-and-test.mdfor the per-sample build/test/run commands (the documented form of the verify loop).
A change is done when scripts/verify.ps1 passes and the touched sample's
own README steps still hold.
PR conventions / telemetry (mandatory)
Every PR and ADO work item must follow the tagging rules in
.github/instructions/telemetry.instructions.md.
Apply the required labels and the description footer block on every turn.
Guardrails for agents
- Keep changes scoped to a single sample where possible; do not refactor across samples in one PR.
- Never commit real tenant IDs, client secrets, or cloud credentials — see
.gitignoreand.env.example. Use placeholders. - Keep PRs small and reviewable (see
.github/copilot-instructions.md).
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

