Automate chunking and committing IPA to Intune fails in Azure Pipeline

Tommy Le 0 Reputation points
2025-02-12T01:06:29.07+00:00

In effort of moving off of AppCenter and automating the deployment of an IPA to Intune, I'm using a PowerShell script to chunk and commit the file to Intune. This process is successful if it runs locally. But if it runs in Azure pipeline, it will fail to commit. The pipeline has all the permissions necessary for DeviceManagement. Has anyone ran into this type of issue before?

PATCH https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps/xxxxxxx-xxxxx-xxxxxx-xxxxx

{

"@odata.type": "#microsoft.graph.iosLOBApp",

"committedContentVersion": "109"

}

VERBOSE: Requested HTTP/1.1 PATCH with 85-byte payload

VERBOSE: Received HTTP/1.1 response of content type application/json of unknown size

PATCH https://graph.microsoft.com/v1.0/deviceAppManagement/mobileApps/xxxxxxx-xxxxx-xxxxxx-xxxxx

Response status code does not indicate success: 400 (Bad Request)

{

"error": {

"code": "BadRequest",

"message": "{\r\n \u0022_version\u0022: 3,\r\n \u0022Message\u0022: \u0022An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 9bf24d20-fcf5-420e-be87-a9ec6f66ae1f - Url: https://fef.msua05.manage.microsoft.com/AppLifecycle_2501/StatelessAppMetadataFEService/deviceAppManagement/mobileApps(\u0027332d7929-9120-4e9d-8cda-02f3ad6b1200\u0027)?api-version=2024-10-25\u0022,\r\n \u0022CustomApiErrorPhrase\u0022: \u0022\u0022,\r\n \u0022RetryAfter\u0022: null,\r\n \u0022ErrorSourceService\u0022: \u0022\u0022,\r\n \u0022HttpHeaders\u0022: \u0022{}\u0022\r\n}",

"innerError": {

"date": "2025-02-12T00:57:58",

"request-id": "9bf24d20-fcf5-420e-be87-a9ec6f66ae1f",

"client-request-id": "9bf24d20-fcf5-420e-be87-a9ec6f66ae1f"

}

}

}

Microsoft Intune iOS
Microsoft Intune iOS
Microsoft Intune: A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.iOS: An Apple mobile operating system.
255 questions
Microsoft Intune
Microsoft Intune
A Microsoft cloud-based management solution that offers mobile device management, mobile application management, and PC management capabilities.
5,555 questions
PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,811 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Xenia-MSFT 4,140 Reputation points Microsoft Vendor
    2025-02-12T05:49:10.3+00:00

    @Tommy Le Thanks for posting in our Q&A.

    Based on my search, script in Azure pipeline seems different from the script runs locally. Maybe it's a grammatical problem that's causing the failure.

    https://learn.microsoft.com/en-us/azure/devops/pipelines/scripts/powershell?view=azure-devops&tabs=yaml

    Honestly, I'm not familiar with Azure Pipeline. Given this situation, it is suggested to contact Azure support to get more accurate help. Here is the support link:

    https://learn.microsoft.com/en-us/azure/devops/user-guide/provide-feedback?view=azure-devops

    Thanks for your understanding and hope everything goes well with you.


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

Your answer

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