If you're developing apps on Azure and not using Managed Identities, you're making a big mistake.
This is a huge focus across the industry: moving away from passwords and other credentials to using (in the case of Azure processes) Managed Identities.
Managed IDs are protected, audited and rotated by Entra ID.
That way, your application does not need to persist, protect and rotate client-authentication creds.