Skip to content

az account get-access-token should allow passing both --subscription and --tenant #32755

@jiasli

Description

@jiasli

Related command
az account get-access-token

Is your feature request related to a problem? Please describe.
Azure/azure-sdk-for-go#25758

az account get-access-token --subscription ... --tenant ... always exits with an error "Please specify only one of subscription and tenant, not both".

Describe the solution you'd like
If --subscription and --tenant are provided together and they do point to the same tenant, az account get-access-token should allow passing both arguments.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Labels

ARMaz resource/group/lock/tag/deployment/policy/managementapp/account management-groupAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamfeature-request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions