Muokkaa

Jaa


Get-AzureADMSConditionalAccessPolicy

Gets an Azure Active Directory conditional access policy.

Syntax

Get-AzureADMSConditionalAccessPolicy []
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
Position:Named
Default value:None
Required:True
Accept pipeline input:True
Accept wildcard characters:False

Notes

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