|
| 1 | +--- |
| 2 | +title: Managed Identities for Azure Stream Analytics |
| 3 | +description: This article describes managed identities for Azure Stream Analytics. |
| 4 | +author: enkrumah |
| 5 | +ms.author: ebnkruma |
| 6 | +ms.service: stream-analytics |
| 7 | +ms.topic: conceptual |
| 8 | +ms.date: 03/02/2022 |
| 9 | +--- |
| 10 | + |
| 11 | +# Managed Identities for Azure Stream Analytics |
| 12 | + |
| 13 | +Azure Stream Analytics currently allows you to use managed identities for Azure resources. |
| 14 | +A common challenge when building cloud applications is credential management in your code to authenticate cloud services. Keeping the credentials secure is an important task. The credentials shouldn't be stored in developer workstations or checked into source control. Azure Key Vault provides a way to store credentials, secrets securely, and other keys, but your code must authenticate to Key Vault to retrieve them. |
| 15 | + |
| 16 | +The Azure Active Directory (Azure AD) managed identities for Azure resources feature solves this problem. The feature provides Azure services with an automatically managed identity in Azure AD. You can use the identity to authenticate to any service that supports Azure AD authentication, including Key Vault, without any credentials in your code. See [managed identities for Azure resources overview page](https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/overview) for more information about this service. |
| 17 | + |
| 18 | +Here are some of the benefits of using Managed identities: |
| 19 | +* You don't need to manage credentials. Credentials are not even accessible to you. |
| 20 | +* You can use managed identities to authenticate any resource that supports [Azure Active Directory authentication](https://docs.microsoft.com/azure/active-directory/authentication/overview-authentication), including your applications. |
| 21 | +* You can use managed identities without any additional cost. |
| 22 | + |
| 23 | + |
| 24 | +## Managed Identity types |
| 25 | + |
| 26 | +There are two types of managed identities: |
| 27 | + |
| 28 | +* System-assigned Identity: Some Azure services allow you to enable a managed identity directly on a service instance. When you enable a system-assigned managed identity, you create an identity in Azure AD that is tied to the lifecycle of that service instance. So when you delete the resource, Azure automatically deletes the identity for you. By design, only that Azure resource can use this identity to request tokens from Azure AD. |
| 29 | +* User-assigned Identity: You may also create a managed identity as a standalone Azure resource. You can create a user-assigned managed identity 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. |
| 30 | + |
| 31 | +To learn more about managed identities, see [What are managed identities for Azure resources?](https://docs.microsoft.com/azure/active-directory/managed-identities-azure-resources/overview). |
| 32 | + |
| 33 | + |
| 34 | + |
| 35 | +> [!IMPORTANT] |
| 36 | +> 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. The corresponding service principal is automatically removed when the managed identity is deleted. |
| 37 | +
|
| 38 | +## Supported Inputs and Outputs |
| 39 | + |
| 40 | +Below is a table that shows Azure Stream Analytics inputs and outputs that support System Assigned Managed Identity or User Assigned Managed Identity: |
| 41 | + |
| 42 | +| Type | Adapter | User-Assigned Managed Identity Support | System Assigned Managed Identity Support | |
| 43 | +|-----------------|-------------------------------|------------------------------------------------------------------------|------------------------------------------| |
| 44 | +| Storage Account | Blob/ADLS Gen 2 | Yes | Yes | |
| 45 | +| Inputs | Event Hubs | Yes | Yes | |
| 46 | +| | IoT Hubs | No (available with a workaround: users can route events to Event Hubs) | No | |
| 47 | +| | Blob/ADLS Gen 2 | Yes | Yes | |
| 48 | +| Reference Data | Blob/ADLS Gen 2 | Yes | Yes | |
| 49 | +| | SQL | Yes (preview) | Yes | |
| 50 | +| Outputs | Event Hubs | Yes | Yes | |
| 51 | +| | SQL Database | Yes | Yes | |
| 52 | +| | Blob/ADLS Gen 2 | Yes | Yes | |
| 53 | +| | Table Storage | No | No | |
| 54 | +| | Service Bus Topic | No | No | |
| 55 | +| | Service Bus Queue | No | No | |
| 56 | +| | Cosmos DB | No | No | |
| 57 | +| | Power BI | Yes | No | |
| 58 | +| | Data Lake Storage Gen1 | Yes | Yes | |
| 59 | +| | Azure Functions | No | No | |
| 60 | +| | Azure Database for PostgreSQL | No | No | |
| 61 | +| | Azure Data Explorer | Yes | Yes | |
| 62 | +| | Azure Synapse Analytics | Yes | Yes | |
| 63 | + |
| 64 | + |
| 65 | + |
| 66 | +## Next steps |
| 67 | + |
| 68 | +* [Quickstart: Create a Stream Analytics job by using the Azure portal](stream-analytics-quick-create-portal.md) |
0 commit comments