New-AzureADMSNamedLocationPolicy
This article provides migration details from New-AzureADMSNamedLocationPolicy command to Microsoft Graph PowerShell.
Summary
- Azure AD Command: New-AzureADMSNamedLocationPolicy
- Azure AD Module: AzureAD
- Microsoft Graph Command: New-MgIdentityConditionalAccessNamedLocation (Community Examples)
- Graph Module: Microsoft.Graph.Identity.SignIns
- Graph Endpoint: POST /identity/conditionalAccess/namedLocations
Permissions
Permission type | Permissions (from least to most privileged) |
---|---|
Delegated (work or school account) | Policy.Read.All and Policy.ReadWrite.ConditionalAccess |
Delegated (personal Microsoft account) | Not supported. |
Application | Policy.Read.All and Policy.ReadWrite.ConditionalAccess |
Property Mapping
Azure AD Name | Microsoft Graph Name |
---|---|
CountriesAndRegions | CountriesAndRegions |
DisplayName | DisplayName |
Id | Id |
IncludeUnknownCountriesAndRegions | IncludeUnknownCountriesAndRegions |
IpRanges | IpRanges |
IsTrusted | IsTrusted |
OdataType | OdataType |
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for