Open ThomasShih opened 2 months ago
Hi @ThomasShih,
2.55.0 is not the latest Azure CLI(2.59.0).
If you haven't already attempted to do so, please upgrade to the latest Azure CLI version by following https://learn.microsoft.com/en-us/cli/azure/update-azure-cli.
Thank you for opening this issue, we will look into it.
In similar light, using the token generated leads to a The access token does not have a valid signature or is expired. Please acquire a new token and retry.
error. Its clearly not expired, and I don't think the signature is invalid? Perhaps this is also a bug that the error returned is not semantic.
Describe the bug
I made the mistake of trying to use a resource id within the resource param:
and it still provided a token back. However the token is invalid. The only thing raising a red flag was the fact that the expiry was for 24 hrs.
Documentation specifies that all tokens should be
The token will be valid for at least 5 minutes with the maximum at 60 minutes
. Clearly something is going wrong, perhaps this could mean there is an opportuinty to provide a more semantic response?Related command
az account get-access-token
Errors
No explicit errors
Issue script & Debug output
Expected behavior
Some error code telling me that something is wrong, like the expiry is clearly too far or something
Environment Summary
azure-cli 2.55.0 *
core 2.55.0 * telemetry 1.1.0
Dependencies: msal 1.24.0b2 azure-mgmt-resource 23.1.0b2
Additional context
No response