Skip to content

Sync-DbaAvailabilityGroup: Enhance handling of dedicated admin connections#10163

Merged
potatoqualitee merged 1 commit intodevelopmentfrom
dac_Sync-DbaAvailabilityGroup
Feb 16, 2026
Merged

Sync-DbaAvailabilityGroup: Enhance handling of dedicated admin connections#10163
potatoqualitee merged 1 commit intodevelopmentfrom
dac_Sync-DbaAvailabilityGroup

Conversation

@andreasjordan
Copy link
Collaborator

Type of Change

  • Bug fix (non-breaking change, fixes # )
  • New feature (non-breaking change, adds functionality, fixes # )
  • Breaking change (affects multiple commands or functionality, fixes # )
  • Ran manual Pester test and has passed (Invoke-ManualPester)
  • Adding code coverage to existing functionality
  • Pester test is included
  • If new file reference added for test, has is been added to github.com/dataplat/appveyor-lab ?
  • Unit test is included
  • Documentation
  • Build system

When opening a connection we test if we need a DAC and we test if we already have a DAC. We reuse a DAC when possible. We remember if we opened a DAC to later be able to close it.

Get-DecryptedObject needs two things:

  • A Dedicated Admin Connection (DAC) to select master.sys.syslnklgns
  • A WinRM connection to read "HKLM:\SOFTWARE\Microsoft\Microsoft SQL Server$serviceInstanceId\Security"

That's why Get-DecryptedObject needs $Credential which it used all the time, but the parameter was missing. So every command that calls Get-DecryptedObject needs $Credential as well. And every command that calls one of those commands as well.

@potatoqualitee potatoqualitee merged commit d7d327f into development Feb 16, 2026
15 checks passed
@potatoqualitee potatoqualitee deleted the dac_Sync-DbaAvailabilityGroup branch February 16, 2026 07:40
@potatoqualitee
Copy link
Member

thank you for alllllll of these! 🤩 this whole suite has needed help for years. thank you for the time youve invested.

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.

2 participants

Comments