Hello @Sirish Bajpai ,
I understand that you are trying to setup a CDN endpoint to serve static image files from a blob container and to restrict public access, the container account allows selected Vnets and IPs, and access is via SAS tokens, and you would like to know how to rewrite request URL to blob origin to inject SAS as query param using Edgio premium rules engine.
I just found that this is already available in the below doc which shows how to use CDN security token authentication with a rewrite rule using Azure CDN Premium from Edgio profile:
The URL rewrite uses the below parameters:
Source:(container1/.*)
--> Replace container1 with your container name from your Storage endpoint URL.
NOTE: For the source, you can also use just (.*).
Destination: $1&sv=2017-07-29&ss=b&srt=c&sp=r&se=2027-12-19T17:35:58Z&st=2017-12-19T09:35:58Z&spr=https&sig=kquaXsAuCLXomN7R00b8CYM13UpDbAHcsRfGOW3Du1M%3D
You just need to replace everything after $1
with your own SAS token from the Azure Storage Account.
The above URL is constructed using the parameters shown in the below doc:
But looks like the screenshot on the Using CDN security token authentication with a rewrite rule doc is from an older UI.
So, I'm sharing the new UI look screenshot below:
If the above screenshot is not clear, try to access this file: EdgioCDNSASRewriteRule.png
If you need a basic understanding of how to draft/write URL rewrite rules for Azure Premium Verizon CDN, please refer the below thread where I've explained it in more detail:
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.