当从Azure指向混合工作程序运行图形Runbook时,它会因此错误而失败,并引用一个未存在的参数。如果我直接在Runbook中连接并运行PS脚本,那么它就会完成执行而不会出现错误
GraphTrace:{ Activity:"GetVMSInfoFromContext",
Event:"ActivityStart", Time:"2018-06-06T17:27:07.4453984Z"
}
GraphTrace:{ Activity:"GetVMSInfoFromContext",
Event:"ActivityOutput", Time:"2018-06-06T17:27:08.2740012Z",
Values:{ Status:"OK", Data:[] }
}
RunbookFlow : A parameter cannot be found that matches parameter name 'DoNotDecrypt'.
At line:6 char:57
+ <#-- Enable activity tracing to see error location --#> RunbookFlow `
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Invoke-RunbookFlow], ParameterBindingException
+ FullyQualifiedErrorId : NamedParameterNotFound,Orchestrator.GraphRunbook.Cmdlets.InvokeRunbookFlowCommand
RunbookFlow : Cannot index into a null array.
At line:6 char:57
+ <#-- Enable activity tracing to see error location --#> RunbookFlow `
+ ~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (:) [Invoke-RunbookFlow], RuntimeException
+ FullyQualifiedErrorId : NullArray,Orchestrator.GraphRunbook.Cmdlets.InvokeRunbookFlowCommand
GraphTrace:{ Activity:"GetVMSInfoFromContext",
Event:"ActivityEnd", Time:"2018-06-06T17:27:08.7511052Z", DurationSeconds:1.3059994
}