powershell-intune-samples icon indicating copy to clipboard operation
powershell-intune-samples copied to clipboard

AssociatedFilter_Get.ps1 - Request to mobileApps failed with HTTP Status 504 Gateway Timeout

Open ASMailer opened this issue 4 years ago • 0 comments

Hello Dave, the script "AssociatedFilter_Get.ps1" is running until mobileapps. Then the script stops with the return message:

Request to https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps?$expand=assignments failed with HTTP Status 504 Gateway Timeout Response content: {"error":{"code":"UnknownError","message":"{"Message":"{\r\n \"_version\": 3,\r\n \"Message\": \"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 48f237a2-01a5-49a7-a69b-194bc 705bddb - Url: https://fef.msub02.manage.microsoft.com/TrafficGateway/TrafficRoutingService/AppLifecycle/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5021-09-10&$expand=assignments\",\r\n \"CustomApiErrorPhrase\": \"\
",\r\n \"RetryAfter\": null,\r\n \"ErrorSourceService\": \"\",\r\n \"HttpHeaders\": \"{}\"\r\n}"}","innerError":{"date":"2021-11-12T09:26:35","request-id":"48f237a2-01a5-49a7-a69b-194bc705bddb","client-request-id":"48f237a2-01 a5-49a7-a69b-194bc705bddb"}}} Get-IntuneApplication : Request to https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps?$expand=assignments failed with HTTP Status GatewayTimeout Gateway Timeout At line:1104 char:9

  • $Apps = Get-IntuneApplication
  •     ~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : NotSpecified: (:) [Write-Error], WriteErrorException
    • FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,Get-IntuneApplication

Just a guess, we have a mass of win32apps (4500) and could this issue caused because of paging / timeout?

Thx Andi

ASMailer avatar Nov 12 '21 09:11 ASMailer