A reader may expect to be able to use outputTo and fileName for command: plan too, and not sticking -out to commandOptions
In other words, a reader may expect unified interface of all TerraformTaskV3 commands, and rightly so, but apparently that is not the case.
IMHO, documentation is unclear there.
In https://github.com/microsoft/azure-pipelines-terraform/issues/117#issuecomment-1342795831 @mericstam explains that
and
presents example with
outputTo
andfileName
use forcommand: show
.These are not documented in the TerraformTaskV3/README.md.
A reader may expect to be able to use
outputTo
andfileName
forcommand: plan
too, and not sticking-out
tocommandOptions
In other words, a reader may expect unified interface of all TerraformTaskV3 commands, and rightly so, but apparently that is not the case. IMHO, documentation is unclear there.