azure-cli icon indicating copy to clipboard operation
azure-cli copied to clipboard

az aks install-connector doesn't recognize --name param

Open AdminTurnedDevOps opened this issue 6 years ago • 9 comments

Describe the bug When I use the --name parameter in the az aks command with the install-connector switch, the output states that the --name switch isn't recognized. However, it is shown in the documentation here: https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-install-connector

image

To Reproduce Run: az aks install-connector --name MyManagedCluster --resource-group MyResourceGroup --connector-name virtual-kubelet --os-type Both

Expected behavior To have the ACI connector attached to my AKS cluster

Environment summary MacOS 10.15.4. Azure CLI install via the Microsoft website.

AdminTurnedDevOps avatar May 04 '20 11:05 AdminTurnedDevOps

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Azure/aks-pm.

ghost avatar May 04 '20 14:05 ghost

aks

yonzhan avatar May 04 '20 14:05 yonzhan

This bug has been going on for months in the community (https://stackoverflow.com/questions/59968396/az-aks-install-connector-fails-name-uknow-parameter)... When can we expect this to be resolved?

AdminTurnedDevOps avatar May 05 '20 00:05 AdminTurnedDevOps

@AdminTurnedDevOps please use the enable-addons command instead of install-connector.

You can follow the official instructions here: https://docs.microsoft.com/en-us/azure/aks/virtual-nodes-cli#enable-virtual-nodes-addon

az aks enable-addons \
    --resource-group myResourceGroup \
    --name myAKSCluster \
    --addons virtual-node \
    --subnet-name myVirtualNodeSubnet

The install-connector was a command set used during preview, which is set for removal.

jluk avatar May 05 '20 00:05 jluk

Okay great, thanks. Is that something that will be updated in the Azure CLI docs? Because a ton of the docs still point to use install-connector.

AdminTurnedDevOps avatar May 05 '20 00:05 AdminTurnedDevOps

The CLI reference is autogenerated (like here: https://docs.microsoft.com/en-us/cli/azure/aks?view=azure-cli-latest#az-aks-install-connector), so that will get removed there when the code is deprecated. That should be happening this month.

Please point me to any other docs recommending that command and we can get that fixed.

jluk avatar May 05 '20 00:05 jluk

Docs at docs.ms is refreshed when Azure CLI release. next release is May 19th. As long as code change in help.py merged before that, docs will be updated then.

yungezz avatar May 05 '20 02:05 yungezz

cc @macolso from ACI / VN team

jluk avatar May 05 '20 15:05 jluk

Closing this issue for now as the doc issue should've been resolved in the latest CLI release.

Jen7714 avatar May 29 '20 16:05 Jen7714