<p>I am planning to assign pod identity to one of my applications. However, I am unable to understand the part where what happens to the assigned pod identity when the pod restarts/dies on its own ?</p>
<p>Does the pod get assigned a new identity on its own?</p>

Krishna Dhruv
<p>Not sure about your configuring End to end setup however if you are using it with <strong>Service Account</strong> and annotating it workload idenetiy it will stay there even if POD will restart or so.</p>
<p><code>AZURE_AUTHORITY_HOST, azure-identity-token</code> will get auto-injected if POD restarting. Instead of using POD you can also use deployment and attach the Service account to it.</p>
<p>As mentioned in the official doc, it's service account to AAD mapping so if you service account is there in config with POD or deployment it will get secret and other values.</p>
<pre><code>Azure AD Workload Identity supports the following mappings:

one-to-one (a service account referencing an AAD object)
many-to-one (multiple service accounts referencing the same AAD object).
one-to-many (a service account referencing multiple AAD objects by changing the client ID annotation).
</code></pre>
