I was following multiple articles to how to debug an azure app service on vs 2022. I learned that cloud explorer is deprecated in 2022 so I ran into this similar question and after I attach the debugger on the hosting section, I keep stumbling across one main issue.
The Visual Studio 2022 Remote Debugger (MSVSMON.EXE) does not appear to be running on the remote computer. This may be because a firewall is preventing communication to the remote computer. Please see Help for assistance on configuring remote debugging
I went to Windows Defender Firewall -> Allow an app or feature through Windows Defender Firewall and made sure that Visual Studio 2022 Remote Debugger was checked. I even went to the directory where my VS is installed and went to Common7/IDE/RemoteDebugger/x64/msvsmon.exe and clicked on it to start it which states
Msvsmon started a new server named 'Home'. Waiting for new connections.
I then searched for Firewall & network protection -> advanced settings -> inbound rules and made sure that there was a green check mark on Visual Studio 2022 Remote Debugger. I checked outbound rules and Visual Studio 2022 Remote Debugger is not on there, I saw that it was optional to add to outbound rules. So after doing all of that and closing out VS and re-opening it and trying to attach debugger again, I still come across the same error that I got before I did all of the requirements. I even turned off my firewall just to test it out and still got the same error message. Is there something that I am missing that is causing this error to still appear when I attempt to attach debugger?