|
| 1 | +--- |
| 2 | +title: Using credentials |
| 3 | +titleSuffix: Azure Data Factory & Azure Synapse |
| 4 | +description: Learn about using Azure credentials for Azure Data Factory. |
| 5 | +author: nabhishek |
| 6 | +ms.service: data-factory |
| 7 | +ms.subservice: security |
| 8 | +ms.topic: conceptual |
| 9 | +ms.date: 07/19/2021 |
| 10 | +ms.author: abnarain |
| 11 | +ms.custom: synapse |
| 12 | +--- |
| 13 | + |
| 14 | +# Credentials in Azure Data Factory and Azure Synapse |
| 15 | + |
| 16 | +[!INCLUDE[appliesto-adf-asa-md](includes/appliesto-adf-asa-md.md)] |
| 17 | + |
| 18 | +## Prerequisites |
| 19 | + |
| 20 | +Users must have the Managed Identity Operator (Azure RBAC) role or a custom role with **Microsoft.ManagedIdentity/userAssignedIdentities/*/assign/action** RBAC action to configure a user assigned managed identity as a credential. Additional RBAC is required to create and use credentials in Synapse. [Learn more](../synapse-analytics/security/synapse-workspace-synapse-rbac-roles.md). |
| 21 | + |
| 22 | +## Using credentials |
| 23 | + |
| 24 | +We are introducing Credentials which can contain user-assigned managed identities, service principals, and also lists the system-assigned managed identity that you can use in the linked services that support Azure Active Directory (AAD) authentication. It helps you consolidate and manage all your AAD-based credentials. |
| 25 | + |
| 26 | +Below are the generic steps for using a **user-assigned managed identity** in the linked services for authentication. |
| 27 | + |
| 28 | +# [Azure Data Factory](#tab/data-factory) |
| 29 | + |
| 30 | +1. If you do not have a user-assigned managed identity created in Azure, first create one in the Azure portal [Managed Identities](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/Microsoft.ManagedIdentity%2FuserAssignedIdentities) page. |
| 31 | + |
| 32 | +1. Associate the user-assigned managed identity to the data factory instance using Azure portal, SDK, PowerShell, REST API. The screenshot below used Azure portal (data factory blade) to associate the user-assigned managed identity. |
| 33 | + |
| 34 | + :::image type="content" source="media/credentials/uami-azure-portal.png" alt-text="Screenshot showing how to use Azure portal to associate an user-assigned managed identity."::: |
| 35 | + |
| 36 | +1. Create a **Credential** in data factory user interface interactively. You can select the user-assigned managed identity associated with the data factory in Step 1. |
| 37 | + |
| 38 | + :::image type="content" source="media/credentials/create-new-credential.png" alt-text="Screenshot showing the creation of new credentials."::: |
| 39 | + |
| 40 | + :::image type="content" source="media/credentials/user-assigned-credential-configuration.png" alt-text="Screenshot showing the configuration of new credentials."::: |
| 41 | + |
| 42 | +1. Create a new linked service and select **User-assigned managed identity** under authentication |
| 43 | + |
| 44 | + :::image type="content" source="media/credentials/create-new-linked-service.png" alt-text="Screenshot showing the new linked service with user-assigned managed identity authentication."::: |
| 45 | + |
| 46 | + :::image type="content" source="media/credentials/linked-service-credential-configuration.png" alt-text="Screenshot showing the new linked service configuration with User-Assigned Managed Identity and credentials selected."::: |
| 47 | + |
| 48 | +# [Azure Synapse](#tab/synapse-analytics) |
| 49 | + |
| 50 | +1. If you do not have a user-assigned managed identity created in Azure, first create one in the Azure portal [Managed Identities](https://ms.portal.azure.com/#blade/HubsExtension/BrowseResource/resourceType/Microsoft.ManagedIdentity%2FuserAssignedIdentities) page. |
| 51 | + |
| 52 | +1. Associate the user-assigned managed identity to the workspace using Azure portal, SDK, PowerShell, REST API. The screenshot below used Azure portal (Identity blade) to associate the user-assigned managed identity. |
| 53 | + |
| 54 | + :::image type="content" source="media/credentials/synapse-uami-azure-portal.png" alt-text="Screenshot showing how to use Azure portal to associate an user-assigned managed identity."::: |
| 55 | + |
| 56 | +1. Create a **Credential** in Synapse Studio interactively. You can select the user-assigned managed identity associated with the workspace in Step 1. |
| 57 | + |
| 58 | + :::image type="content" source="media/credentials/synapse-create-new-credential.png" alt-text="Screenshot showing the creation of new credentials."::: |
| 59 | + |
| 60 | + :::image type="content" source="media/credentials/user-assigned-credential-configuration.png" alt-text="Screenshot showing the configuration of new credentials."::: |
| 61 | + |
| 62 | +1. Create a new linked service and select **User-assigned managed identity** under authentication |
| 63 | + |
| 64 | + :::image type="content" source="media/credentials/synapse-create-new-linked-service.png" alt-text="Screenshot showing the new linked service with user-assigned managed identity authentication."::: |
| 65 | + |
| 66 | + :::image type="content" source="media/credentials/linked-service-credential-configuration.png" alt-text="Screenshot showing the new linked service configuration with User-Assigned Managed Identity and credentials selected."::: |
| 67 | + |
| 68 | +--- |
| 69 | + |
| 70 | +> [!NOTE] |
| 71 | +> You can use SDK/ PowerShell/ REST APIs for the above actions. |
| 72 | +
|
| 73 | +## Next steps |
| 74 | + |
| 75 | +- [Managed identity](data-factory-service-identity.md) |
| 76 | + |
| 77 | +See the following topics that introduce when and how to use managed identity: |
| 78 | + |
| 79 | +- [Store credential in Azure Key Vault](store-credentials-in-key-vault.md) |
| 80 | +- [Copy data from/to Azure Data Lake Store using managed identities for Azure resources authentication](connector-azure-data-lake-store.md) |
| 81 | + |
| 82 | +See [Managed Identities for Azure Resources Overview](../active-directory/managed-identities-azure-resources/overview.md) for more background on managed identities for Azure resources, which data factory managed identity is based upon. |
0 commit comments