Share via

New-AzSqlSyncMember command fails

Aparna Manoharan 40 Reputation points
2024-11-04T14:48:22.59+00:00

Im trying to create a sync member for an on-premises SQL Server database , Im using the command -

New-AzSqlSyncMember -ResourceGroupName "ResourceGroup01" -ServerName "Server01" -DatabaseName "Database01" -SyncGroupName "SyncGroup01" -Name "SyncMember01" -SyncDirection "OneWayMemberToHub" -MemberDatabaseType "SqlServerDatabase" -SqlServerDatabaseId "dbId" -syncAgentResourceGroupName "syncAgentResourceGroupName" -syncAgentServerName "syncAgentServerName" -syncAgentDatabaseName "syncAgentDatabaseName" -syncAgentName "agentName" | Format-List

This command fails with message unrecognised GUID format.

But None of parameters in command expect GUID as paramter.

Is there any paramater Im missing?

Azure SQL Database

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.