Skip to content

Get-MgBetaDeviceManagementManagedDeviceEncryptionState -Filter not work #3354

@YohannTh

Description

@YohannTh

Describe the bug

Get-MgBetaDeviceManagementManagedDeviceEncryptionState -filter "DeviceName eq 'PC-xxxx'" not working
Displays the complete list of devices without taking the filter into account
Get-MgBetaDeviceManagementManagedDeviceEncryptionState -Filter "EncryptionPolicySettingState eq 'compliant'" not working
Displays the complete list of devices without taking the filter into account
Get-MgBetaDeviceManagementManagedDeviceEncryptionState -Filter "EncryptionPolicySettingState eq '1'" not working
Displays the complete list of devices without taking the filter into account

The "Get-MgBetaDeviceManagementManagedDeviceEncryptionState -All" command does not show all devices. In particular, a Surface HUB v1 with the OS "Windows 10 TeamOS (119)". Is this normal?

Expected behavior

"Get-MgBetaDeviceManagementManagedDeviceEncryptionState" command to take filters into consideration.

How to reproduce

Get-MgBetaDeviceManagementManagedDeviceEncryptionState -Filter "EncryptionPolicySettingState eq 'compliant'"

SDK Version

2.28.0

Latest version known to work for scenario above?

No response

Known Workarounds

Using the "| Where-Object"

Debug output

Click to expand log ```
</details>


### Configuration

_No response_

### Other information

Only works with filter "id eq 'xxxx'".

Metadata

Metadata

Assignees

No one assigned

    Labels

    status:waiting-for-triageAn issue that is yet to be reviewed or assignedtype:bugA broken experience

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions