Azure api or sdk to get list of app registrations and the certificates associated with them

I want to connect my python application to azure.

Problem statement:
Get a list of apps registered with their certificate thumbprints and expiry details.

I tried a lot but can’t find any APIs. Please help me.

Answer

You will need to use Microsoft Graph API for that.

The API operation you would want to use is List applications. The information about the certificates associated with each application will be available in keyCredentials attribute in the response.