question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

az aks command invoke failing due to API call returning broken Location

See original GitHub issue

Related 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:closed
  • Created a year ago
  • Reactions:7
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
datadotcommented, May 12, 2022

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?

5reactions
kevinnestacommented, May 12, 2022

Same issue here. Blocking all our CI/CD

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found