Quick Post, I was recently asked how to find all the Application’s Password Expiration Date in Azure AD. I'm not going to cover what this is or what this is used for (Integrating applications with Azure Active Directory) but if you open Azure AD and navigate to the Registered Applications and select one of the Applications this is what you will see. For large enterprises this could be a difficult task.
Here is the cmdlet I threw together to gather this info for all applications in an Azure AD Instance.
#if you havent installed azuread module
find-module azuread | Install-Module
#connect to Azure AD
connect-azuread
foreach($AADapp in Get-AzureADApplication){
Get-AzureADApplicationPasswordCredential -objectid $AADapp.objectid | select `
@{name='DisplayName';expression={$AADapp.DisplayName}},StartDate,EndDate
}
Results should look like this:
Looks like I have a few expired passwords, that I will want to address.
That is all I have for now. Hope you find this useful
-Chad