-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Description
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