Forum Discussion
Conditional Access with Powershell
Based on article: Location conditions in Azure Active Directory conditional access
"API support and PowerShell
API and PowerShell is not yet supported for named locations, or for conditional access policies."
Does anyone know if and when Microsoft will provide this capability?
A customer would like to bulk import hundreds of IP address into a Named location under different Names. Current bulk upload functional can be done manually for one Name only.
So we would create a Name then upload. Create another name then upload, etc.
This can be very time consuming if there are numerous Named locations and IP Addresses.
Need to create many Names and within each name, bulk upload numerous IP ranges.
Trying to script out:
Create Name1 location, Upload bulk IP addresses
Create Name 2 location, Upload bulk IP addresses
:
Any assistance is greatly appreciated.
Thanks.
- DanielChronlundCopper Contributor
Oscar Goco - Microsoft recently added support for Conditional Access management in Microsoft Graph. I've written a blog post containing a proof of concept/sample script on how to automate Conditional Access policy deployment with PowerShell and Microsoft Graph.
https://danielchronlund.com/2019/11/07/automatic-deployment-of-conditional-access-with-powershell-and-microsoft-graph/ - Tore MelbergCopper Contributor
This has been upvoted trough uservoice and is on the to do list for Microsoft, but no time frame has been given as far as I have seen online yet.
https://feedback.azure.com/forums/169401-azure-active-directory/category/167259-conditional-access