In Version 2 swapped to run PSScriptAnalyzer as opposed to the limited set of analysis done by version 1.
The properties are:
Source Folder - the folder to scan (recursivally) e.g. $(Build.SourcesDirectory)
Outfile - The location of the CSV file detailing the errors
Severity - The severity of issue to log Error, Warning or Information
usePSCore - If running task on Windows and set to true will execute using PWSH.exe, if false (the default) will use Powershell.exe. If not on Windows will always use PWSH.exe (V2.x onwards)
An error is thrown if validation fails on any files.
Sign PowerShell Scripts Task
Signs all files under the specified path which match the filter.
The properties are:
Root Directory - The root folder to look through recursively e.g. $(Build.SourcesDirectory).
Certificate Path - The path to the certificate to use, this can either by a cer file or a certificate in the Cert:\ drive.
Filter - File types to sign. Defaults to *.ps1 and *.psm1