Lets imagine that i have two servers/nodes with TWO availability groups Group01 and Group02. I will need to ensure that the server objects are all the time recreated over the secondary replica.
If i have the Group01 in one node as primary, and the Group02 in the other node as primary, how will the sync of server objects be processed?
I was thinking of using dbatools with one command line only:
Start-DbaMigration -Source $PrimaryInstance `
-Destination $SecondaryInstance `
-Exclude Databases
What am I missing here?