Managed Identity

What is Azure Managed Identity?

Azure Managed Identity is a feature in Microsoft Azure that helps enhance the security of applications and services by providing an automatically managed identity in Azure Active Directory (Azure AD). It simplifies the way applications authenticate with various Azure services and resources, reducing the need for credentials and secrets in your code.

Here are some of the benefits of using managed identities:

·       You don't need to manage credentials. Credentials aren’t even accessible to you.

·       You can use managed identities to authenticate to any resource that supports Azure AD authentication

·       Managed identities can be used at no extra cost.

 

There are two types of managed identity

 

System managed Identity and User managed identity

Here are some key points about System-assigned Managed Identities:

Property

System -Assigned Identity

User-Managed Identity

Creation

Created as part of an Azure resource (for example, Azure Virtual Machines or Azure App Service).

Created as a stand-alone Azure resource.

Life cycle

 

Shared life cycle with the Azure resource that the managed identity is created with.
When the parent resource is deleted, the managed identity is deleted as well.

 

Independent life cycle.
Must be explicitly deleted.

Sharing across Azure resources

 

System- Assigned identity Cannot be shared.
It can only be associated with a single Azure resource.

Can be shared.
The same user-assigned managed identity can be associated with more than one Azure resource.

Common use cases

 

 

Workloads contained within a single Azure resource.
Workloads needing independent identities.
For example, an application that runs on a single virtual machine.

Workloads that run on multiple resources and can share a single identity.
Workloads needing pre-authorization to a secure resource, as part of a provisioning flow.
Workloads where resources are recycled frequently, but permissions should stay consistent.
For example, a workload where multiple virtual machines need to access the same resource.


                                                          System manged Identity


                                User Managed Identity

Comments

Popular posts from this blog

Script

Landing Zone

Migration