Skip to content

Az bicep lint throws NotFound Exception Error on Microsoft hosted build-agent (Azure Pipelines) when using AzCli tasks #31226

@nathjohn

Description

@nathjohn

Describe the bug

Running az bicep lint via the AzCLI task in ADO is failing with an error. This job was working fine until the last hour or so and just stopped working.

ADO Logs:

az bicep lint --file "XXXX" --diagnostics-format sarif > "/home/vsts/work/1/s/XXXX.sarif"

ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: [Errno 2] No such file or directory: '/home/vsts/work/_temp/.azclitask/bin/bicep'

Related command

az bicep lint --file "XXXX" --diagnostics-format sarif > "/home/vsts/work/1/s/XXXX.sarif"

Errors

ERROR: The command failed with an unexpected error. Here is the traceback:
ERROR: [Errno 2] No such file or directory: '/home/vsts/work/_temp/.azclitask/bin/bicep'

Issue script & Debug output

N/A

Expected behavior

The Az CLI task to do the bicep lint task

Environment Summary

azure-cli 2.71.0

core 2.71.0
telemetry 1.1.0

Extensions:
azure-devops 1.0.1

Dependencies:
msal 1.31.2b1
azure-mgmt-resource 23.1.1

Python location '/opt/az/bin/python3'
Config directory '/home/vsts/.azure'
Extensions directory '/opt/az/azcliextensions'

Python (Linux) 3.12.8 (main, Mar 25 2025, 10:55:23) [GCC 13.3.0]

Legal docs and information: aka.ms/AzureCliLegal

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Auto-AssignAuto assign by botAzure Deploymentsaz deployment/bicep/stack/deployment-scripts/ts/group exportService AttentionThis issue is responsible by Azure service team.act-codegen-extensibility-squadbugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions