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