azure-cli-extensions: aks create fails with 'Namespace' object has no attribute 'detach_acr'
This is autogenerated. Please review and update as needed.
Describe the bug
I updated my azure CLI from .68 to .77 to enable managed identities on AKS. After that i tried to vcreate a new AKS and it failed with the error below
Command Name
az aks create Extension Name: aks-preview. Version: 0.4.24.
Errors: az aks create: error: ‘Namespace’ object has no attribute ‘detach_acr’
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
- Put any pre-requisite steps here…
az aks create --name {} --resource-group {} --kubernetes-version {} --network-plugin {} --subscription {} --tags {} {} {} --location {} --attach-acr {} --enable-vmss --node-vm-size {} --enable-cluster-autoscaler --min-count {} --max-count {} --windows-admin-password {} --windows-admin-username {} --enable-managed-identity
Expected Behavior
AKS cluster gets created
Environment Summary
Darwin-19.0.0-x86_64-i386-64bit
Python 3.7.5
Shell: bash / zsh
azure-cli 2.0.77
Extensions:
aks-preview 0.4.24
Additional Context
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 5
- Comments: 16 (6 by maintainers)
Can you please communicate the workaround as a series of commands instead of prose?
So, what commands do we have to execute instead of
az aks create --resource-group myrg --name myaks--generate-ssh-keys --attach-acr myacr
?