Encountering issues with uploading a Win32 app using the Graph API. The following steps outline the process and the encountered problem:
- Authenticated using client credentials with
DeviceManagementApps.ReadWrite.All permission.
- File uploads successfully to Azure Blob Storage via AzCopy.
- The commit POST request returns a 200 status code (success).
- Immediately after, the file state shows
uploadState: "commitFileFailed" and isCommitted: false.
- This issue persists with both 12GB and 1.5KB .intunewin files.
- Encryption information is extracted correctly from detection.xml.
- Manual portal upload works fine.
- The PowerShell script adheres to the Microsoft Graph API documentation.
The commit payload structure used is as follows:
$encryptionInfoForCommit = [ordered]@{
encryptionKey = $EncryptionInfo.encryptionKey
macKey = $EncryptionInfo.macKey
initializationVector = $EncryptionInfo.initializationVector
mac = $EncryptionInfo.mac
profileIdentifier = $EncryptionInfo.profileIdentifier
fileDigest = $EncryptionInfo.fileDigest
fileDigestAlgorithm = $EncryptionInfo.fileDigestAlgorithm
}
Any thoughts or directions on how to resolve this issue? Despite the successful upload and the app appearing in Intune, the commit process fails.