az aks command invoke failing due to API call returning broken Location
See original GitHub issueRelated command
az aks command invoke
Describe the bug
When running az aks command invoke to run any command eg kubectl get pods -A, the API returns a malformed Location on a 202 response header without the subscription id, causing crash.
Actual invoked command is run on AKS cluster.
To Reproduce
az aks command invoke --resource-group <my-rg> --name <my-aks-cluster> --command ‘kubectl get pods -A’
Expected behavior
Location header to return including Subscription ID and result of invoked command.
Environment summary
azure-cli 2.34.1 -> 2.36.0 Tested on Windows 11, Azure DevOps pipeline (Ubuntu), WSL (Ubuntu)
Additional context
Issue Analytics
- State:
- Created a year ago
- Reactions:7
- Comments:7 (1 by maintainers)
Top Results From Across the Web
Resolve az aks command invoke failures - Azure
Resolve az aks command invoke failures in Azure CLI when you try to access a private Azure Kubernetes Service (AKS) cluster.
Read more >Data Storage Software - NetApp Knowledge Base
"xcp diag find" command fails in the middle with [Errno 32] Broken pipe · Analytics GUI doesn't display data from any browser ...
Read more >The Kubernetes executor for GitLab Runner
Execute job Job logs GitLab instance Runner on Kubernetes cluster Kubernetes API ... The Pods spawned by the runner take place on the...
Read more >How to access a Private AKS cluster with az cli commands?
You cant use kubectl to access the API Server of a private AKS cluster, thats the design by making it private (no public...
Read more >Dynamic Admission Control | Kubernetes
Mutating admission webhooks are invoked first, and can modify objects ... The webhook handles the AdmissionReview request sent by the API ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This a show-stopper P1 that breaks the mechanism to access a private AKS cluster. This bug appears to have been introduced in the Production/Live Azure REST API. @jiasli can you acknowledge that you have triaged this and are reaching out to the appropriate team, please?
Same issue here. Blocking all our CI/CD