Skip to content

How to know if one extension is not loaded correctly? #22331

@daxianji007

Description

@daxianji007

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

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"

Metadata

Metadata

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions