Sign in to the Azure portal and navigate to your App Service.
Click on "Configuration" from the left-hand menu.
Scroll down to the "General settings" section and toggle the "Web Sockets" option to "Off".
Scroll down to the "Application settings" section and click on "Add new setting".
Set the "Key" to "SCM_USE_MAIN_HUB_ENDPOINT" and the "Value" to "1".
Click on "Save" to apply the changes.
These steps will disable App Cache for your Azure App Service. Note that App Cache is not recommended for production environments as it can cause issues with caching stale data. If you need to use caching in your application, consider using a more robust caching solution such as Azure Redis Cache or Azure Cosmos DB.