Add purview-developer skill#270
Open
yulcodeoy wants to merge 5 commits intomicrosoft:mainfrom
Open
Conversation
Add a new skill that teaches AI coding agents how to correctly build on the Microsoft Purview Developer Platform, covering: - Microsoft Graph Purview data security and governance APIs - Sensitivity labels, contentActivity, protectionScopes, processContent - Agent Framework Purview middleware (C# and Python) - Decision guidance: when to use Graph APIs vs Agent Framework middleware - Anti-patterns and correct replacements - Working C# and Python examples for all four canonical scenarios Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
|
@yulcodeoy please read the following Contributor License Agreement(CLA). If you agree with the CLA, please reply with the following information.
Contributor License AgreementContribution License AgreementThis Contribution License Agreement (“Agreement”) is agreed to by the party signing below (“You”),
|
Add Scenario 5 covering Agent 365 Observability SDK integration: - Decision table comparing Agent Framework Purview middleware vs A365 SDK - Package references for .NET and Python (all framework extensions) - Blueprint and governance explanation - Updated triggers to include A365/Agent365 keywords - Added 5 new A365 reference URLs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Include full 7-step Agent 365 development lifecycle (build, config, blueprint, deploy, publish, instances, marketplace), local testing guidance (mock tooling servers, Dev Tunnels), and AI-guided setup tip. Add references for dev lifecycle docs and Agent365-Samples repo. Source: https://learn.microsoft.com/en-us/microsoft-agent-365/developer/a365-dev-lifecycle Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Rename Scenario 3 to 'Apply Data Governance and Protection to Your 3P Agent' - Replace full Scenario 5 (A365 SDK) with brief 'Agent 365 and Purview' section covering only the Purview telemetry relationship - Remove A365-specific triggers, packages, lifecycle, and detailed references - Keep pointer to dedicated Agent 365 developer skill for full A365 guidance - Trim A365 references to only Purview-relevant URLs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Fixes identified by review: 1. Auth anti-pattern: .default scope is valid at runtime; real issue is missing Purview permissions in Entra app registration. Rewritten. 2. C# GraphServiceClient: add explicit scopes parameter to all instances. 3. Python SDK: replace invalid lambda config pattern with typed RequestConfiguration; replace raw dicts with typed request body objects (ComputePostRequestBody, ProcessContentPostRequestBody). 4. C# request body types: use fully-qualified generated SDK types (ComputePostRequestBody, ProcessContentPostRequestBody). 5. Permissions table: .User is least privileged for both delegated and app; .All is higher privilege. Added clarifying note. 6. Scenario 1 title: 'Reading and Applying' -> 'Reading Sensitivity Labels' (content only shows listing, not applying). 7. Broken link: replace ../agent-365-developer/SKILL.md with docs URL. 8. Intro: 'three surfaces' -> 'two primary surfaces + A365 telemetry'. 9. ETag caching: clarify flow (cache ETag from compute, pass as If-None-Match to processContent, check protectionScopeState). 10. REST vs SDK naming note added. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new purview-developer skill that teaches AI coding agents how to correctly build on the Microsoft Purview Developer Platform.
Scenarios covered
GET /security/dataSecurityAndGovernance/sensitivityLabelsPOST /users/{id}/dataSecurityAndGovernance/activities/contentActivitiesprotectionScopes/computeandprocessContentAPIsMicrosoft.Agents.AI.Purview(C#) andagent-framework-purview(Python)Key features
References
All content grounded in these authoritative sources: