Azure / Azure/azure-rest-api-specs

Implementing aks run command using the sdk

Open
#22,480 14 comments 1 reaction 0 assignees View on GitHub
Container Service customer-reported Mgmt needs-team-attention question Service Attention
Dominant language
TypeSpec
Stars
3.1k
Forks
5.9k
Avg merge
2d 22h
Merged PRs (30d)
444

Description

There doesn't seem to be much documentation on how to use `ContainerServiceClient::begin_run_command` with an AAD cluster. I tried reverse engineering how the azure-cli does it for `az aks command invoke`, but it looks like its using a deprecated library? Couldn't find anything on stackoverflow either, so I figured I'd ask here. So my question is, how to I get a valid `cluster_token` to use with the `RunCommandRequest` model?

Contributor guide

Open the contributing guide

Research direction

Start with ContainerServiceClient::begin_run_command and the RunCommandRequest model, then compare the Azure CLI's az aks command invoke path and its referenced library. Document the supported way to obtain a valid cluster_token for an AAD cluster, with an example that can be verified against the SDK request.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure
Domain
api, authentication, cloud, documentation
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.