MSEndpointMgr / IntuneWin32App

Provides a set of functions to manage all aspects of Win32 apps in Microsoft Intune.
MIT License
351 stars 91 forks source link

Intune service request for operation 'CommitFile' failed error when creating a new app #148

Closed Skeb1ns closed 8 months ago

Skeb1ns commented 8 months ago

I don't know how long this has been broken but I noticed today that I'm unable to create a new app using the Add-IntuneWin32App cmdlet. It looks like the .intunewin upload function on the Graph backend is broken. (Using v1.4.3 btw)

Verbose logging below:

VERBOSE: Processing win32 app creation in Intune
WARNING: Query for Win32 app returned an empty result, no apps matching the specified search criteria was found
VERBOSE: Creating Screaming Frog Log File Analyser win32 app in Intune
VERBOSE: Access token refresh is not required, remaining minutes until expiration: 49
VERBOSE: Attempting to gather additional meta data from .intunewin file: Y:\Windows\Apps\Custom\ScreamingFrogLogFileAnalyser-Custom-System.intunewin
VERBOSE: Successfully gathered additional meta data from .intunewin file
VERBOSE: Start constructing basic layout of Win32 app body
VERBOSE: Constructed the basic layout for 'EXE' Win32 app body type
VERBOSE: Detection rule objects passed validation checks, attempting to add to existing Win32 app body
VERBOSE: Retrieving default set of return codes for Win32 app body construction
VERBOSE: Adding array of return codes to Win32 app body construction
VERBOSE: Attempting to create Win32 app using constructed body converted to JSON content
VERBOSE: POST https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps
VERBOSE: Successfully created Win32 app with ID: 1a6c4c78-b372-4a05-af3b-b05c6c9de522
VERBOSE: Attempting to create contentVersions resource for the Win32 app
VERBOSE: POST https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps/1a6c4c78-b372-4a05-af3b-b05c6c9de522/microsoft.graph.win32LobApp/contentVersions
VERBOSE: GET https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps/1a6c4c78-b372-4a05-af3b-b05c6c9de522/microsoft.graph.win32LobApp/contentVersions/1/files/9497e473-468b-42e7-89ea-136f15cb6a74
VERBOSE: Intune service request for operation 'AzureStorageUriRequest' was successful with uploadState: azureStorageUriRequestSuccess
VERBOSE: Using native method for file transfer
VERBOSE: SAS Uri renewal timer has elapsed for: 0 minute 0 seconds
VERBOSE: Uploading file to Azure Storage blob, processing chunk '1' of '1'
VERBOSE: Requested HTTP/1.1 PUT with 868357-byte payload
VERBOSE: Received HTTP/1.1 0-byte response of content type 
VERBOSE: Requested HTTP/1.1 PUT with 86-byte payload
VERBOSE: Received HTTP/1.1 0-byte response of content type 
VERBOSE: Content encoding: utf-8
VERBOSE: POST https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps/1a6c4c78-b372-4a05-af3b-b05c6c9de522/microsoft.graph.win32LobApp/contentVersions/1/files/9497e473-468b-42e7-89ea-136f15cb6a74/commit    
VERBOSE: Waiting for Intune service to process the commit file request
VERBOSE: GET https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps/1a6c4c78-b372-4a05-af3b-b05c6c9de522/microsoft.graph.win32LobApp/contentVersions/1/files/9497e473-468b-42e7-89ea-136f15cb6a74
VERBOSE: Intune service request for operation 'CommitFile' is in pending state, sleeping for 10 seconds
VERBOSE: GET https://graph.microsoft.com/Beta/deviceAppManagement/mobileApps/1a6c4c78-b372-4a05-af3b-b05c6c9de522/microsoft.graph.win32LobApp/contentVersions/1/files/9497e473-468b-42e7-89ea-136f15cb6a74
WARNING: Intune service request for operation 'CommitFile' failed
WARNING: Failed to create Win32 app, commit file request operation failed
WARNING: Empty response for assignments for Win32 app: Screaming Frog Log File Analyser
intrcptn commented 8 months ago

@Skeb1ns Uninstalling Powershell 7.4.X and installing 7.3.9 worked for me. This was highlighted in issue #128 .

Skeb1ns commented 8 months ago

Doh, I failed for my 'first search if nobody else mentioned this' test. My bad!

NickolajA commented 8 months ago

This will be added in 1.4.4 :)