@Azuretech The behavior of write-host in PS 7.2 is different from previous versions. Please use write-output instead of Write-Host. Thanks.
Azure automation account powershell runbooks
Azuretech
90
Reputation points
I am trying to update Azure automation account runbooks from powershell runtime version 7.1 to 7.2 as recommended as 7.1 is not supported by parent. but write-host is not working in version 7.2 and printing blank in 7.2 . it was fine with version 7.1 . example : below command runbooks showing no output. write-host "this is test" write-output is only working. is write-host not supported in 7.2 runtime? Please confirm. FYI :l I have upgraded all the required az modules