<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>azure-identity on The Cloud Hub</title>
    <link>https://thecloudhub.com/tag/azure-identity/</link>
    <description>Recent content in azure-identity on The Cloud Hub</description>
    <generator>Hugo -- 0.118.2</generator>
    <language>en-au</language>
    <lastBuildDate>Fri, 22 Mar 2019 00:00:00 +0000</lastBuildDate>
    <atom:link href="https://thecloudhub.com/tag/azure-identity/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>What&#39;s an Azure Service Principal and Managed Identity?</title>
      <link>https://thecloudhub.com/2019/03/22/whats-an-azure-service-principal-and-managed-identity/</link>
      <pubDate>Fri, 22 Mar 2019 00:00:00 +0000</pubDate>
      <guid>https://thecloudhub.com/2019/03/22/whats-an-azure-service-principal-and-managed-identity/</guid>
      <description>In this post, we&amp;rsquo;ll take a brief look at the difference between an Azure service principal and a managed identity (formerly referred to as a Managed Service Identity or MSI).
Dive deeper into Azure AD service principals and managed identities in our new detailed ebook about Azure AD
What is a service principal or managed service identity? Lets get the basics out of the way first. In short, a service principal can be defined as:</description>
      <content:encoded><![CDATA[<p>In this post, we&rsquo;ll take a brief look at the difference between an Azure service principal and a managed identity (formerly referred to as a Managed Service Identity or MSI).</p>
<p><a href="https://thecloudhub.com/books/azure-ad-apps/">Dive deeper into Azure AD service principals and managed identities in our new detailed ebook about Azure AD</a></p>
<h2 id="what-is-a-service-principal-or-managed-service-identity">What is a service principal or managed service identity?</h2>
<p>Lets get the basics out of the way first. In short, a service principal can be defined as:</p>
<blockquote>
<p>An application whose tokens can be used to authenticate and grant access to specific Azure resources from a user-app, service or automation tool, when an organisation is using Azure Active Directory.</p>
</blockquote>
<p>In essence, service principals help us avoid having to create fake users in Active Directory in order to manage authentication when we need to access Azure resources.</p>
<p>Stepping back a bit, and its important to remember that service principals are defined on a per-tenant basis. This is different to the application in which principals are created - the application sits across every tenant.</p>
<p>Managed identities are often spoken about when talking about service principals, and that&rsquo;s because its now the preferred approach to managing identities for apps and automation access. In effect, a managed identity is a layer on top of a service principal, removing the need for you to manually create and manage service principals directly.</p>
<p>There are two types of managed identities:</p>
<ul>
<li>
<p>System-assigned: These identities are tied directly to a resource, and abide by that resources&rsquo; lifecycle. For instance, if that resource is deleted then the identity too will be removed</p>
</li>
<li>
<p>User-assigned: These identities are created independent of a resource, and as such can be used between different resources. Removing them is a manual process whenever you see fit</p>
</li>
</ul>
<p>One of the problems with managed identities is that for now only a <a href="https://docs.microsoft.com/en-us/azure/active-directory/managed-identities-azure-resources/services-support-msi">limited subset of Azure services support using them</a> as an authentication mechanism. If the service you use doesn&rsquo;t support MI, then you&rsquo;ll need to either continue to manually create your service/security principals.</p>
<h2 id="so-whats-the-difference">So what&rsquo;s the difference?</h2>
<p>Put simply, the difference between a managed identity and a service principal is that a managed identity <em>manages</em> the creation and automatic renewal of a service principal on your behalf.</p>
<p><strong>Update 31/1/20:</strong> If you&rsquo;re using Azure Web Apps, check out our <a href="https://thecloudhub.com/2020/01/managed-identities-and-azure-app-service-staging-slots/">new post on using managed identities with deployment slots</a></p>
]]></content:encoded>
    </item>
  </channel>
</rss>
