Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds an --endpoint-only flag to the a365 cleanup blueprint command, enabling users to delete only the messaging endpoint while preserving the blueprint application. This provides more granular control over cleanup operations, particularly useful when troubleshooting endpoint registration issues.
- Adds
--endpoint-onlyoption to the blueprint cleanup command - Implements
ExecuteEndpointOnlyCleanupAsyncmethod to handle endpoint-specific cleanup - Updates error message guidance to reference the new cleanup option
- Adds comprehensive test coverage for the new functionality
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
src/Microsoft.Agents.A365.DevTools.Cli/Commands/CleanupCommand.cs |
Adds --endpoint-only option and implements endpoint-specific cleanup logic with user confirmation |
src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/BlueprintSubcommand.cs |
Updates error message to reference the new cleanup blueprint --endpoint-only command |
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs |
Adds test coverage for the new endpoint-only cleanup functionality including option presence, successful deletion, and error handling scenarios |
src/Microsoft.Agents.A365.DevTools.Cli/Commands/SetupSubcommands/BlueprintSubcommand.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.Agents.A365.DevTools.Cli/Commands/CleanupCommand.cs
Outdated
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Outdated
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Outdated
Show resolved
Hide resolved
tmlsousa
reviewed
Dec 29, 2025
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Show resolved
Hide resolved
tmlsousa
previously approved these changes
Dec 29, 2025
tmlsousa
reviewed
Dec 29, 2025
src/Microsoft.Agents.A365.DevTools.Cli/Commands/CleanupCommand.cs
Outdated
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Outdated
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Outdated
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Outdated
Show resolved
Hide resolved
src/Tests/Microsoft.Agents.A365.DevTools.Cli.Tests/Commands/CleanupCommandTests.cs
Outdated
Show resolved
Hide resolved
mengyimicro
approved these changes
Dec 29, 2025
tmlsousa
approved these changes
Dec 30, 2025
sellakumaran
pushed a commit
that referenced
this pull request
Feb 27, 2026
* Add cleanup for Endpoint only * code review * remove duplicated code * revert * fix tests * fix comments --------- Co-authored-by: Josina Joy <josjoy@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.
Add cleanup for Endpoint only with : a365 cleanup blueprint --endpoint-only