Greetings.
May I know what exactly was issue with using AFD Rule Engine?
I did a lab and I was successfully able to achieve this,
- You have to append the SAS Token to the URL Path
- The trick is to rewrite the entire URLPath with {url_path} server variable + SAS Token
- Something like this,
From AFD Logs,
- As you can see, the original request from client was <AFDEndPoint>/private/index.html
- But the request that went to the Storage Account was <StorageAccountName>.blob.core.windows.net:443/private/index.html?<SASToken>
- The "?<SASToken>" got appended because of the Rule Engine Rule.
- And I got a successful 200
For more information,
- URL Rewrite : https://learn.microsoft.com/en-us/azure/frontdoor/front-door-url-rewrite?pivots=front-door-standard-premium
- Server Variables in Rule Sets : https://learn.microsoft.com/en-us/azure/frontdoor/rule-set-server-variables#server-variable-format
Kindly let us know if this helps or you need further assistance on this issue.
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.