-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Az bicep lint throws NotFound Exception Error on Microsoft hosted build-agent (Azure Pipelines) when using AzCli tasks #31226
Description
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