Skip to content

Add cleanup for Endpoint only#138

Merged
Josina20 merged 6 commits intomainfrom
users/josjoy/endpointcleanup
Dec 30, 2025
Merged

Add cleanup for Endpoint only#138
Josina20 merged 6 commits intomainfrom
users/josjoy/endpointcleanup

Conversation

@Josina20
Copy link
Contributor

Add cleanup for Endpoint only with : a365 cleanup blueprint --endpoint-only

@Josina20 Josina20 requested review from a team as code owners December 29, 2025 20:28
Copilot AI review requested due to automatic review settings December 29, 2025 20:28
@Josina20 Josina20 linked an issue Dec 29, 2025 that may be closed by this pull request
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 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-only option to the blueprint cleanup command
  • Implements ExecuteEndpointOnlyCleanupAsync method 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

tmlsousa
tmlsousa previously approved these changes Dec 29, 2025
Copilot AI review requested due to automatic review settings December 29, 2025 21:38
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 3 out of 3 changed files in this pull request and generated 6 comments.

Copilot AI review requested due to automatic review settings December 29, 2025 21:56
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 3 out of 3 changed files in this pull request and generated 5 comments.

@Josina20 Josina20 merged commit 1e340cc into main Dec 30, 2025
4 of 5 checks passed
@Josina20 Josina20 deleted the users/josjoy/endpointcleanup branch December 30, 2025 19:42
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>
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.

"a365 cleanup azure" does not delete Bot endpoint

5 participants