powershell-intune-samples icon indicating copy to clipboard operation
powershell-intune-samples copied to clipboard

SAS Uri Expiration

Open rodfmarin opened this issue 7 years ago • 1 comments

https://github.com/microsoftgraph/powershell-intune-samples/blob/5bf2e5bc59ae1ce1b2980299dbd98aca49b6bd92/LOB_Application/Application_LOB_Add.ps1#L331

The SAS Uri has an expiration time associated with it. If the file is sufficiently large you may go over the expiration time and receive an error such as:

Response status code does not indicate success: 403 (Server failed to authenticate the request. Make sure the value of Authorization header is formed
correctly including the signature.).

In order to extend the time needed for a large upload or slow upload time the endpoint renewUpload should be called on the content file ala:

https://developer.microsoft.com/en-us/graph/docs/api-reference/v1.0/api/intune_apps_mobileappcontentfile_renewupload

rodfmarin avatar Sep 20 '18 00:09 rodfmarin

I was having the same issue. Here is updated link: https://learn.microsoft.com/en-us/graph/api/intune-apps-mobileappcontentfile-renewupload?view=graph-rest-1.0

ebashcobaltix avatar Feb 07 '24 08:02 ebashcobaltix