JOJO
JOJO

Reputation: 91

Expiry of url after file upload using Azure Blob Storage?

I've been researching and I haven't found the maximum time limit that a url can be accessed after file upload using Azure Blob Storage. The url that will be generated will be accessed by anonymous users and I wanted to know what is the maximum time that anonymous users can access it?

Upvotes: 2

Views: 2906

Answers (1)

Gaurav Mantri
Gaurav Mantri

Reputation: 136306

The url that will be generated will be accessed by anonymous users and I wanted to know what is the maximum time that anonymous users can access it?

As such there's no maximum time limit imposed by Azure on the expiry of a SAS URL. You can set it to 9999-12-31T23:59:59Z so that it never expires.

However it is not recommended. You should always issue SAS URLs that are short lived so that they can't be misused.

You can find more information about the best practices for SAS here: https://learn.microsoft.com/en-us/azure/storage/common/storage-sas-overview#best-practices-when-using-sas.

Upvotes: 3

Related Questions