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
This PowerShell command can be used to get the Azure AD policy details.
Below is the syntax of the Get-AzureADPolicy PowerShell command.
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
-- ----------- ---- ----------------
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.
Get-AzureADPolicy PowerShell – Video Tutorial
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 !!!
I am Rajkishore, and I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machine, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.