Azure / Azure/azure-cli

How to know if one extension is not loaded correctly?

Open
#22,331 1 comment 0 reactions 3 assignees Claimed by @evelyn-ys View on GitHub
act-platform-engineering-squad Auto-Assign Core Extensions feature-request Installation Request from Docs
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`az alias xxx`

**Is your feature request related to a problem? Please describe.**
Sometimes I succeeded to install an extension. But the extension is not correctly loaded. Check the commands in my side. The install did not fail but when I run the command `az alias -h`, it shows an warning and fail to load it.
![image](https://user-images.githubusercontent.com/8327019/167538330-caa40883-17cb-449a-873f-d2bee693039a.png)

**Describe the solution you'd like**
This issue is not asking to fix the broken extension. I need a way to know some extension is not correctly loaded. Such as a command `az extension status` to show information like this:
```
loading exteions:
account: success
acrtransfer: success
alias: fail
```

**Describe alternatives you've considered**
Maybe the installation can fail if extension can not be loaded.

**Additional context**
I am using this information to generate the Docs Page(https://docs.microsoft.com/en-us/cli/azure/alias?view=azure-cli-latest) . If there is possibility that an extension is installed successfully but fail to be loaded. Our Docs Pipeline may keep running without awareness, then publish the new content. That could finaly delete the commands releated to the extension.
Current work-around is, I am using `az help` and check the output to see if there is any warning like "Unable to load extension 'xxx"

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.