Azure / Azure/azure-cli

`az account get-access-token` still v1

Open
#24,206 2 comments 1 reaction 1 assignee Claimed by @jiasli View on GitHub
Account act-identity-squad Auto-Assign Azure CLI Team customer-reported 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.**
The problem is quite simple i just cant find any information about it in the docs.
`az account get-access-token` returns v1 token instead of v2 which creates issues for us.
As microsoft has been going away from v1 for a while now, i wonder why `azurecli` still uses `v1`

**Describe the solution you'd like**
Issue v2 tokens.

**Describe alternatives you've considered**
Well, right now i am fighting similar lost battle with `app registrations` where the app still returns `v1` toke when called with curl.

**Additional context**
I am in a `v1` vs `v2` mess and i want to find a single issuer for tokens from azure that we can use for our normal users and service principals.

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.