Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does write-information and write-host support in the powershell runbook? #22430

Closed
imeya opened this issue Jan 15, 2019 — with docs.microsoft.com · 6 comments
Closed

Comments

Copy link

imeya commented Jan 15, 2019

do you know write-information and write-host are supported in the powershell runbook? If I used them, no message is output to the test pane. code like:

Write-Information "hello informatin" -InformationAction Continue
write-host "hello host"

run it, and then check in the test pane, no message output.

Document Details

Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

@georgewallace
Copy link
Contributor

georgewallace commented Jan 15, 2019

@imeya Write-Host will not work as there is no host to write to .. The article lists the supported streams at the top, you will want to use Write-Output to properly output information to the test pane and to the job streams.

@imeya
Copy link
Author

imeya commented Jan 15, 2019

one more question, the Test Pane in runbook is different than something like console, right? thanks very much.

@georgewallace
Copy link
Contributor

@imeya Yes it shows you the output streams of your runbook, but is not considered a host in which write-host functions.

@femsulu
Copy link
Member

femsulu commented Jan 15, 2019

We will now close this issue. If there are further questions regarding this matter, please reply and we will gladly continue the discussion.

@femsulu femsulu closed this as completed Jan 15, 2019
@etaham
Copy link

etaham commented Jul 2, 2019

Can Write-Information be supported? It is very useful to print status information - especially when waiting from an Azure SDK command to complete. SO: https://stackoverflow.com/questions/54191736/does-azure-automation-support-write-information

@cedricbraekevelt
Copy link

I Too am awaiting the information stream to be added. As Write-Output always adds stuff to SDOUT stream which is always filled by many functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants