@Ritesh Jain Welcome to Microsoft Q&A Forum, Thank you for posting your query here!
I understand that you are encountering the error System.Runtime.InteropServices.COMException (0x89710023)
while performing remote debugging of your Azure function App.
Please follow the below action plans for now:
1.Ensure that you have enabled the remote debugging option for your function app and selected the right VS version as shown below:
2.Please make sure your firewall allows port 4024 and its not blocked in your network. You can do a telnet to this port and check from your box.
For more details, refer to Configure the Windows Firewall for Remote Debugging and Remote Debugging Errors and Troubleshooting.
3.Check out Azure Remote Debugging: Failed to enable remote debuggingException from HRESULT: 0x89710023
4.Ensure that you have Downloaded and Installed the remote tools required for remote debugging. see here.
5.While publishing your Function App ensure that you have set the config to Debug mode.
6.To isolate this issue, try remote debugging from a different machine or a different network and check if that works fine.
If you still see the same issue even after following the above action plan, please do let me know. I would be happy to assist you further.
**
Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.