Share via

Running Invoke-AzStorageSyncCompatibilityCheck remotely throws an error

Scott McDonald 1 Reputation point
2021-08-09T15:05:49.923+00:00

We are trying to run Invoke-AzStorageSyncCompatibilityCheck remotely however the module throws an error:

$cred = Get-Credential
$computername = xxxxxxxxx
Invoke-AzStorageSyncCompatibilityCheck -Credential $cred -computername $computername -SkipSystemChecks "c:\temp"

Invoke-AzStorageSyncCompatibilityCheck : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1

  • Invoke-AzStorageSyncCompatibilityCheck -Credential $cred -Path 'c:\te ...
  • ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  • CategoryInfo : InvalidArgument: (:) [Invoke-AzStorageSyncCompatibilityCheck], ParameterBindingException
  • FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Azure.Commands.StorageSync.Evaluation.Cmdlets.InvokeCompatibilityC
    heckCmdlet

The command works on local machines but not remotely, however we need to run remotely in order to assess files hosted on a failover cluster?

Windows for business | Windows Server | User experience | PowerShell
0 comments No comments

2 answers

Sort by: Most helpful
  1. Scott McDonald 1 Reputation point
    2021-08-10T11:23:12.03+00:00

    its the path to the files we are testing on the remote server. We have tried UNC path \servername\share - and various other formats but the same Parameter set cannot be resolved error

    Was this answer helpful?

    0 comments No comments

  2. Rich Matheisen 48,116 Reputation points
    2021-08-09T18:58:01.943+00:00

    Why is there a "C:\temp" at the end of the cmdlet????

    Was this answer helpful?

    0 comments No comments

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.