amp; getting appended after & in APIM backend URL

Prasenna Kannan 46 Reputation points
2022-05-20T06:47:17.62+00:00

Team,

https://******/apimtest/bigfile140.zip?sv=2020-08-04&ss=bfqt&srt=sco&sp=rwdlacupitfx&se=2022-05-20T06:38:41Z&st=2022-05-19T22:38:41Z&spr=https&sig=Cfpp7VAok%2FatmLEnpdMsOz8j5qxjUPdXU4lx%2Ffr5AJI%3D

I have the above Storage SAS URL configured in my Azure APIM backend URL in one of the PUT operation.

When I have a look into the inbound policy. I notice that after every & amp; is getting appended?

Why is that?

Thanks!

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,782 questions
Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
2,453 questions
{count} votes

Accepted answer
  1. MayankBargali-MSFT 68,986 Reputation points
    2022-05-26T13:55:08.23+00:00

    @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: **
    205901-image.png

    **Policy: **
    205856-image.png

    **ocp-apim-trace to confirm the value is set correctly: **
    205826-image.png

    Let me know if it helps you to resolve the issue. Feel free to get back to me if you need any assistance.


0 additional answers

Sort by: Most helpful