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.
This PowerShell command can be used to get the Azure AD policy details.
Below is the syntax of the Get-AzureADPolicy PowerShell command.
Get-AzureADPolicy -Id <String>
Let’s discuss a few examples of how to use the Get-AzureADPolicy PowerShell command.
You can execute the below PowerShell command to get the details of the list of the policies of the Azure Active Directory.
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
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 also check out a video tutorial on the Get-AzureADPolicy PowerShell command.
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 !!!