You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
data"azuread_directory_object""this" {
object_id=...# object type "#microsoft.graph.device"
}
Expected Behavior
I expected the code to succeed; and for the data source to have some string (not documented, so not sure what the format would be) indicating the type of the object.
Actual Behavior
The code failed with error:
╷
│ Error: unknown object type "#microsoft.graph.device" returned for directory object with ID: "..."
│ ...
Steps to Reproduce
terraform plan
The text was updated successfully, but these errors were encountered:
We have a use case where we want to collect the users in multiple groups, however these groups may contain other directory objects that are out of our control. In the case of those objects, we want our code to ignore those objects, but in its current state, the provider throws an error, preventing us from continuing.
Any progress on this? I made a quick and dirty PR that just uses the string from upstream as-is. Would be great to get a review so that I can improve the solution or get this merged.
Community Note
Terraform (and AzureAD Provider) Version
Terraform v1.3.7
on windows_amd64
Affected Resource(s)
azuread_directory_object
data sourceTerraform Configuration Files
Expected Behavior
I expected the code to succeed; and for the data source to have some string (not documented, so not sure what the format would be) indicating the type of the object.
Actual Behavior
The code failed with error:
Steps to Reproduce
terraform plan
The text was updated successfully, but these errors were encountered: