Environment I'm using is powershell 5, windows 11, I have a global admin account, have successfully configured and connected a custom App Registration to run "Connect-MSIntuneGraph -ClientID $clientID -TenantID $tenantID -ClientSecret $clientSecretValue"
Normally, I would just run the Add-IntuneWin32App, but to demonstrate a point I have written the following Do/Until loop.
My Do/Until Loop is attempting to upload an intunewin file with all its parameters. If my result fails, $Win32App variable is empty, so the loop restarts... BUT an app does get created, but indicates a failure to upload (screenshot#1 attached).
Here's where it gets really odd for me:
Repeated attempts to add the app in Intune result in different error messages during the upload-chunk-to-azure-blob bit (see screenshot #2), but EVENTUALLY succeed (which would reinforce my assertion that I have the correct connections/api/permissions setup in Azure). See screenshot #3.
Can anyone point me in the right direction to troubleshoot this a bit further? I've got a fairly straightforward DNS, and naturally the process appears to target different endpoints in the Azure storage blob cluster, but this shouldn't really account for fail/successes at different times if my code and permissions are consistent??
Screenshot1 (Intune error indicating an app exists, but upload failed):
Screenshot2 (multiple failures, different errors):
Environment I'm using is powershell 5, windows 11, I have a global admin account, have successfully configured and connected a custom App Registration to run "Connect-MSIntuneGraph -ClientID $clientID -TenantID $tenantID -ClientSecret $clientSecretValue"
Normally, I would just run the Add-IntuneWin32App, but to demonstrate a point I have written the following Do/Until loop.
My Do/Until Loop is attempting to upload an intunewin file with all its parameters. If my result fails, $Win32App variable is empty, so the loop restarts... BUT an app does get created, but indicates a failure to upload (screenshot#1 attached).
Here's where it gets really odd for me:
Repeated attempts to add the app in Intune result in different error messages during the upload-chunk-to-azure-blob bit (see screenshot #2), but EVENTUALLY succeed (which would reinforce my assertion that I have the correct connections/api/permissions setup in Azure). See screenshot #3.
Can anyone point me in the right direction to troubleshoot this a bit further? I've got a fairly straightforward DNS, and naturally the process appears to target different endpoints in the Azure storage blob cluster, but this shouldn't really account for fail/successes at different times if my code and permissions are consistent??
Screenshot1 (Intune error indicating an app exists, but upload failed):
Screenshot2 (multiple failures, different errors):
Screenshot3 (success):