Skip to content

Getting the below error while trying to authenticate to azure subscription #17142

@shalin231

Description

@shalin231

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 2021-01-19T08:57:18.3420000Z and the maximum allowed lifetime for this request is 28800.\r\nTrace ID: 7f71aec4-7ca4-457f-8346-4a6935741300\r\nCorrelation ID: aa01de5a-0067-4c86-a31a-1f3632d1feaa\r\nTimestamp: 2021-02-27 09:01:41Z","error_codes":[70043],"timestamp":"2021-02-27 09:01:41Z","trace_id":"7f71aec4-7ca4-457f-8346-4a6935741300","correlation_id":"aa01de5a-0067-4c86-a31a-1f3632d1feaa","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

macOS-10.15.4-x86_64-i386-64bit
Python 3.8.5
Installer: HOMEBREW

azure-cli 2.9.1

Additional Context

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions