We are trying to sync an azure database and local SQL database using power shell. We are referencing the following URL for the sync process.
Up to the database schema section, we can execute the script successfully. But when we execute the following code it is showing an error.
$newSchema = [AzureSqlSyncGroupSchemaModel]::new()
Error is “InvalidOperation: Unable to find type [AzureSqlSyncGroupSchemaModel]”.
Even we used the following statement in the script it is still showing error.
using namespace Microsoft.Azure.Commands.Sql.DataSync.Model
using namespace System.Collections.Generic
We have researched a lot for a solution but couldn’t find a proper one yet. We had tried “[System.Reflection.Assembly]::LoadWithPartialName( “
option also, but this also not lead us to success. Please let us know if you have a solution. It would be very helpful for us.