Hello Luiggy,
Thank you for your question and for reaching out with your question today.
If you're experiencing a situation where the URL routing setting in your Azure App Service is being reset to its default configuration after each restart, there are a few possible causes and solutions to consider:
- Configuration Persistence: By default, App Service configurations, including URL routing settings, should persist across restarts. However, in some cases, configurations may not persist due to factors like scaling, deployment changes, or Azure updates. To ensure configuration persistence, consider using the App Service's configuration backup and restore feature, which allows you to save and apply configurations during deployment or scaling operations.
- Deployment/Continuous Integration (CI) Pipeline: If you have an automated deployment or CI pipeline set up for your App Service, the pipeline may be overwriting the URL routing configuration during each deployment. Check your deployment process and ensure that the pipeline isn't explicitly modifying the URL routing settings or resetting the configuration to its default values.
- Configuration as Code: If you're using Infrastructure as Code (IaC) tools like Azure Resource Manager (ARM) templates or Azure PowerShell scripts to provision and manage your App Service, review your configuration files to ensure that the URL routing settings are correctly defined and applied during each deployment.
- Azure Functions Proxies: If you're using Azure Functions Proxies for URL routing in your App Service, check the configuration of your proxies. Proxies can define custom routing rules and may override or conflict with the App Service's default URL routing settings. Make sure your proxy configuration is properly defined and does not interfere with the desired URL routing behavior.
- Azure Portal or API Interaction: If the URL routing configuration is being reset even without any user action, there might be a bug or issue with the Azure Portal or the underlying API. Report the issue to Microsoft Azure Support, providing specific details about the problem and any steps to reproduce it. They can investigate and provide further assistance.
It's recommended to review your deployment, configuration, and deployment pipeline processes to identify any potential causes for the URL routing setting being reset. If the issue persists after examining these areas, contacting Azure Support will allow them to investigate the issue further and provide guidance tailored to your specific scenario.
I used AI provided by ChatGPT to formulate part of this response. I have verified that the information is accurate before sharing it with you.
If the reply was helpful, please don’t forget to upvote or accept as answer.
Best regards.