Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error - Deploy to Azure: Your device is required to be managed to access this resource #9

Open
mattmazzola opened this issue Jun 11, 2024 · 0 comments
Assignees

Comments

@mattmazzola
Copy link

Continuing the attempt to follow Deploy to Azure instructions, I was able to get past #8 but then hit another error when attempting to deploy.

Your device is required to be managed to access this resource

However, my device is managed.
I think this may have to do with the container. The host is not allowing the container to recognize that it is managed.

Error

╷
│ Error: building account: getting authenticated object ID: parsing json result from the Azure CLI: waiting for the Azure CLI: exit status 1: ERROR: AADSTS530003: Your device is required to be managed to access this resource. Trace ID: bb2c0ee3-51ee-4881-8f5d-c4a302f55300 Correlation ID: d4ca1f84-57e5-4a56-8467-8b6441f303c8 Timestamp: 2024-06-11 16:57:36Z
│ Interactive authentication is needed. Please run:
│ az login --scope https://graph.microsoft.com//.default
│
│   with provider["registry.terraform.io/hashicorp/azurerm"],
│   on main.tf line 13, in provider "azurerm":
│   13: provider "azurerm" {
│
╵

I did run az login --scope https://graph.microsoft.com//.default but it prints out another message and doesn't succeed no effect.

Help us keep your device secure
Your sign-in was successful but your admin requires the device requesting access to be managed by Microsoft to access this resource.

Oddly, in the error details it even says:
Device state: Compliant
🤔

@myurasov-nv myurasov-nv self-assigned this Jun 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants