Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

az bicep install or az bicep upgrade is installing/upgrading older version v0.27.1. #14238

Closed
sg-vintri opened this issue Jun 5, 2024 · 8 comments
Labels
Needs: Author Feedback Awaiting feedback from the author of the issue Needs: Upvote This issue requires more votes to be considered

Comments

@sg-vintri
Copy link

sg-vintri commented Jun 5, 2024

v0.28.1

Describe the bug
The version v0.28.1 is not being installed as latest either upon clean install or upgrade.

To Reproduce
run az bicep install or az bicep upgrade

Additional context
We need the latest version v0.28.1 available automatically for Bicep linting, validation and deployment commands through Az cli (az deployment group what-if), azure devops bicep deployment task (task: AzureResourceManagerTemplateDeployment@3). Currently we are blocked with an issue introduced in v0.27.1 (while using dot property access on union of objects with undeclared property) #14059.

We noticed the above issue is fixed in v0.28.1, but the visual studio code, azure devops, azure cli seems to be still using older version and az bicep upgrade also still updates bicep to the older version of v0.27.1, instead of v0.28.1.

@sg-vintri
Copy link
Author

sg-vintri commented Jun 5, 2024

az bicep upgrade command from Azure PowerShell command does not upgrade to latest version

image

@sg-vintri
Copy link
Author

sg-vintri commented Jun 5, 2024

az bicep upgrade command on Azure Devops agent does not upgrade to latest version
image

@ahelland
Copy link

ahelland commented Jun 5, 2024

In my experience there is a delay for new Bicep versions to replicate through the systems and give a notification. It does however seem to work if you are explicit and use "az bicep install --version v0.28.1".

@sg-vintri
Copy link
Author

In my experience there is a delay for new Bicep versions to replicate through the systems and give a notification. It does however seem to work if you are explicit and use "az bicep install --version v0.28.1".

Explicit version install is only helping to resolve blocker with Azure DevOps extensions and Visual studio code. But the Az Cli command "az deployment group" doesn't seem to work with the explicit version upgrade of bicep cli and still fails with the validation error #14059.

@sg-vintri
Copy link
Author

sg-vintri commented Jun 5, 2024

Noticed the following behavior which seems to an error. A clean intsall and upgrade on the top of it still intsalls v0.27.1
image

However an upgrade command after an uninstall , installs the version v0.28.1. This still doesn't solve our issue with "az deployment group" command. But adding this as more information on the ticket.
image

@stephaniezyen stephaniezyen added the Needs: Upvote This issue requires more votes to be considered label Jun 12, 2024
@stephaniezyen
Copy link
Contributor

@sg-vintri can you please try again and see if the issue is still happening? We haven't been able to reproduce the error with the upgrade command on our side unfortunately.

@ross-p-smith
Copy link

ross-p-smith commented Jul 23, 2024

Encountering the same thing. My build step on GitHubActions is

Run az bicep install
  az bicep install
  az bicep upgrade
  shell: /usr/bin/bash -e {0}
WARNING: The configuration value of bicep.use_binary_from_path has been set to 'false'.
Installing Bicep CLI v0.29.47...
Successfully installed Bicep CLI to "/home/runner/.azure/bin/bicep".
Installing Bicep CLI v0.29.45...
Successfully installed Bicep CLI to "/home/runner/.azure/bin/bicep".

Frustratingly the next step which uses az bicep build tells me that there is a new version available 🤷‍♂️

az bicep build --file ./samples/ingestion/ingestion-client/infra/main.bicep --outfile ./samples/ingestion/ingestion-client/infra/generated_main.json
  shell: /usr/bin/bash -e {0}
  
WARNING: A new Bicep release is available: v0.29.47. Upgrade now by running "az bicep upgrade".

@ross-p-smith
Copy link

Tagging @stephaniezyen to see if you can re-open this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs: Author Feedback Awaiting feedback from the author of the issue Needs: Upvote This issue requires more votes to be considered
Projects
Archived in project
Development

No branches or pull requests

4 participants