Skip to content

Getting Authorization error #23822

@gnaneshke

Description

@gnaneshke

This is autogenerated. Please review and update as needed.

Describe the bug

Command Name
az account get-access-token

Errors:

Get Token request returned http error: 400 and server response: {"error":"interaction_required","error_description":"AADSTS70043: The refresh token has expired or is invalid due to sign-in frequency checks by conditional access. The token was issued on 2022-09-07T11:08:13.6140630Z and the maximum allowed lifetime for this request is 28800.\r\nTrace ID: 37459880-5813-4b55-95b4-89cd9f78e900\r\nCorrelation ID: b3e39851-a101-4b5d-a246-bf2e73b40bce\r\nTimestamp: 2022-09-08 08:18:14Z","error_codes":[70043],"timestamp":"2022-09-08 08:18:14Z","trace_id":"37459880-5813-4b55-95b4-89cd9f78e900","correlation_id":"b3e39851-a101-4b5d-a246-bf2e73b40bce","suberror":"token_expired"}
Traceback (most recent call last):
...

To Reproduce:

Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.

  • Put any pre-requisite steps here...
  • az account get-access-token --resource {} --subscription {} -o={}

Expected Behavior

Environment Summary

Linux-5.15.0-1019-azure-x86_64-with-glibc2.29
Python 3.8.10
Shell: bash

azure-cli 2.0.81

Extensions:
azure-devops 0.17.0

Additional Context

Metadata

Metadata

Labels

Accountaz login/accountAuto-AssignAuto assign by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamcustomer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-author-feedbackMore information is needed from author to address the issue.questionThe issue doesn't require a change to the product in order to be resolved. Most issues start as that

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions