[BUG]: AzureCLI@2 task - Bicep CLI does not keep the version, it auto updates #20813
Open
Description
New issue checklist
- I searched for existing GitHub issues
- I read pipeline troubleshooting guide
- I checked how to collect logs
Task name
AzureCLI@2
Task version
2.249.8
Issue Description
Despite the initial bicep version of 32.4 included in the task, it does auto update to 33.13. Currently 33.13 has issues (it times out during az deployment sub validate
in some cases). But the auto update behavior of Bicep CLI is probably not a desired one and the version of the bicep should probably remain locked to the initial version because it create a situation in which some tasks / pipelines that used to run, do not run anymore despite no changes to the pipeline / underlying code.
Environment type (Please select at least one enviroment where you face this issue)
- Self-Hosted
- Microsoft Hosted
- VMSS Pool
- Container
Azure DevOps Server type
dev.azure.com (formerly visualstudio.com)
Azure DevOps Server Version (if applicable)
No response
Operation system
Ubuntu 22.04
Relevant log output
DEBUG: urllib3.connectionpool: https://downloads.bicep.azure.com:443 "GET /releases/latest HTTP/1.1" 200 45817
DEBUG: cli.azure.cli.command_modules.resource._bicep: Generated download URL https://downloads.bicep.azure.com/v0.33.13/bicep-linux-x64. from system Linux, machine x86_64, release tag v0.33.13 and target platform None.
INFO: cli.azure.cli.command_modules.resource._bicep: Successfully installed Bicep CLI to /home/vsts/work/_temp/.azclitask/bin/bicep