Trusted IPs list and Powershell

%3CLINGO-SUB%20id%3D%22lingo-sub-198336%22%20slang%3D%22en-US%22%3ETrusted%20IPs%20list%20and%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198336%22%20slang%3D%22en-US%22%3E%3CP%3EHello%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EI%20am%20trying%20to%20get%20all%20Trusted%20IPs%20in%20a%20powershell%20script.%20Does%20anyone%20know%20if%26nbsp%3B%20there%20is%20some%20Powershell%20cmdlets%20or%20Graph%20API%20to%20fetch%20them%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EThank%20you.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-198336%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-198981%22%20slang%3D%22en-US%22%3ERe%3A%20Trusted%20IPs%20list%20and%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198981%22%20slang%3D%22en-US%22%3E%3CP%3EThank%20you%2C%20Prashant.%3C%2FP%3E%3CP%3EThis%20is%26nbsp%3BMicrosoft%20maintained%20IP%20list.%20However%2C%26nbsp%3BI%26nbsp%3Blooking%20for%20one's%20that%20we%20register%20in%20Azure%20MFA.%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-198338%22%20slang%3D%22en-US%22%3ERe%3A%20Trusted%20IPs%20list%20and%20Powershell%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-198338%22%20slang%3D%22en-US%22%3E%3CP%3EHello%20Bhavpreet%2C%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EMicrosoft%20Maintains%20their%20IP%20addressing%20on%20this%20XML%20file%20%3A%20%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fsupport.content.office.net%2Fen-us%2Fstatic%2FO365IPAddresses.xml%26nbsp%3B%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fsupport.content.office.net%2Fen-us%2Fstatic%2FO365IPAddresses.xml%26nbsp%3B%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3EYou%20can%20either%20write%20your%20own%20powershell%20to%20parse%20this%20XML%20or%20use%20this%20one%20which%20already%20does%20it%20for%20you%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fgallery.technet.microsoft.com%2Foffice%2FGet-Office-365-IP-v4-562987d5%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fgallery.technet.microsoft.com%2Foffice%2FGet-Office-365-IP-v4-562987d5%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E
Highlighted
Frequent Contributor

Hello,

 

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
Highlighted

Hello Bhavpreet,

 

Microsoft Maintains their IP addressing on this XML file :  https://support.content.office.net/en-us/static/O365IPAddresses.xml 

 

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

https://gallery.technet.microsoft.com/office/Get-Office-365-IP-v4-562987d5

 

Highlighted

Thank you, Prashant.

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