Get-AzureADPolicy

In this Azure PowerShell article, we will discuss the syntax and the usage of the Get-AzureADPolicy PowerShell command with an example of how to use this command.

Get-AzureADPolicy

This PowerShell command can be used to get the Azure AD policy details.

Syntax

Below is the syntax of this PowerShell command.

Get-AzureADPolicy
Get-AzureADPolicy
 -Id <String>

Let’s discuss a few examples of how to use this PowerShell command.

Examples

Example-1:

You can execute the below PowerShell command to get the details of the list of the policies of the Azure Active Directory.

Get-AzureADPolicy

After executing the above command, I got the below output as expected.


Id                                   DisplayName  Type                IsOrganizationDe
                                                                      fault           
--                                   -----------  ----                ----------------
8a3c7b96-ef63-4419-864d-fb0bc42129e1 TsinfoPolicy TokenLifetimePolicy False 

You can see the same output below

Get-AzureADPolicy

Example-2:

You can also retrieve the policy details based on the specified Policy ID.

Get-AzureADPolicy -Id 8a3c7b96-ef63-4419-864d-fb0bc42129e1

After executing the above command, I got the expected output as below.

Get-AzureADPolicy PowerShell

You can use the New-AzureADPolicy PowerShell command to create a new Azure Active Directory policy.

Get-AzureADPolicy PowerShell – Video Tutorial

You can also check out a video tutorial on the Get-AzureADPolicy PowerShell command.

Final Thoughts

In this Azure PowerShell article, we discussed the syntax and usage of the Get-AzureADPolicy command with an example of how to use this command. Thanks for reading this article !!!

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!