Azure / Azure/azure-cli

`az extension add` : Ability to fail installation (or upgrade) if latest version cannot be installed

Open
#27,459 2 comments 0 reactions 2 assignees Claimed by @jsntcy View on GitHub
act-platform-engineering-squad Auto-Assign Azure CLI Team feature-request Installation PM Attention
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**

`az extension add`

**Is your feature request related to a problem? Please describe.**

`az extension add --upgrade` installs or upgrades an extension. It does a compatibility check with the current version of `azure-cli` and installs an older version if `az` is old and if the latest extension version is not compatible with old `az` version.

**Describe the solution you'd like**

I'd like to have an option or flag to always install the latest version of extension. If the install or upgrade is not possible due to compatibility-issues, we should **fail the operation** instead of installing an older version.

**Describe alternatives you've considered**

**Additional context**

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.