question

AkshayH-4288 avatar image
0 Votes"
AkshayH-4288 asked ryanchill commented

Routing to a web app slot with query parameters

I have created a web app with multiple slots in azure, I can use it for my A|B testing.

Let’s say https://mysite.azurewebsites.net is my production site https://mysite-staging.azurewebsites.net is my staging site.

When I enable the traffic route (say 30%) to a staging slot, whenever a user hits the production URL with query parameters - https://mysite.azurewebsites.net/?name=xyz&id=1, it is routing that request to staging slot without query parameters https://mysite-staging.azurewebsites.net.

How can we route the request without dropping any query params?

azure-webapps
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Do you have manual traffic routing anywhere in your site @AkshayH-4288?

0 Votes 0 ·

@ryanchill Yes, we have manual traffic routing between staging and production sites. User can go back to the production site using a query parameter x-ms-routing-name=self

We have enabled routing traffic automatically to another slot. The problem is when user hits the production site with some query params, the automated route drops the query parameter and routes it to a specified slot.

0 Votes 0 ·

Got it @AkshayH-4288. A couple of more questions.

  • Is it reproducible consistently on the slot with automatically routing?

  • Are the slots manual routing affected?

  • Are the query parameters applied before or after the client hits your app service?


0 Votes 0 ·
Show more comments

0 Answers