Using the correct command to delete agent blueprints#44
Merged
LavanyaK235 merged 4 commits intomainfrom Nov 25, 2025
Merged
Conversation
Josina20
previously approved these changes
Nov 24, 2025
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the agent blueprint deletion functionality to use the correct Graph API endpoint (microsoft.graph.agentIdentityBlueprint) instead of the standard Azure CLI command. The change enables proper deletion of agent blueprint applications which require special handling with the AgentIdentityBlueprint.ReadWrite.All permission scope.
- Introduces a new
DeleteAgentBlueprintAsyncmethod inGraphApiServicethat uses the specialized Graph API endpoint for agent blueprint deletion - Updates
CleanupCommandto use the new Graph API method instead of Azure CLI commands - Modifies all test files to pass the
GraphApiServiceinstance to cleanup commands
Reviewed changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
| src/Microsoft.Agents.A365.DevTools.Cli/Services/GraphApiService.cs | Adds DeleteAgentBlueprintAsync method with special agentIdentityBlueprint endpoint and interactive authentication flow |
| src/Microsoft.Agents.A365.DevTools.Cli/Commands/CleanupCommand.cs | Updates blueprint cleanup logic to call the new Graph API method instead of Azure CLI, adds GraphApiService parameter throughout |
| src/Microsoft.Agents.A365.DevTools.Cli/Program.cs | Passes GraphApiService to CleanupCommand.CreateCommand |
| src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs | Updates all test methods to instantiate and pass GraphApiService to CleanupCommand.CreateCommand |
src/Microsoft.Agents.A365.DevTools.Cli/Commands/CleanupCommand.cs
Outdated
Show resolved
Hide resolved
joratz
previously approved these changes
Nov 25, 2025
mengyimicro
previously approved these changes
Nov 25, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1b20824
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Services/GraphApiService.cs
Outdated
Show resolved
Hide resolved
…t/Agent365-devTools into users/kalavany/36002764
joratz
approved these changes
Nov 25, 2025
Josina20
approved these changes
Nov 25, 2025
sellakumaran
pushed a commit
that referenced
this pull request
Feb 27, 2026
Co-authored-by: Lavanya Kappagantu <kalavany@microsoft.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.
Using the correct command to delete agent blueprints