Update device app management mobile ios

Tommy Le 0 Reputation points
2024-11-22T00:22:19.87+00:00

Attempting to make an http call to update an ios lob app to intune. App registration has the appropriate permissions. When making the call, the error is

{ "_version": 3, "Message": "An error has occurred - Operation ID (for customer support):

 | 00000000-0000-0000-0000-000000000000 - Activity ID: 1e4adc3d-7d39-4541-a477-da56d615205a - Url:

 | https://fef.msua05.manage.microsoft.com/AppLifecycle_2411/StatelessAppMetadataFEService/deviceAppManagement/mobileApps('xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx')?api-version=2024-09-06",   "CustomApiErrorPhrase": "",   "RetryAfter": null,   "ErrorSourceService": "",   "HttpHeaders": "{}" }
```What do this error mean? I've tried using Azure Monitor and looked through IntuneAuditLogs but nothing helpful. Has anyone come across this?

Thanks

Microsoft Security | Microsoft Entra | Microsoft Entra ID
Microsoft Security | Intune | Other
Microsoft Security | Microsoft Entra | Other
{count} votes

1 answer

Sort by: Most helpful
  1. Prathista Ilango 745 Reputation points Microsoft Employee
    2024-12-12T14:36:05.7033333+00:00

    Hello Tommy Le,
    The graph query is correct but 400 bad request usually happens in case of authorization failures because of insufficient permissions. Since you mentioned you are using app registration, try the following,

    1. Create a fresh app registration in Entra
    2. Provide delegated and application permissions required for the kind of actions you want to do. For example, the graph call you are working on requires the following permissions, DeviceManagementApps.Read.All
    3. Under Authentication – Platform configurations – Add a platform, select Mobile and desktop applications.
    4. Select the default URIs and add the below URI

    urn:ietf:wg:oauth:2.0:oob

    1. In total there would be 4, as per the screenshot below and save the settings.

    User's image

    Now use this app ID and secret to make the graph call. Hope that helps.

    If you found the information above helpful, please Click Yes. This will assist others in the community who encounter a similar issue, enabling them to quickly find the solution and benefit from the guidance provided.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.