I am trying to set up a Sql Sync Member to a database in another tenant using the New-AzSqlSyncMember however whenever i run it get the error message
New-AzSqlSyncMember: Long running operation failed with status 'BadRequest'.
The command im running is:
New-AzSqlSyncMember -Name "datamigrationtest" -MemberDatabaseType "SqlServerDatabase" -MemberServerName "datamigrationtest" -MemberDatabaseName "AutomationTest_Copy" -SyncDirection "Bidirectional" -SyncMemberAzureDatabaseResourceId "/subscriptions/xxxxx/resourceGroups/zzzzz/providers/Microsoft.Sql/servers/datamigrationtest/databases/AutomationTest_Copy" -SyncGroupName "automationmigrationtest" -ServerName "automation-qa" -DatabaseName "AutomationTest" -ResourceGroupName "yyyy" -DefaultProfile $DefaultProfile
It asks for the credentials to the member server when running which I confirmed are correct when connecting to the server in SSMS


