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
description: This article describes how you can create a service principal in Azure
2
+
title: Create a service principal in Azure.
3
+
description: This article describes how you can create a service principal in Azure for use with Microsoft Purview.
4
4
author: athenads
5
5
ms.author: athenadsouza
6
6
ms.service: purview
7
7
ms.subservice: purview-data-catalog
8
8
ms.topic: how-to
9
-
ms.date: 12/02/2022
9
+
ms.date: 03/24/2023
10
10
# Customer intent: As an Azure AD Global Administrator or other roles such as Application Administrator, I need to create a new service principal, in order to register an application in the Azure AD tenant.
11
11
ms.custom: ignite-fall-2021
12
12
---
13
13
14
-
# Creating a service principal
14
+
# Creating a service principal for use with Microsoft Purview
15
15
16
-
You can create a new or use an existing service principal in your Azure Active Directory tenant.
16
+
You can create a new or use an existing service principal in your Azure Active Directory tenant to use to authenticate with other services.
17
17
18
18
## App registration
19
19
@@ -22,58 +22,73 @@ You can create a new or use an existing service principal in your Azure Active D
22
22
23
23
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-aad.png" alt-text="Screenshot that shows the link to the Azure Active Directory.":::
24
24
25
-
1. Select **App registrations** and **+ New registration**
25
+
1. Select **App registrations** and **+ New registration**.
26
26
27
27
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-new-reg.png" alt-text="Screenshot that shows the link to New registration.":::
28
28
29
29
1. Enter a name for the **application** (the service principal name).
30
30
31
31
1. Select **Accounts in this organizational directory only**.
32
32
33
-
1. For **Redirect URI** select **Web** and enter any URL you want; it doesn't have to be real or work.
33
+
1. For **Redirect URI** select **Web** and enter any URL you want. If you have an authentication endpoint for your organization you want to use, this is the place. Otherwise `https://example.com/auth` will do.
34
34
35
35
1. Then select **Register**.
36
36
37
37
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-register.png" alt-text="Screenshot that shows the details for the new app registration.":::
38
38
39
+
1. Copy the **Application (client) ID** value. We'll use this later to create a credential in Microsoft Purview.
40
+
39
41
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-new-app.png" alt-text="Screenshot that shows the newly created application.":::
40
42
41
43
## Adding a secret to the client credentials
42
44
43
-
1. Select the app from the **App registrations**
45
+
1. Select the app from the **App registrations**.
44
46
45
47
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-app-select.png" alt-text="Screenshot that shows the app for registration.":::
46
48
47
-
1. Select **Add a certificate or secret**
49
+
1. Select **Add a certificate or secret**.
48
50
49
51
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-add-secret.png" alt-text="Screenshot that shows the app.":::
50
52
51
-
1. Select **+ New client secret** under **Client secrets**
53
+
1. Select **+ New client secret** under **Client secrets**.
52
54
53
55
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-new-client-secret.png" alt-text="Screenshot that shows the client secret menu.":::
54
56
55
-
1. Provide a **Description** and set the **Expires** for the secret
57
+
1. Provide a **Description** and set the **Expires** for the secret.
56
58
57
59
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-secret-desc.png" alt-text="Screenshot that shows the client secret details.":::
58
60
61
+
1. Copy the value of the **Secret value**. We'll use this later to create a secret in Azure Key Vault.
62
+
59
63
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-client-secret.png" alt-text="Screenshot that shows the client secret.":::
60
64
61
-
1. Copy the value of **Client credentials** from **Overview**
65
+
## Adding the secret to your Azure Key Vault
62
66
63
-
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-client-cred.png" alt-text="Screenshot that shows the app Overview.":::
67
+
To allow Microsoft Purview to use this serviceprincipal to authenticate with other services, you'll need to store this credential in Azure Key Vault.
64
68
65
-
## Adding the secret to the key vault
69
+
* If you need an Azure Key vault, you can [follow these steps to create one.](../key-vault/general/quick-create-portal.md)
70
+
* To grant your Microsoft Purview account access to the Azure Key Vault, you can [follow these steps](manage-credentials.md#microsoft-purview-permissions-on-the-azure-key-vault).
66
71
67
-
1. Navigate to your **Key vault**
72
+
1. Navigate to your **Key vault**.
68
73
69
74
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-key-vault.png" alt-text="Screenshot that shows the Key vault.":::
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-generate-secret.png" alt-text="Screenshot that options in the Key vault.":::
74
79
75
-
1. Enter the **Name** of your choice and **Value** as the **Client secret** from your Service Principal
76
-
80
+
1. Enter the **Name** of your choice, and save it to create a credential in Microsoft Purview.
81
+
82
+
1. Enter the **Value** as the **Secret value** from your Service Principal.
83
+
77
84
:::image type="content" source="media/create-service-principal-azure/create-service-principal-azure-sp-secret.png" alt-text="Screenshot that shows the Key vault to create a secret.":::
78
85
79
-
1. Select **Create** to complete
86
+
1. Select **Create** to complete.
87
+
88
+
## Create a credential for your secret in Microsoft Purview
89
+
90
+
To enable Microsoft Purview to use this service principal to authenticate with other services, you'll need to follow these three steps.
91
+
92
+
1.[Connect your Azure Key Vault to Microsoft Purview](manage-credentials.md#create-azure-key-vaults-connections-in-your-microsoft-purview-account)
93
+
1.[Grant your service principal authentication on your source](microsoft-purview-connector-overview.md) - Follow instructions on each source page to grant appropriate authentication.
94
+
1.[Create a new credential in Microsoft Purview](manage-credentials.md#create-a-new-credential) - You'll use the service principal's application (client) ID and the name of the secret you created in your Azure Key Vault.
0 commit comments