Azure DevOps Pipeline logs are truncating tables

John Beckman 0 Reputation points
2024-09-12T17:24:08.6533333+00:00

When running a Powershell on TargetMachine task the logs appear to be truncating output that has been formatted in a table. This happens even when explicitly giving column widths. The truncation is clearly not a limit of the log as other lines in the log are not truncated and go much farther.

User's image

In the example above the width for the column "Value" has been explicitly set to 120, but it is getting truncated at much less

get-item -path env:\* | Format-Table -Property @{n="Hostname";e={$env:computername}; width=15},@{ e='Name'; width=35}, @{ e='value'; width=120}

This command formats as expected when run directly on an agent with powershell or run remotely in powershell via Invoke-Command.

How do I get the log to show the correctly formatted table?

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,194 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 89,571 Reputation points Microsoft Employee
    2024-09-16T06:14:06.0866667+00:00

    @John Beckman - Thanks for the question and using MS Q&A platform.

    Azure DevOps is currently not supported in the Microsoft Q&A platform; the supported products are listed over here https://docs.microsoft.com/en-us/answers/products (more to be added later on).

    In order to assist best on your query, I would request you to post your query in SO => Azure Devops dedicated support. Additionally, adding the [Azure] tag on SO will increase visibility as it is a Microsoft Sponsored tag.

    https://stackoverflow.com/questions/tagged/azure-devops

    OR

    Report any Azure Devops problems on Developer Community.

    This will assist you with a faster reply to your query.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.