Skip to content

Sync-DbaAvailabilityGroup - Does not filter on Login correctly. #5119

@wsmelton

Description

@wsmelton

Identified by user in Slack...When providing the -Login MyLogin parameter the sync command syncs all logins and not just the one provided.

Found that the parameter is simply not being provided to the call to Copy logins.

https://github.com/sqlcollaborative/dbatools/blob/e36b3970baba50f56271d5879564a68c78a24aa5/functions/Sync-DbaAvailabilityGroup.ps1#L232-L237

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions