Make sure that in addition to Az PowerShell module you also have Az.PrivateDns module installed.
Function Sync-DnsZone synchronizes resource records from source DNS zone to destination DNS zone, if you want to achive two-way sync you need to execute the same function twice with switched source and destination.
