Dec 03 2023 08:10 AM
Hello,
when I try to execute powershell commandlet
Get-MgBetaDeviceManagementReportNoncompliantDeviceAndSettingReport -outFile $csvfile
$csvfile is path for file output
i get an errror
Get-MgBetaDeviceManagementReportNoncompliantDeviceAndSettingReport : {
"_version": 3,
"Message": "An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: f26a55c7-85fa-41d5-a0ec-e1b8ff7d6050 - Url: https://fef.msub01.
manage.microsoft.com/ReportingService/StatelessReportingFEService/deviceManagement/reports/microsoft.management.services.api.getNoncompliantDevicesAndSettingsReport?api-version=5021-09-01",
"CustomApiErrorPhrase": "",
"RetryAfter": null,
"ErrorSourceService": "",
"HttpHeaders": "{}"
}
Status: 400 (BadRequest)
ErrorCode: BadRequest
Date: 2023-12-03T15:56:25
Headers:
Transfer-Encoding : chunked
Vary : Accept-Encoding
Strict-Transport-Security : max-age=31536000
request-id : e0792ae2-48ea-48ed-b650-53b38581142c
client-request-id : f26a55c7-85fa-41d5-a0ec-e1b8ff7d6050
x-ms-ags-diagnostic : {"ServerInfo":{"DataCenter":"France Central","Slice":"E","Ring":"5","ScaleUnit":"004","RoleInstance":"PA2PEPF000150AA"}}
Date : Sun, 03 Dec 2023 15:56:25 GMT
Au caractère C:\PowerShell\AzureAD_Intune_NoncompliantDevicesAndSettings.ps1:14 : 1
+ Get-MgBetaDeviceManagementReportNoncompliantDeviceAndSettingReport -o ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation : ({ body = Micros...ionJsonSchema }:<>f__AnonymousType0`1) [Get-MgBetaDevic...ort_GetExpanded], Exception
+ FullyQualifiedErrorId : BadRequest,Microsoft.Graph.Beta.PowerShell.Cmdlets.GetMgBetaDeviceManagementReportNoncompliantDeviceAndSettingReport_GetExpanded
All modules were installed an imported
i connect with "Microsoft application "and authorization are correct and granted