Skip to content

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

Purpose

I need this later for a refctoring of Test-DbaDiskAllocation.

When working with failover cluster instances, the VSName (virtual server name / network name) is needed to connect to the instance instead of the computername that is output by Get-DbaService as the computername is resolved from the input. So Get-DbaService -SqlInstance FCI01 will output "SQL01" as the computername if the instance is currently running on that computer.

Approach

When using the parameter AdvancedProperties, the needed information is retrieved, but not well formatted. I changed the code so that for the engine service the SqlInstance property is calculated like in most of our other commands.

image

@potatoqualitee potatoqualitee merged commit 25cc7a5 into development Jan 7, 2026
14 checks passed
@potatoqualitee potatoqualitee deleted the support_fci_in_Get-DbaService branch January 7, 2026 07:44
@potatoqualitee
Copy link
Member

awesome thank you 🙇🏼

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