Skip to content

Latest commit

 

History

History
99 lines (72 loc) · 2.91 KB

Get-AzureADMSConditionalAccessPolicy.md

File metadata and controls

99 lines (72 loc) · 2.91 KB
external help file Module Name online version schema ms.service ms.topic ms.date ms.author manager author ms.reviewer
Microsoft.Open.MS.GraphV10.PowerShell.dll-Help.xml
AzureAD
2.0.0
azure-active-directory
reference
01/19/2024
eunicewaweru
CelesteDG
msewaweru
stevemutungi

Get-AzureADMSConditionalAccessPolicy

SYNOPSIS

Gets an Azure Active Directory conditional access policy.

SYNTAX

GetQuery (Default)

Get-AzureADMSConditionalAccessPolicy [<CommonParameters>]

GetById

Get-AzureADMSConditionalAccessPolicy -PolicyId <String> [<CommonParameters>]

DESCRIPTION

This cmdlet allows an admin to get the Azure Active Directory conditional access policy. Conditional access policies are custom rules that define an access scenario.

EXAMPLES

Example 1: Retrieves a list of all conditional access policies in Azure AD.

PS C:\> Get-AzureADMSConditionalAccessPolicy

          Id                      : 6b5e999b-0ba8-4186-a106-e0296c1c4358
          DisplayName             : Demo app for documentation
          CreatedDateTime         : 2019-09-26T23:12:16.0792706Z
          ModifiedDateTime        : 2019-09-27T00:12:12.5986473Z
          State                   : Disabled

This command retrieves a list of all conditional access policies in Azure AD.

Example 2: Retrieves a conditional access policy in Azure AD with given Id.

PS C:\> Get-AzureADMSConditionalAccessPolicy -PolicyId "6b5e999b-0ba8-4186-a106-e0296c1c4358"

          Id                      : 6b5e999b-0ba8-4186-a106-e0296c1c4358
          DisplayName             : Demo app for documentation
          CreatedDateTime         : 2019-09-26T23:12:16.0792706Z
          ModifiedDateTime        : 2019-09-27T00:12:12.5986473Z
          State                   : Disabled

This command retrieves a conditional access policy in Azure AD.

PARAMETERS

-PolicyId

Specifies the ID of a conditional access policy in Azure Active Directory.

Type: String
Parameter Sets: GetById
Aliases:

Required: True
Position: Named
Default value: None
Accept pipeline input: True (ByPropertyName, ByValue)
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

NOTES

See the migration guide for Get-AzureADMSConditionalAccessPolicy to the Microsoft Graph PowerShell.

INPUTS

OUTPUTS

RELATED LINKS

New-AzureADMSConditionalAccessPolicy

Set-AzureADMSConditionalAccessPolicy

Remove-AzureADMSConditionalAccessPolicy