Trusted IPs list and Powershell

Iron Contributor



I am trying to get all Trusted IPs in a powershell script. Does anyone know if  there is some Powershell cmdlets or Graph API to fetch them?


Thank you.

2 Replies

Hello Bhavpreet,


Microsoft Maintains their IP addressing on this XML file : 


You can either write your own powershell to parse this XML or use this one which already does it for you


Thank you, Prashant.

This is Microsoft maintained IP list. However, I looking for one's that we register in Azure MFA.