I have an Azure Storage account that hosts a static web site as explained here. This means the static web site "lives" in a storage container named $web
. This web site is accessible via a custom domain. This is currently working as desired. However, there is one file that I want to restrict access to.
There is one file in the $web
storage container that I only want individuals to access if a) they have a key and b) it's during a specific time window. My thinking was that I could accomplish this with a Shared Access Signature (SAS). However, while testing this approach, it doesn't seem to work. It seems that everything in the $web
storage container is publicly visible whether a SAS has been generated or not. Is this correct?
Is there a way to require that a file in the $web
storage container have an SAS? Or, do I need to "host" the file in a separate storage container (thus removing it from my custom domain)?
Thank you.