Skip to main content

Documentation Index

Fetch the complete documentation index at: https://tally.wharflab.com/llms.txt

Use this file to discover all available pages before exploring further.

powershell/PSDSCUseVerboseMessageInDSCResource is a PSScriptAnalyzer diagnostic emitted by tally for PowerShell snippets embedded in Dockerfiles.
PropertyValue
SeverityInformation
CategoryPSScriptAnalyzer
Auto-fixNo

Description

Best practice recommends that additional user information is provided within commands, functions and scripts using Write-Verbose.

How

Make use of the Write-Verbose command.

Examples

Problematic code

Function Test-Function
{
    [CmdletBinding()]
    Param()
    ...
}

Correct code

Function Test-Function
{
    [CmdletBinding()]
    Param()
    Write-Verbose 'Verbose output'
    ...
}

Source

This rule documentation is adapted from Microsoft’s PSScriptAnalyzer documentation for DSCUseVerboseMessageInDSCResource, licensed under CC BY 4.0.