Skip to content

Bug: Rover log flag log-severity command not found #389

@JoDexsph

Description

@JoDexsph

Running Rover in Azure DevOps with a Linux VM, adding the flag -log-severity to set the terraform log level to any value gives the error:
-log-severity: command not found ##[error]Bash exited with code '127'.

Rover Version

aztfmod/rover:1.6.6.-2401.0402

The following is the script we are executing from our pipeline:

  - script: | 
        export ROVER_RUNNER=true
        /tf/rover/rover.sh \
        -lz $(Build.SourcesDirectory)/Library/$(landingzone_version) \
        -var-folder $(Build.SourcesDirectory)/${{ parameters.repoName }}/variables \
        -a apply \
        -level $(level) \
        -env test \
        -log-severity $(tflog_level)
        -tfstate_subscription_id $(ARM_SUBSCRIPTION_ID) \
        -tfstate $(tfstate_name).tfstate \
        -target_subscription $(target_subscription) \
        -p plan.tfstate.tfplan/drop/plan.tfstate.tfplan

We tried setting the -log-severity to DEBUG or TRACE directly the pipeline failed with the same error.
https://aztfmod.github.io/documentation/docs/rover/rover-commands/
https://developer.hashicorp.com/terraform/internals/debugging


Review Note (2026-01-12): This is a critical bug affecting CI/CD pipelines. The -log-severity flag is not working as documented, preventing users from debugging Terraform issues.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions