`az account get-access-token` should allow passing both `--subscription` and `--tenant`
Open
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
Assessment
This issue has not been assessed yet.