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 10 months, 1 week ago.

  • Author
  • #99229

    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
    At line:5 char:56
    + ... rt-AzureRmSiteRecoveryTestFailoverJob -RecoveryPlan $recoplan -Direct ...
    + ~~~~~~~~~
    + CategoryInfo : InvalidArgument: (:) [Start-AzureRmSiteRecoveryTestFailoverJob], Parameter
    + FullyQualifiedErrorId : CannotConvertArgumentNoMessage,Microsoft.Azure.Commands.SiteRecovery.Start

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

denizli escort samsun escort muğla escort ataşehir escort kuşadası escort