[AKS] Convert module to use multi-API idioms #8267
Labels
AKS
az aks/acs/openshift
Profile Versioning
Service Attention
This issue is responsible by Azure service team.
Is your feature request related to a problem? Please describe.
The latest container service SDK has switched to a multi-API format. The CLI needs to be updated to use multi-API idioms.
In
azure.cli.core.profiles._shared.py
:Add an entry in the "latest" profile like this:
In init.py for your module:
Where ever you have direct import statements, move them into the command or validator they are needed for and convert.
Example:
Note you need a cmd context to call
get_models
so you can only do this import inside a command or validator, not as a top-level import.The text was updated successfully, but these errors were encountered: