This function returns a list of all Microsoft Entra ID applications with their credentials information,
including key credentials and password credentials, along with their validity status.
The function also retrieves the owners of each application.
Gets all application credentials using managed identity, exports them to an Excel file, and sends notification for credentials expiring within 15 days.
(Optional) Retrieves the credentials for a specific application by its DisplayName.
Supports wildcards (* and ?) for partial name matching (e.g.
“Azure*”, “Portal”).
(Optional) If specified, uses managed identity authentication instead of interactive authentication.
This is useful when running the script in Azure environments like Azure Functions, Logic Apps, or VMs with managed identity enabled.
When this parameter is used, ExpirationThresholdDays, NotificationRecipient and NotificationSender are required.PowerShell modules used in Azure Automation must be a MAXIMUM of version 2.25.0 when using PowerShell < 7.4.0, because starting from version 2.26.0, PowerShell 7.4.0 is required, and Azure Automation does not support it yet as of February 2026.
For PowerShell 7.4.0+, there are no version restrictions.
https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/3147https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/3151https://github.com/microsoftgraph/msgraph-sdk-powershell/issues/3166
(Optional) Forces sequential processing.
By default, on PowerShell 7+ the function processes applications in
parallel (ForEach-Object -Parallel) to speed up discovery; on PowerShell 5.1 it always runs sequentially.
(Optional) Maximum number of concurrent runspaces when running in parallel.
Default is 5.
Keep this value moderate to avoid Microsoft Graph throttling (HTTP 429).
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.