title: Difference between Service Principal and Managed Identities in Azure
body: <p>I would like to know if it is always recommended to use Managed Identities in Azure , mostly system assigned or a Service Principal?
  When should Service Principals be used in Azure compared to a managed identity, what is the advantage of one over the other?
  Any help would be appreciated.</p>