Curated Examples
Review application credentials
Use GraphEssentials to inspect application registrations and expiring credentials.
This pattern is useful when application secrets and certificates need a quick operational review.
It is adapted from Examples/GetGraphApplications.ps1.
Example
Import-Module GraphEssentials
Connect-MgGraph -Scopes Application.Read.All
$applications = Get-MyApp -ApplicationName 'Contoso Automation'
$applications | Format-Table
$credentials = Get-MyAppCredentials -ApplicationName 'Contoso Automation' -LessThanDaysToExpire 30
$credentials | Format-Table DisplayName, EndDateTime, KeyId
What this demonstrates
- connecting with an explicit Microsoft Graph scope
- checking a named application registration
- narrowing credential review to soon-expiring credentials