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
Identified by user in Slack...When providing the
-Login MyLoginparameter 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