Skip to content

Conversation

@potatoqualitee
Copy link
Member

Summary

Fixes #9443

This PR adds support for PolyBase and Launchpad service types to Stop-DbaService and Start-DbaService, fixing the issue where Enable-DbaAgHadr -Force would fail on servers with PolyBase installed.

Changes

  • Stop-DbaService: Added PolyBase and Launchpad to ValidateSet for Type parameter
  • Stop-DbaService: Enhanced Force logic to automatically include PolyBase services when stopping Engine
  • Start-DbaService: Added PolyBase and Launchpad to ValidateSet for Type parameter
  • Update-ServiceStatus: Updated warning message to mention PolyBase dependencies
  • Updated help documentation in both functions to reflect new service types

This brings Stop-DbaService and Start-DbaService in line with Get-DbaService and Restart-DbaService which already supported these service types.

Test Plan

  • Verify Stop-DbaService accepts PolyBase and Launchpad as Type values
  • Verify Start-DbaService accepts PolyBase and Launchpad as Type values
  • Verify Enable-DbaAgHadr -Force works on servers with PolyBase installed
  • Verify Stop-DbaService -Force automatically stops PolyBase dependencies when stopping Engine

Generated with Claude Code

…e type support

Fixes #9443

When Enable-DbaAgHadr is run with -Force on servers with PolyBase installed,
the service restart would fail because Stop-DbaService and Start-DbaService
did not recognize PolyBase and Launchpad as valid service types.

Changes:
- Stop-DbaService: Added PolyBase and Launchpad to ValidateSet for Type parameter
- Stop-DbaService: Enhanced Force logic to automatically include PolyBase services when stopping Engine
- Start-DbaService: Added PolyBase and Launchpad to ValidateSet for Type parameter
- Update-ServiceStatus: Updated warning message to mention PolyBase dependencies
- Updated help documentation in both functions to reflect new service types

This brings Stop-DbaService and Start-DbaService in line with Get-DbaService
and Restart-DbaService which already supported these service types.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Chrissy LeMaire <[email protected]>
@niphlod
Copy link
Contributor

niphlod commented Oct 28, 2025

LGTM but i don't have a local instance with polybase to do a quick test.

@potatoqualitee
Copy link
Member Author

same and same 😅

@potatoqualitee potatoqualitee merged commit 996b7e6 into development Oct 29, 2025
15 checks passed
@potatoqualitee potatoqualitee deleted the claude/issue-9443-20251028-0310 branch October 29, 2025 10:11
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.

Enable-DbaAgHadr fails when run on servers with PolyBase installed

2 participants