I've got a REST API that uses Azure API Management, and when testing with large query strings, noticed that once the URL exceeds something around 1800 characters, the APIM does not route the request & instead sends back an error saying "Resource not found" & a status code of 400. When I run the same request directly to my REST endpoint locally, it works fine (I've increased the Kestrel server max request length like so in my Program.cs file :
WebHost.CreateDefaultBuilder(args)
.ConfigureKestrel((context, options) =>
{
options.Limits.MaxRequestLineSize = 2147483647;
options.Limits.MaxRequestBufferSize = 2147483647;
})
.UseStartup<Startup>();
Is there a similar configuration I can do for azure APIM to increase the max URL size allowed?