Azure / Azure/agentic-cli-for-aks
Azure CLI command failed: ERROR: User '...' does not exist in MSAL token cache. Run 'az login'.
- Dominant language
- No language data
- Stars
- 11
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
When running az aks agent on a Windows Host with Docker Desktop, the interactive prompt (User >) fails and the AI Response indicate something like: ...problem with the authentication. You need execute az login and try again
You can see the exact error using /show
Azure CLI command failed: ERROR: User '...' does not exist in MSAL token cache. Run 'az login'.
Running az login on the Windows Host, disabling the WAM broker (core.enable_broker_on_windows=false), and regenerating the token files does not fix the issue.
Probably this happens because Python process inside the container loads token state into RAM at startup, ignoring the Windows host's .azure volume mount. (It's just a guess)
**Workaround**
Instead of troubleshooting from the Windows host or via external docker exec, you can inject the authenticated session directly into the agent's running execution tree using its built-in /shell Agent option:
_User > /shell
az login
exit_
Ask your infrastructure query again. The agent will now successfully execute call_az tools
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.