You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# What are managed identities for Azure resources?
23
23
24
-
A common challenge for developers is the management of secrets and credentials used to secure communication between different components making up a solution. Managed identities eliminate the need for developers to manage credentials. Managed identities provide an identity for applications to use when connecting to resources that support Azure Active Directory (Azure AD) authentication. Applications may use the managed identity to obtain Azure AD tokens. For example, an application may use a managed identity to access resources like [Azure Key Vault](../../key-vault/general/overview.md) where developers can store credentials in a secure manner or to access storage accounts.
24
+
A common challenge for developers is the management of secrets and credentials used to secure communication between different components making up a solution. Managed identities eliminate the need for developers to manage credentials.
25
25
26
-
Take a look at how you can use managed identities</br>
26
+
Managed identities provide an identity for applications to use when connecting to resources that support Azure Active Directory (Azure AD) authentication. Applications may use the managed identity to obtain Azure AD tokens. With [Azure Key Vault](../../key-vault/general/overview.md), developers can use managed identities to access resources. Key Vault stores credentials in a secure manner and gives access to storage accounts.
27
+
28
+
The following video shows how you can use managed identities:</br>
Here are some of the benefits of using Managed identities:
34
+
Here are some of the benefits of using managed identities:
33
35
34
-
- You don't need to manage credentials. Credentials are not even accessible to you.
35
-
- You can use managed identities to authenticate to any resource that supports [Azure Active Directory authentication](../authentication/overview-authentication.md) including your own applications.
36
+
- You don't need to manage credentials. Credentials aren’t even accessible to you.
37
+
- You can use managed identities to authenticate to any resource that supports [Azure AD authentication](../authentication/overview-authentication.md), including your own applications.
36
38
- Managed identities can be used without any additional cost.
37
39
38
40
> [!NOTE]
@@ -42,53 +44,55 @@ Here are some of the benefits of using Managed identities:
42
44
43
45
There are two types of managed identities:
44
46
45
-
-**System-assigned** Some Azure services allow you to enable a managed identity directly on a service instance. When you enable a system-assigned managed identity an identity is created in Azure AD that is tied to the lifecycle of that service instance. So when the resource is deleted, Azure automatically deletes the identity for you. By design, only that Azure resource can use this identity to request tokens from Azure AD.
46
-
-**User-assigned** You may also create a managed identity as a standalone Azure resource. You can [create a user-assigned managed identity](how-to-manage-ua-identity-portal.md) and assign it to one or more instances of an Azure service. In the case of user-assigned managed identities, the identity is managed separately from the resources that use it. </br></br>
47
+
-**System-assigned**. Some Azure services allow you to enable a managed identity directly on a service instance. When you enable a system-assigned managed identity, an identity is created in Azure AD. The identity is tied to the lifecycle of that service instance. When the resource is deleted, Azure automatically deletes the identity for you. By design, only that Azure resource can use this identity to request tokens from Azure AD.
48
+
-**User-assigned**. You may also create a managed identity as a standalone Azure resource. You can [create a user-assigned managed identity](how-to-manage-ua-identity-portal.md) and assign it to one or more instances of an Azure service. For user-assigned managed identities, the identity is managed separately from the resources that use it. </br></br>
47
49
48
50
49
-
The table below shows the differences between the two types of managed identities.
51
+
The following table shows the differences between the two types of managed identities:
| Creation | Created as part of an Azure resource (for example, an Azure virtual machine or Azure App Service) | Created as a stand-alone Azure resource |
55
+
| Creation | Created as part of an Azure resource (for example, Azure Virtual Machines or Azure App Service).| Created as a stand-alone Azure resource.|
54
56
| Life cycle | Shared life cycle with the Azure resource that the managed identity is created with. <br/> When the parent resource is deleted, the managed identity is deleted as well. | Independent life cycle. <br/> Must be explicitly deleted. |
55
-
| Sharing across Azure resources |Cannot be shared. <br/> It can only be associated with a single Azure resource. | Can be shared <br/> The same user-assigned managed identity can be associated with more than one Azure resource. |
56
-
| Common use cases | Workloads that are contained within a single Azure resource <br/> Workloads for which you need independent identities. <br/> For example, an application that runs on a single virtual machine | Workloads that run on multiple resources and which can share a single identity. <br/> Workloads that need pre-authorization to a secure resource as part of a provisioning flow. <br/> Workloads where resources are recycled frequently, but permissions should stay consistent. <br/> For example, a workload where multiple virtual machines need to access the same resource |
57
+
| Sharing across Azure resources |Can’t be shared. <br/> It can only be associated with a single Azure resource. | Can be shared. <br/> The same user-assigned managed identity can be associated with more than one Azure resource. |
58
+
| Common use cases | Workloads that are contained within a single Azure resource. <br/> Workloads for which you need independent identities. <br/> For example, an application that runs on a single virtual machine.| Workloads that run on multiple resources and can share a single identity. <br/> Workloads that need pre-authorization to a secure resource, as part of a provisioning flow. <br/> Workloads where resources are recycled frequently, but permissions should stay consistent. <br/> For example, a workload where multiple virtual machines need to access the same resource.|
57
59
58
60
> [!IMPORTANT]
59
-
> Regardless of the type of identity chosen a managed identity is a service principal of a special type that may only be used with Azure resources. When the managed identity is deleted, the corresponding service principal is automatically removed.
61
+
> Regardless of the type of identity chosen, a managed identity is a service principal of a special type that can only be used with Azure resources. When the managed identity is deleted, the corresponding service principal is automatically removed.
62
+
63
+
<br/>
60
64
61
65
## How can I use managed identities for Azure resources?
62
66
63
-

67
+
[](media/overview/when-use-managed-identities.png#lightbox)
64
68
65
69
## What Azure services support the feature?<aname="which-azure-services-support-managed-identity"></a>
66
70
67
-
Managed identities for Azure resources can be used to authenticate to services that support Azure AD authentication. For a list of Azure services that support the managed identities for Azure resources feature, see [Services that support managed identities for Azure resources](./services-support-managed-identities.md).
71
+
Managed identities for Azure resources can be used to authenticate to services that support Azure AD authentication. For a list of supported Azure services, see [services that support managed identities for Azure resources](./services-support-managed-identities.md).
68
72
69
73
## Which operations can I perform using managed identities?
70
74
71
75
Resources that support system assigned managed identities allow you to:
72
76
73
77
- Enable or disable managed identities at the resource level.
74
-
- Use RBAC roles to [grant permissions](howto-assign-access-portal.md).
- View sign-in activity in Azure AD [sign-in logs](../reports-monitoring/concept-sign-ins.md).
78
+
- Use role-based access control (RBAC) to [grant permissions](howto-assign-access-portal.md).
79
+
- View the create, read, update, and delete (CRUD) operations in [Azure Activity logs](../../azure-monitor/essentials/activity-log.md).
80
+
- View signin activity in Azure AD [signin logs](../reports-monitoring/concept-sign-ins.md).
77
81
78
82
If you choose a user assigned managed identity instead:
79
83
80
-
- You can [create, read, update, delete](how-to-manage-ua-identity-portal.md) the identities.
84
+
- You can [create, read, update, and delete](how-to-manage-ua-identity-portal.md) the identities.
81
85
- You can use RBAC role assignments to [grant permissions](howto-assign-access-portal.md).
82
86
- User assigned managed identities can be used on more than one resource.
83
87
- CRUD operations are available for review in [Azure Activity logs](../../azure-monitor/essentials/activity-log.md).
84
-
- View sign-in activity in Azure AD [sign-in logs](../reports-monitoring/concept-sign-ins.md).
88
+
- View signin activity in Azure AD [signin logs](../reports-monitoring/concept-sign-ins.md).
85
89
86
-
Operations on managed identities may be performed by using an Azure Resource Manager (ARM) template, the Azure portal, the Azure CLI, PowerShell, and REST APIs.
90
+
Operations on managed identities can be performed by using an Azure Resource Manager template, the Azure portal, Azure CLI, PowerShell, and REST APIs.
87
91
88
92
## Next steps
89
93
90
94
*[Use a Windows VM system-assigned managed identity to access Resource Manager](tutorial-windows-vm-access-arm.md)
91
95
*[Use a Linux VM system-assigned managed identity to access Resource Manager](tutorial-linux-vm-access-arm.md)
92
96
*[How to use managed identities for App Service and Azure Functions](../../app-service/overview-managed-identity.md)
93
97
*[How to use managed identities with Azure Container Instances](../../container-instances/container-instances-managed-identity.md)
94
-
*[Implementing Managed Identities for Microsoft Azure Resources](https://www.pluralsight.com/courses/microsoft-azure-resources-managed-identities-implementing).
98
+
*[Implementing managed identities for Microsoft Azure Resources](https://www.pluralsight.com/courses/microsoft-azure-resources-managed-identities-implementing)
0 commit comments