Sitecore Azure - Exception when executing agent pathAnalyzer/newMapAgent

If you are seeing the error “Exception when executing agent pathAnalyzer/newMapAgent“ or “Can’t create instance using path ‘pathAnalyzer/webRequestFactory'” in the log files of a CM server on Azure, you will need to check that you have the right configs enabled/disabled:

ENABLE -> Sitecore.PathAnalyzer.RemoteClient.config
DISABLE -> Sitecore.PathAnalyzer.Processing.config
DISABLE -> Sitecore.PathAnalyzer.Services.RemoteServer.config

References:

https://doc.sitecore.net/sitecore_experience_platform/80/setting_up__maintaining/xdb/configuring_servers/configure_a_content_management_server#_Configuring_the_Path

https://doc.sitecore.net/sitecore_experience_platform/setting_up__maintaining/xdb/configuring_servers/configure_a_content_management_server