Looks for applications with expiring/expired secrets (within 30 days), then outputs the Application name, and the secrets associated that are expiring/expired.
Applications[?passwordCredentials[?time_until(endDateTime,
days
) <
30
].endDateTime].['Application Name: 'displayName, 'Secret Name: 'passwordCredentials[?time_until(endDateTime,
days
) <
30
].displayName]