@Prasenna Kannan As per Rewrite URL document you cannot use query string.
purely structural URLs that do not contain a query string and instead contain only the path of the resource
You can leverage the named values for your requirement. I have defined the sas
name value at my APIM instance and leverage the same in my rewrite policy.
**Name/Value: **
**Policy: **
**ocp-apim-trace to confirm the value is set correctly: **
Let me know if it helps you to resolve the issue. Feel free to get back to me if you need any assistance.