Azure / Azure/azure-cli

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

Open
#32,755 1 comment 6 reactions 2 assignees Claimed by @ReaNAiveD View on GitHub
act-identity-squad ARM Auto-Assign Azure CLI Team feature-request
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

**Related command**
`az account get-access-token`

**Is your feature request related to a problem? Please describe.**
https://github.com/Azure/azure-sdk-for-go/issues/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**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.