Skip to content

feat(wsl): include azure-cli in WSL image#17672

Open
mfrw wants to merge 1 commit into
4.0from
mfrw/wsl-add-azure-cli
Open

feat(wsl): include azure-cli in WSL image#17672
mfrw wants to merge 1 commit into
4.0from
mfrw/wsl-add-azure-cli

Conversation

@mfrw

@mfrw mfrw commented Jun 10, 2026

Copy link
Copy Markdown
Member

Add azure-cli to the WSL image package list so users have the Azure
management CLI available out of the box. The azure-cli component is
already defined in base/comps/components.toml.

Signed-off-by: Muhammad Falak R Wani falakreyaz@gmail.com

Add azure-cli to the WSL image package list so users have the Azure
management CLI available out of the box. The azure-cli component is
already defined in base/comps/components.toml.

Signed-off-by: Muhammad Falak R Wani <falakreyaz@gmail.com>
@mfrw mfrw marked this pull request as ready for review June 10, 2026 01:39
Copilot AI review requested due to automatic review settings June 10, 2026 01:39

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the Azure Linux WSL KIWI definition to include azure-cli in the image package set, providing the Azure management CLI out of the box for WSL users.

Changes:

  • Add azure-cli to the WSL image <packages type="image"> list.

Comment thread base/images/wsl/wsl.kiwi
<packages type="image" patternType="plusRecommended">
<package name="attr"/>
<package name="acl"/>
<package name="azure-cli"/>
@reubeno

reubeno commented Jun 11, 2026

Copy link
Copy Markdown
Member

@mfrw How would you evaluate the trade-off between pre-installing the (Linux) az CLI vs. allowing any installed az CLI from the native Windows side take precedence? (What do other WSL images do?)

@mfrw

mfrw commented Jun 12, 2026

Copy link
Copy Markdown
Member Author

@mfrw How would you evaluate the trade-off between pre-installing the (Linux) az CLI vs. allowing any installed az CLI from the native Windows side take precedence? (What do other WSL images do?)

This is an excellent point. There are almost all Pros of falling back to the azcli which is installed on the host. The only down side is e.g if someone would want to do an operation like:

az storage blob upload --file ./data

Since, az.exe run in the Windows NT subsytem context, it cannot natively parse the Linux VHDX filepath unless it is explicity translated via wslpath -w

Also, other WSL images do not install azcli by default.

While we are here, i also wanted for slightly better devex, we should atleast include tmux & git in our WSL image natively, what are your thoughts ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants