Does Get-AzureRmHdInsightJobOutput return an object?

时间:2015-12-04 21:18:27

标签: azure pentaho hdinsight azure-powershell

I am currently working on a pre-existing kettle job that calls a powershell script that sends Azure HdInsight a pig job. Get-AzureHdInsightJobOutput is part of this script and is now deprecated. So I am replacing it with Get-AzureRmHdInsightJobOutput. However the new cmdlet has two parameter sets, one for display and one for download. I need an object to be returned in order to avoid making changes to the kettle job.

I'm hoping to find out if the display parameters will return an object or if they just print out the results.

1 个答案:

答案 0 :(得分:1)

Get-AzureRmHdInsightJobOutput cmdlet在与显示参数集一起使用时将返回字符串对象,与DisplayOutputType无关。

您可以在Azure PowerShell github链接中参考下面此cmdlet的源代码:

GetAzureHDInsightJobOutputCommand.cs

希望这有帮助!