Remove-AzureADMSNamedLocationPolicy
Deletes an Azure Active Directory named location policy by PolicyId.
Syntax
Remove-AzureADMSNamedLocationPolicy
-PolicyId <String>
[<CommonParameters>]
Description
This cmdlet allows an admin to delete the Azure Active Directory named location policy. Named locations are custom rules that define network locations which can then be used in a Conditional Access policy.
Examples
Example 1: Deletes a named location policy in Azure AD with given PolicyId.
PS C:\> Remove-AzureADMSNamedLocationPolicy -PolicyId 76fdfd4d-bd80-4c1e-8fd4-6abf49d121fe
This command deletes a named location policy in Azure AD.
Parameters
-PolicyId
Specifies the ID of a named location policy in Azure Active Directory.
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Notes
See the migration guide for Remove-AzureADMSNamedLocationPolicy to the Microsoft Graph PowerShell.
Related Links
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