az bicep lint fails when running AzureCLI@2 task in Azure DevOps pipeline #18315
-
|
I have a Azure DevOps pipeline task that is linting my bicep file, but suddenly for SOME resources it fails claiming that the version of the resource doesn't have any types available (e.g. For now it fails on:
It works for other resource types with newer version than these, but not for these... It also works if I run linting locally. I realize that the version of both az cli and the bicep extension is old (but not that old, see below for version), so I can't see that they should be the problem. I have tried to upgrade both, the az cli is upgraded, however when trying to run Az CLI version info: Bicep CLI version 0.37.4 (27cc8db) (should after the upgrade be upgraded to This are the task I'm trying to execute for upgrade: This is the bicep it tries (and fails) for linting: NIC: Not any strange resources. Worth noting is that they uses SO, the questions are:
For now, I will downgrade the versions for these, but it is interesting to know why this happens and how to solve it. For reference, here is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
I think you might be running into this bug: Azure/azure-cli#32098 As a workaround, could you try running the following before running az config set bicep.use_binary_from_path=false |
Beta Was this translation helpful? Give feedback.
I think you might be running into this bug: Azure/azure-cli#32098
As a workaround, could you try running the following before running
az bicep upgrade:az config set bicep.use_binary_from_path=false