autopkg / almenscorner-recipes

AutoPkg recipes for Munki and Intune
Apache License 2.0
2 stars 1 forks source link

Unable to upload - FirefoxSigned.intune.recipe failed #8

Closed Mjaime001 closed 3 weeks ago

Mjaime001 commented 6 months ago

Hi I am following the instructions on this page: https://almenscorner.io/intune-uploader/

Having trouble uploading to our Intune Dev tenant, I'm receiving the following error:

The following recipes failed:
    FirefoxSigned.intune.recipe
        Error in local.intune.FirefoxSigned: Processor: com.github.almenscorner.intune-upload.processors/IntuneAppUploader: Error: ('Request failed with ', 401, ' - ', '{"error":{"code":"UnknownError","message":"{\\"ErrorCode\\":\\"Forbidden\\",\\"Message\\":\\"{\\\\r\\\\n  \\\\\\"_version\\\\\\": 3,\\\\r\\\\n  \\\\\\"Message\\\\\\": \\\\\\"An error has occurred - Operation ID (for customer support): 00000000-0000-0000-0000-000000000000 - Activity ID: 86ad1724-a2ba-4462-94b7-2488ce46d8b4 - Url: https://fef.amsua0102.manage.microsoft.com/AppLifecycle_2405/StatelessAppMetadataFEService/deviceAppManagement/mobileApps?api-version=5024-03-08&$filter=(isof(%27microsoft.management.services.api.macOSDmgApp%27)+or+isof(%27microsoft.management.services.api.macOSPkgApp%27)+or+isof(%27microsoft.management.services.api.macOSLobApp%27))+and+displayName+eq+%27Firefox%27&$expand=categories\\\\\\",\\\\r\\\\n  \\\\\\"CustomApiErrorPhrase\\\\\\": \\\\\\"\\\\\\",\\\\r\\\\n  \\\\\\"RetryAfter\\\\\\": null,\\\\r\\\\n  \\\\\\"ErrorSourceService\\\\\\": \\\\\\"\\\\\\",\\\\r\\\\n  \\\\\\"HttpHeaders\\\\\\": \\\\\\"{\\\\\\\\\\\\\\"WWW-Authenticate\\\\\\\\\\\\\\":\\\\\\\\\\\\\\"Bearer realm=\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"urn:intune:service,9225b241-44e1-44a8-8bfe-c10e39177505,3e9c57b9-808d-4aa0-9500-4b2d369279e7\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\"\\\\\\\\\\\\\\"}\\\\\\"\\\\r\\\\n}\\",\\"Target\\":null,\\"Details\\":null,\\"InnerError\\":null,\\"InstanceAnnotations\\":[]}","innerError":{"date":"2024-05-31T18:54:09","request-id":"86ad1724-a2ba-4462-94b7-2488ce46d8b4","client-request-id":"86ad1724-a2ba-4462-94b7-2488ce46d8b4"}}}')

The following new items were downloaded:
    Download Path                                                                                 
    -------------                                                                                 
    /Users/X_MY_USER_X/Library/AutoPkg/Cache/local.intune.FirefoxSigned/downloads/Firefox-126.0.1.pkg  
almenscorner commented 6 months ago

Looks like you're getting a 401 unauthorized when trying to upload to Intune, have you verified the API permissions on your app registration?

almenscorner commented 3 weeks ago

Closing issue, re-open if you are still facing this issue