question

AkashKadia-9275 avatar image
0 Votes"
AkashKadia-9275 asked GitaraniSharmaMSFT-4262 commented

How can I use Verizon Premium CDN to get CDN url with genrating new SAS token for each new request of blob Item ?

In application I am working we are using private blob container and for each new request of blob item we are generating new SAS token.

In microsoft standard CDN profile I have checked but there are only two option

1) compare whole url with SAS - which will not work as SAS token change each time and caching will not used
2) Ignore query part - that will allow access to blob item without SAS as it will be cached in edge server

So I am looking for options in Verizon Premium profile

few of the links I found in which it was using a fix SAS token for whole container which will be appended by CDN so keeping SAS hidden and using it for all blob item form that container

But is there way in which I can generate new SAS token for each blob item request and still use CDN ?

I am new at CDN and SAS token and this structure was already there so I am not sure if this is best practice or not.

azure-blob-storageazure-cdn
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

GitaraniSharmaMSFT-4262 avatar image
0 Votes"
GitaraniSharmaMSFT-4262 answered GitaraniSharmaMSFT-4262 commented

Hello @AkashKadia-9275 ,

Apologies for the delay in response.

SAS parameters are not visible to Azure CDN, Azure CDN cannot change its delivery behavior based on them.

The only available options to use Azure CDN with SAS are listed here:
https://docs.microsoft.com/en-us/azure/cdn/cdn-sas-storage-support

Kindly let us know if the above helps or you need further assistance on this issue.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi,

Thanks for reply and Sorry for delay I have stuck with other works.

For my requirement I think option 3 with CDN auth and SAS will work for me.

I am trying to implement option 3 and once I am done implementing it I will let you.

Thanks again.

1 Vote 1 ·

Hello @AkashKadia-9275 ,

Do you have any updates on this issue that you would like to share? Did option 3 work for you?

Regards,
Gita

0 Votes 0 ·
AkashKadia-9275 avatar image AkashKadia-9275 GitaraniSharmaMSFT-4262 ·

Hi,

Yes this issue is solved.
I got solution from verizon support team.
I am using Verizon CDN profile as per their suggestion I have implemented CDN auth token with URL rewrite to append SAS token to access private blob.

During rewrite I was using source?SASToken but with CDN auth token I need to use source&SASToken

another issue was that I was deploying on staging environment and so I need to use
https://staging.wpc.xxxxxx.alphacdn.net/

instead of that I was using

https://mycdn.azureedge.net/

thanks for followup and suggestions



1 Vote 1 ·
Show more comments