Skip to content

Verbose output in buildDeploymentPlan is unreadable #1280

@theodoroskoutanis-tomtom

Description

Is your feature request related to a problem? Please describe.
When verbose plan output is enabled, property changes that contain large JSON arrays (e.g., long lists of subscription IDs) are rendered as a single unwrapped line. This makes the output extremely difficult to read and nearly impossible to visually diff what actually changed.
For example, a parameter update that adds a single subscription ID to a list of 20 renders as two massive inline arrays side by side with a separator.

Describe the solution you'd like
Show a diff-style output for array changes that highlights only added/removed elements rather than dumping the full before and after arrays. For example:

~ "subscriptionList": [21 items]
+ "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"

Optionally support a --diff-format flag or make this the default behavior for verbose output when arrays exceed a certain length.

Describe alternatives you've considered

  • Pretty-printing JSON values with line breaks and indentation so the full before/after is at least readable

Additional context
Example of current output when a single subscription ID is added to a list parameter:

~ "subscriptionList": ["","",...""] → ["","",..."",""]

The actual change is the addition of one subscription, but the user has to manually compare two walls of GUIDs to find it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions