Script to check password and certificate expiration of Azure Service Principal.Target is all principal IDs assigned roles to the resources under the subscription set in the Azure CLI.
You can get information about IDs(Azure AD App) that have expired or will expire after a specified days as LTSV like followings.
app_id:aaaaaaaa-bbbb-cccc-dddd-eeeeeeee app_display_name:yourspname password_expire:2021-08-29T18:30:00+00:00
- Azure CLI: 2.27.2
- jq: 1.6