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.
Table of Contents
Get-AzureADPolicy
This PowerShell command can be used to get the Azure AD policy details.
Syntax
Below is the syntax of the Get-AzureADPolicy PowerShell command.
Get-AzureADPolicy
Get-AzureADPolicy
-Id <String>
Let’s discuss a few examples of how to use the Get-AzureADPolicy PowerShell command.
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.
PS C:\WINDOWS\system32> Get-AzureADPolicy
Id DisplayName Type IsOrganizationDe
fault
-- ----------- ---- ----------------
8a3c7b96-ef63-4419-864d-fb0bc42129e1 TsinfoPolicy TokenLifetimePolicy False
You can see the same output below

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.

You can use the New-AzureADPolicy PowerShell command to create a brand new Azure Active Directory policy.
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 !!!