Skip to content

Unable to login via az login --scope https://graph.microsoft.com/.default #28062

@deepanshusingh93

Description

@deepanshusingh93

Describe the bug

I am trying to use "terraform apply" command on WSL.
Facing below error message
Error: building account: could not acquire access token to parse claims: running Azure CLI: exit status 1: ERROR: AADSTS530003: Your device is required to be managed to access this resource. Trace ID: b13f7094-564d-484a-bf0a-7943d2188a00 Correlation ID: 6109f588-c22c-48fc-ab31-99035cbe523a Timestamp: 2023-12-19 10:57:18Z │ To re-authenticate, please run: │ az login --scope https://graph.microsoft.com/.default │ │ with provider["registry.terraform.io/hashicorp/azurerm"], │ on main.tf line 3, in provider "azurerm": │ 3: provider "azurerm" { │

and If I try to login via az login --scope https://graph.microsoft.com/.default.
It is giving me

`Authentication failed
access_denied: $error_description. ($error_uri)

You can log an issue at Azure CLI GitHub Repository and we will assist you in resolving it.`

Related command

terraform apply
az login --scope https://graph.microsoft.com/.default

Errors

Error: building account: could not acquire access token to parse claims: running Azure CLI: exit status 1: ERROR: AADSTS530003: Your device is required to be managed to access this resource. Trace ID: b13f7094-564d-484a-bf0a-7943d2188a00 Correlation ID: 6109f588-c22c-48fc-ab31-99035cbe523a Timestamp: 2023-12-19 10:57:18Z
│ To re-authenticate, please run:
│ az login --scope https://graph.microsoft.com/.default

│ with provider["registry.terraform.io/hashicorp/azurerm"],
│ on main.tf line 3, in provider "azurerm":
│ 3: provider "azurerm" {

Issue script & Debug output

NA

Expected behavior

It should login via az login --scope https://graph.microsoft.com/.default

Environment Summary

deepanshu_linux@Deepanshu-PC:~/fcore-fusion-core/pctt/iac/aks_arm$ az --version
azure-cli 2.39.0 *

core 2.39.0 *
telemetry 1.0.6 *

Extensions:
k8s-extension 1.4.0
customlocation 0.1.3

Dependencies:
msal 1.18.0b1
azure-mgmt-resource 21.1.0b1

Python location '/opt/az/bin/python3'
Extensions directory '/home/deepanshu_linux/.azure/cliextensions'

Python (Linux) 3.10.5 (main, Jul 29 2022, 03:26:59) [GCC 9.4.0]

Legal docs and information: aka.ms/AzureCliLegal

You have 3 updates available. Consider updating your CLI installation with 'az upgrade'

Please let us know how we are doing: https://aka.ms/azureclihats
and let us know if you're interested in trying out our newest features: https://aka.ms/CLIUXstudy
deepanshu_linux@Deepanshu-PC:~/fcore-fusion-core/pctt/iac/aks_arm$

Additional context

No response

Metadata

Metadata

Assignees

Labels

Accountaz login/accountAuto-AssignAuto assign by botAuto-ResolveAuto resolve by botAzure CLI TeamThe command of the issue is owned by Azure CLI teamOKR CandidateThis label is used to track how many GitHub issues we have resolved for OKR purpose.Upgradeaz upgradeneeds-author-feedbackMore information is needed from author to address the issue.no-recent-activityThere has been no recent activity on this 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

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions