How to connect to azure key vault using service principal and .pem file

Hi All,

I was trying to use ansible to get/set secrets in azure key vault. in azure_rm_keyvaultsecret module we have only secret argument to provide credentials for the service principal. but our requirement is to use .pem file to authenticate the Service principal
so can some one help us with the following please.

  1. how to provide a .pem file to authenticate the service principal to connect Azure key vault.
  2. is there any other way/ module to achieve our requirement.

Thanks & Regards,
Tejaswini Akula.