getting error in running command Start-AzureRmSiteRecoveryTestFailoverJob

Welcome Forums General PowerShell Q&A getting error in running command Start-AzureRmSiteRecoveryTestFailoverJob

This topic contains 0 replies, has 1 voice, and was last updated by  bhanush 6 months, 4 weeks ago.

  • Author
    Posts
  • #99229

    Participant
    Points: 0
    Rank: Member

    Ok I have updated My powershell again and it seems moving on now. But I got another blocker. Coud you please help:

    PS C:\WINDOWS\system32> $rpname = "myrecoveryplan"
    $Vault=Get-AzureRmRecoveryServicesVault -Name "testvault"
    $Context= Set-AzureRmRecoveryServicesAsrVaultContext -Vault $Vault
    $recoplan = Get-AzureRmRecoveryServicesAsrRecoveryPlan -Name $rpname
    Start-AzureRmSiteRecoveryTestFailoverJob -RecoveryPlan $recoplan -Direction "PrimaryToRecovery" -VMNetwork "asrtestfailtarget"
    Start-AzureRmSiteRecoveryTestFailoverJob : Cannot bind parameter 'RecoveryPlan'. Cannot convert the
    "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan" value of type
    "Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRRecoveryPlan" to type
    "Microsoft.Azure.Commands.SiteRecovery.ASRRecoveryPlan".
    At line:5 char:56
    + ... rt-AzureRmSiteRecoveryTestFailoverJob -RecoveryPlan $recoplan -Direct ...
    + ~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Start-AzureRmSiteRecoveryTestFailoverJob], Parameter
    BindingException
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.SiteRecovery.Start
    AzureRmSiteRecoveryTestFailoverJob

The topic ‘getting error in running command Start-AzureRmSiteRecoveryTestFailoverJob’ is closed to new replies.