Closed
Description
openedon May 4, 2024
I noticed today that aks projects now have a hard dependency on az cli. Let's do our best to remove that dependency. If there is no way to remove it, then let's update the README with the install instructions and help the user with that error message on how to install it.
After provisioning, I see this:
ERROR: deployment failed: failed invoking event handlers for 'postprovision', converting kubeconfig: exit code: 1, stdout: , stderr: 'kubelogin' is not recognized as an internal or external command,
operable program or batch file.
I see we are solving with this line in the devcontainer.
https://github.com/Azure-Samples/todo-nodejs-mongo-aks/blob/main/.devcontainer/devcontainer.json#L34
But folks who don't run in a devcontainer need to track this down themselves. The solution/workaround is to run az aks install-cli
I don't see it listed here:
https://github.com/Azure-Samples/todo-nodejs-mongo-aks/tree/main?tab=readme-ov-file#prerequisites
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment