Background
Now, our command table is loaded three times. The commands loaded later will override the commands loaded earlier
- Load the CLI module
- Load the wheel extension (az extension add)
- Load dev extension (azdev extension add)
If modules or extensions are at the same level, they will be loaded in alphabetical order, so the modules and extensions loaded later will also override the commands in the modules and extensions loaded earlier.
What if I want to my preview extension overwrite my GA extension?
You need to ensure that the extension name of preview is sorted after the extension name of GA For example: GA extension name: containerapp Preview extension name: containerapp-preview
Testing result