Hi @Vijayakumar Ganji
Apology for the delay response .
The error you're encountering during the swap operation from the pre-deployment slot to production seems to be related to the mounting of the specified directories. The error message indicates that the system is trying to create a directory in a read-only file system, which suggests that there might be an issue with the mount points or the permissions associated with them- Ensure that the mount points (/home/site/wwwroot/myvar and /home/site/wwwroot/mydata) have the correct permissions set for the Azure App Service to access them.
- Since you mentioned that the connectivity is good, double-check the configuration of the storage account and the private endpoint to ensure there are no restrictions that might lead to a read-only state.
- Ensure that the VNET integration is correctly configured and that there are no network security group (NSG) rules or firewall settings that might be preventing access to the storage account.
- The startup command (bash /home/site/wwwroot/azure/startup.sh) should be verified to ensure that it does not inadvertently change the state of the file system or affect the mount points.
- Consider using the swap with preview feature to validate the settings and ensure that the application runs correctly with the new configuration before completing the swap.
Troubleshoot swaps Understand what happens during a swap
let me know if you have any further assistances.
If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue.