In Azure API Management ,the Backend URL seems to inherit the API Management URL

Robert Heynen 50 Reputation points
2023-12-14T00:03:39.55+00:00

Setting up an Azure API Operation, the URL in the setting is "/SomeName"

This value seems to concatenate onto the Backend-service Base-URL

Example: If Backend-Service Base Urls is https://someurl.com/test

The backend url with the above URL in the setting ends up as:

https://someurl.com/test/SomeName

It does not appear I can set the back end to connect to https://someurl.com/test/someothername

Is there a way to circumvent this behavior?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,455 questions
{count} votes

Accepted answer
  1. JananiRamesh-MSFT 29,276 Reputation points
    2023-12-19T10:58:28.7933333+00:00

    @Robert Heynen Thanks for getting back, this behavior is by design. you can use the rewrite policy at the operation level, the "template" value will be the value you want to append to the backend base url 

      <rewrite-uri template="/" />
    

    User's image

    User's image

    please try this and let me know incase of further queries, I would be happy to assist you.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.