Task name
AzurePowerShell@5
Task version
5
Environment type (Please select at least one enviroment where you face this issue)
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Windows 11 server 2019
Question
Hello,
Back in May-June this year I had my pipeline suddenly break.
Upon investigation AzurePowerShell@5 had been logging in yellow "WARNING: Upcoming breaking changes in the cmdlet 'Get-AzAccessToken' : The token property of the output type will be changed from String to SecureSTring. Add the [-AsSecureString] switch...".
However, this warning was not displayed on the pipeline run summary, so it went unnoticed until it occurred.
Perhaps this is using native powershell command, Write-Warning, which does not seem to get reflected on the summary page. In order to be reflected in the run summary, maybe the msg should be more like 'echo "##[warning]Warning message"' and more orange ish.
This task does not seem to have an option to enable showing warnings to the summary page, as opposed to PowerShell@2's showwarnings.
Is there any recommended way to show this warning on the summary page?