question

MarkEckert-0145 avatar image
0 Votes"
MarkEckert-0145 asked RichMatheisen-8856 answered

Where do I find the output from the Echo statements

I have a power shell script in azure blob storage running as batch. It is failing with an error code of 2500. I see that there are echo statements in the script. Where do I find the output of the statements? I can't find any log showing the execution results. Where would I find that?

Thanks

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

RichMatheisen-8856 avatar image
0 Votes"
RichMatheisen-8856 answered

"Echo" is an alias for the "Write-Output" cmdlet. The Write-Output cmdlet, by default, sends its data to the "success" stream (in DOS that would be STDOUT). If the echo command doesn't use redirection (or pipelining) then the output would go to the console.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.