[Azure] Erreur OMS Gateway

moins de 1 minute(s) de lecture

En déployant une Gateway OMS, pour Windows Defender ATP, j’ai eu l’erreur suivante:

2020-02-28 13:19:05 [47] ERROR GatewayLogic - Target host (winatp-gw-uks.microsoft.com) is forbidden. Destination server is not in allowed list. Ensure that the Microsoft Monitoring Agent on your Gateway box and the agents talking to the Gateway, are both connected to the same Log Analytics workspace.

Cette erreur indique que la gateway OMS ne peut pas communiquer avec l’URL qui est indiquée. J’ai donc regardé les connexions entrante sur le serveur OMS gateway, et j’ai pu voir que certains serveurs étaient avec le status TIME_WAIT après avoir fait un netstat -an:

Après quelques recherches, j’ai trouvé la commande PowerShell Add-OMSGatewayAllowedHost sur la gateway. J’ai donc autorisé les URLs que j’avais en erreur, et redémarré le service OMSGatewayService:

Add-OMSGatewayAllowedHost -Host winatp-gw-weu.microsoft.com -Force
Add-OMSGatewayAllowedHost -Host winatp-gw-cus.microsoft.com -Force
Add-OMSGatewayAllowedHost -Host winatp-gw-eus.microsoft.com -Force
Add-OMSGatewayAllowedHost -Host eu-v20.events.data.microsoft.com -Force
Add-OMSGatewayAllowedHost -Host v20.events.data.microsoft.com -Force
Add-OMSGatewayAllowedHost -Host settings-win.data.microsoft.com -Force
Restart-Service OMSGatewayService 

Après le redémarrage du service, plus aucune erreur n’est apparue:

En espérant vous avoir fait gagner du temps :)

Laisser un commentaire