MSEndpointMgr / IntuneWin32App

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

Token expired issue when using Add-IntuneWin32App command #23

Open micachi opened 3 years ago

micachi commented 3 years ago

If the upload takes more than an hour, the Connect-MSIntuneGraph token will expire and you will not be able to commit the file.

NickolajA commented 1 year ago

Test the UseAzCopy switch parameter, it's way faster to upload using that method. However, I'm planning on building in Test-AccessToken to renew the token when it's about to expire, in 1.5.0.

NickolajA commented 1 year ago

Which version did you get this issue with? I just looked through the code and since version 1.3.5, the Invoke-AzureStorageBlobUpload function contains code to handle token expiration. I'm not saying it should work, however I'm curious to understand if it actually does work.