Hi @Sharma, Sunil,
Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.
In Azure Kubernetes Service (AKS), custom error pages set up in Azure Application Gateway may be removed during updates by the Application Gateway Ingress Controller (AGIC). This happens because there's no simple way to define custom error pages directly within the Ingress resource.
To solve this, you can create a script that reapplies the custom error page settings after each deployment. The script can be run manually or integrated into your CI/CD pipeline, ensuring that the custom error pages are consistently restored after any changes to the Ingress resources.
If you have any further queries, do let us know.