Skip to content

Specify Subscription with azurecli #761

Description

@giancarlopernudisegura

Right now the only options passed to azure-cli is tenant ID. This means that the subscription will default to use the current active account. If I want to use a cluster that's on a non-active subscription, I need to run something like az account set --subscription <subscription> first before running kubelogin.

It would be nice if it was also possible to specify a subscription ID with a flag --subscription-id and have that value also supplied when creating azure-cli credentials. This way kubelogin can be used on a different subscription than the active one in azure-cli.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions