"Get-AzureADMSConditionalAccessPolicy " 特定租户 returns 错误

"Get-AzureADMSConditionalAccessPolicy " in a specific tenant returns errors

我有 Get-AzureADMSConditionalAccessPolicy cmdlet returning errors in a specific customer tenants. majority 个租户的问题,cmdlet 工作正常。返回的 csv 为空。

我的代码

$allpolicies = Get-AzureADMSConditionalAccessPolicy 

$allpolicies | ForEach-Object {
    New-object -typename PSobject -property @{
        ID                           = $_.Id
        DisplayName                  = $_.DisplayName
        Policy_State                 = $_.State
        Includedapps                 = ($_.Conditions).Applications.IncludeApplications -join ';'
        Users_Applied_The_Policy     = ($_.Conditions).Users.IncludeUsers -join ';'
        Groups_Applied_The_Policy    = ($_.Conditions).Users.IncludeGroups -join ';'
        Locations_Applied_The_Policy = ($_.Conditions).Locations.includelocations -join ';'
    }
} | Sort-Object ID, DisplayName, Policy_State, Includedapps, Users_Applied_Policy, Groups_Applied_Policy, Locations_Applied | Export-Csv -Path C:\CAccessResults3.csv -NoTypeInformation

查看附件中我遇到的错误。

在我的环境中测试,如果为设备平台创建了任何条件访问策略,则会出现相同的错误 Linux。

解决方案:解决方法删除了 Linux 设备的策略 plateform.It 正在工作,因为来自第一张图片的 expected.As Linux 仍处于预览状态