An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.
Hi Bahlul Guliyev,
Welcome to Microsoft Q&A Platform.
I see what you’re trying to do: keep Application Gateway managed by AGIC for your AKS apps, but for one specific path (for example /path3) you want the gateway to send requests to Azure Blob Storage static website ($web/red.html).
Key point about AGIC vs manual App Gateway configuration With AGIC, Kubernetes Ingress resources are the “source of truth,” and AGIC dynamically updates Application Gateway listeners, backend pools, and routing rules. Because of that, the general limitation you mentioned (manual additions being overwritten during AGIC reconciliation) applies in practice to things like adding storage-account backends/pools/rules manually.
From the provided docs, AGIC’s integration model is described as “dynamically updates Application Gateway based on Kubernetes Ingress resources,” and also lists several limitations/requirements (v2 SKU required, etc.). The docs you provided don’t mention a supported way for you to “pin” a manual backend (like a Storage Account) so it won’t be changed by AGIC.
What you can do with Application Gateway redirection (supported by the docs) If your goal is specifically: “for this path, send the client to Storage”, then you can use Application Gateway path-based redirection to an external URL (instead of trying to configure Storage as a backend pool).
Application Gateway supports:
- Path-based routing rules
- Redirect action to an external site URL
So the typical approach is:
Configure an Application Gateway path-based rule for /path3
- Set the action to Redirect
- Set the target URL to the appropriate Storage static website endpoint, for example something like: https://<storage-static-website-host>/red.html (or your $web-mapped path)
The relevant doc explicitly calls out this pattern: create a listener + add a Path-based rule, and set action to Redirect with the external URL.
Note: the docs say rewrite rules are not designed for redirection to external sites—they’re primarily for modifying headers—so you’d want path-based redirect rather than rewrite.
How to fit this with “App Gateway managed by AGIC” Based on what’s in the provided documentation, the cleanest conceptual fit is:
- Use AGIC-managed routing for your AKS apps
- Use Application Gateway path-based redirect logic for /path3 to an external Storage URL (rather than treating Storage as an App Gateway backend)
However, the provided documentation does not confirm whether you can safely configure that redirect rule “outside AGIC” without it being overwritten—or whether you must express it via Kubernetes Ingress features supported by AGIC. So there’s a gap here. Practical recommendation
- If redirecting the browser is acceptable (301/302 behavior), use path-based redirect to the Storage static website URL.
- If you require reverse-proxy behavior (keeping the same URL/path while serving content from Storage behind the scenes), that would normally imply adding Storage as a backend, which conflicts with the AGIC “source of truth” model you described and the docs you provided don’t offer a supported workaround.
References :
- Configure External Redirection from a Specific Path in Application Gateway (path-based redirect to external site) https://learn.microsoft.com/azure/application-gateway/url-route-overview https://learn.microsoft.com/azure/application-gateway/create-url-route-portal
- Configure Application Gateway redirection (general redirection mechanism overview) https://supportabilityhub.microsoft.com/solutions/apollosolutions/77c1d94c-b5f4-d0d1-a279-1a30bdccfdd9/apollo-configure-redirection
- Set up and configure AKS Ingress Controller with Application Gateway (AGIC integration model + requirements/limitations) https://learn.microsoft.com/azure/application-gateway/ingress-controller-install-existing
https://learn.microsoft.com/azure/application-gateway/ingress-controller-overview - Limitations of URL Rewrite in Application Gateway / redirect guidance (via the same redirection doc references) https://learn.microsoft.com/azure/application-gateway/rewrite-http-headers-url#limitations
Please
and “up-vote” wherever the information provided helps you, **this can be beneficial to other community members..