Where do I find the output from the Echo statements

Mark Eckert 11 Reputation points

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?


Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,460 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rich Matheisen 45,906 Reputation points

    "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.

    0 comments No comments