Ability to update Named Locations using PowerShell
We have around 200 locations that use dynamic IP addresses that change frequently. We have the ability to pull the public IP addresses via REST API/PowerShell, but there is currently no way to update the Named Locations list programmatically. Without PowerShell, we are forced to manually dump the list to a CSV and upload the new file.
We would like to have the ability to add, remove, update Named Locations and entries in the IP Ranges of a Named Location.

Please checkout documentation at : https://docs.microsoft.com/en-us/powershell/module/azuread/get-azureadmsnamedlocationpolicy?view=azureadps-2.0
28 comments
-
Shane Foley (Admin) commented
Any update on this.... (started - Jul 15, 2019)
-
Luke H commented
YES, yes! please we need this
-
Gio commented
Another upvote for this! We really need this functionality for our automated onboarding experience.
-
Anonymous commented
We update our locations during M&A changes. Adding or removing 20-30 IP ranges at a time in the GUI is time consuming. Powershell is needed here.
-
Cliff commented
We have over 1500 sites now using SD-WAN and when ever there is a IP change we have a manual action to updated the named location. As we have the ability to request our SD-WAN IP changes via API it would be helpful if we could the ingest these via API to AAD. Is there any indication to when this will be available?
-
ME Admin commented
Need this feature! How long does it take to complete a feature like this? It's been almost a year since MSFT had "begun this work".
-
Anonymous commented
Any news? This seems to be ongoing for almost 1 year now...
-
ByDesign1977 commented
Really need this to update public IP addresses used by our subscription. Any update?
-
Dominic commented
Any news on this ?
-
Daniel Makinson commented
Really need this feature to automate and tie in with Meraki and other Marketing platforms for whitelisting
-
Tim Nielsen commented
There IS a way to do this at this time, however it relies on undocumented and unsupported features.
Upside is, that it allows for script access to practically all everything available in the Azure Portal, but since this is undocumented, it is subject to changes without warning.I would not recommend looking into this option, unless you are a skilled PowerShell specialist.
-
Evan Talley commented
Still no updated ETA on this? We have 900 new locations we have to add!
-
Geoff commented
I found a way to copy the list of trusted locations from the Azure MFA service settings however that is just a list of the IP ranges. A way to list them (get-namedlocation) so I could dump a csv with the details about the named locations would be very helpful along with the cmdlets to add/remove/modify the named locations.
-
Clint Swiney commented
This is a much needed feature. Please add me to the beta. I have a need to export the list.
Today the only way I can do it is to take screenshots! -
Anonymous commented
hi all, this have an ETA for release ?
-
Joe Dacey commented
ETA?
-
B commented
Rough ETA?
-
Devin Hilton commented
Also interested in updates to this and the progress behind it.
-
Kelvin Thom commented
Joining for updates to this cmdlet.
-
Robert McFeely commented
Any ETA? Ill beta test