-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aks kollect does not work with AKS with disabled local accounts #201
Comments
Hi @superzer0 - thanks for reporting this issue! The problem seems to be with az CLI attempting to get (local account) admin credentials and using these to deploy resources to the cluster. We'll have to discuss further whether there's something we can do to change that in an upcoming release of the CLI. cc: @Tatsinnit Right now, the only way I can see to run Periscope is to deploy the resources manually, as described here. I gave this a try and it worked for me. Note that there are a few placeholders that need filling in, including
Also note that the value for Would this approach work for you, at least in the meantime? |
Thank you @peterbom, I will try the manual approach. It would be great to have that option automated in CLI as it simplifies the troubleshooting. Thanks! |
FYI @superzer0: Azure/azure-cli-extensions#5539 I'll keep this issue open until the CLI is released with the above change. (We're also working on a similar change for the VSCode Periscope integration: Azure/vscode-aks-tools#173) |
Hi @superzer0, the latest It's also enabled in the latest release of the AKS extension for VS Code, in case it's convenient for you to run Periscope from there. |
Hello, sorry for the delay. The periscope worked for us and we have the diagnostics uploaded to the storage account (aks-preview 0.5.137).
|
Describe the bug
We have AKS (1.24.6) configured in a way that disables local account access (best security practice).
Currently, our AKS is configured with Azure AD authentication with Kubernetes RBAC.
To Reproduce
Steps to reproduce the behavior: (for example)
az aks kollect -g *** -n *** --storage-account "***"
(BadRequest) Getting static credential is not allowed because this cluster is set to disable local accounts. Code: BadRequest Message: Getting static credential is not allowed because this cluster is set to disable local accounts.
Expected behavior
AKS periscope runs
Desktop:
{ "azure-cli": "2.42.0", "azure-cli-core": "2.42.0", "azure-cli-telemetry": "1.0.8", "extensions": { "aks-preview": "0.5.114", "azure-devops": "0.25.0", "interactive": "0.4.5" } }
The text was updated successfully, but these errors were encountered: