Closed andreiv3103 closed 1 month ago
Just tested again. Same behavior. Tried 2 times, with the error above. Time sync - tried again - it worked. The strange part is though that from the Intune console it works without any errors when I upload the intunewin file. But I need to do it from a script. And azcopy is way faster.
And another test. 2 failures. Time sync. Tried again, it works.
I found a workaround. If I add a 30 second pause before attempting the upload, it works every time.
The SAS token is valid for a certain time range only which you can set, seeing that re-syncing clock worked for you is it possible the clock was time was not correct when you ran the command? Great to know you found a workaround, maybe you can also try Microsoft Entra ID for auth.
To investigate further what's the exact reason for this, please share your DEBUG logs, thanks!
Hello!
I am using AzCopy to upload intune Win32 application packages. It works most of the time, but sometimes the upload fails like this:
Any idea what could cause this? The SAS URL is generated right before the upload, so I don't think it it a time issue. All this happens from PowerShell script. As I said, it is intermittent. What I tried, as suggested by ChatGPT, is to re-sync the clock. And after such a failure (2 failures one after the other) the time re-sync seems to have worked, because the 3rd try went through. Could this really be just a time skew issue?
Or perhaps I need to wait after the SAS url is generated and not try immediately?