Skip to content

Using the correct command to delete agent blueprints#44

Merged
LavanyaK235 merged 4 commits intomainfrom
users/kalavany/36002764
Nov 25, 2025
Merged

Using the correct command to delete agent blueprints#44
LavanyaK235 merged 4 commits intomainfrom
users/kalavany/36002764

Conversation

@LavanyaK235
Copy link
Contributor

Using the correct command to delete agent blueprints

Copilot AI review requested due to automatic review settings November 24, 2025 23:57
@LavanyaK235 LavanyaK235 requested review from a team as code owners November 24, 2025 23:57
Josina20
Josina20 previously approved these changes Nov 24, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 DeleteAgentBlueprintAsync method in GraphApiService that uses the specialized Graph API endpoint for agent blueprint deletion
  • Updates CleanupCommand to use the new Graph API method instead of Azure CLI commands
  • Modifies all test files to pass the GraphApiService instance 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

joratz
joratz previously approved these changes Nov 25, 2025
mengyimicro
mengyimicro previously approved these changes Nov 25, 2025
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@LavanyaK235 LavanyaK235 dismissed stale reviews from mengyimicro, joratz, and Josina20 via 1b20824 November 25, 2025 17:18
Copilot AI review requested due to automatic review settings November 25, 2025 17:18
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 4 comments.

@LavanyaK235 LavanyaK235 merged commit 628cf29 into main Nov 25, 2025
2 checks passed
@pontemonti pontemonti deleted the users/kalavany/36002764 branch December 5, 2025 17:26
sellakumaran pushed a commit that referenced this pull request Feb 27, 2026
Co-authored-by: Lavanya Kappagantu <kalavany@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants