Azure / Azure/azure-cli

az bicep version check should not block on failure

Open
#24,175 10 comments 3 reactions 1 assignee Claimed by @zhoxing-ms View on GitHub
act-identity-squad ARM Auto-Assign Service Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`az bicep *`
`az deployment *` (with a bicep template file)

**Is your feature request related to a problem? Please describe.**
the `az` commands that use bicep, check for a newer version of bicep before initiating the command. If that version check fails for some reason (e.g. 4xx) the command stops and the user is blocked from using any command that involves bicep in the cli

**Describe the solution you'd like**
ignore failures that occur during the bicep version check and continue running the user's command

**Describe alternatives you've considered**
the user can modify the json file that has a timestamp for a version check to a future date and that will unblock, but for users running pipelines this is not always trivial.

**Additional context**
We are working on changes that will make the check more resilient, but even with that -- in the event of a failure, we should not block the user's command.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.