@@ -3,7 +3,7 @@ title: Create token credentials from configuration
3
3
description : This article describes how to create Microsoft Entra token credentials from configuration files.
4
4
ms.topic : how-to
5
5
ms.custom : devx-track-dotnet, engagement-fy23
6
- ms.date : 11/05/2024
6
+ ms.date : 02/19/2025
7
7
---
8
8
9
9
# Create Microsoft Entra credential types using configuration files
@@ -68,39 +68,42 @@ You can create both user-assigned and system-assigned managed identities using c
68
68
69
69
#### User-assigned managed identities
70
70
71
- A user-assigned managed identity can be used by providing a client ID, resource ID, or object ID:
71
+ A user-assigned managed identity can be used by providing a client ID, resource ID, or object ID.
72
72
73
- - ** Client ID: **
73
+ ## [ Client ID] ( #tab/client-id )
74
74
75
- ``` json
76
- {
77
- "credential" : " managedidentity" ,
78
- "clientId" : " <clientId>"
79
- }
80
- ```
75
+ ``` json
76
+ {
77
+ "credential" : " managedidentity" ,
78
+ "clientId" : " <clientId>"
79
+ }
80
+ ```
81
81
82
- - ** Resource ID:**
82
+ ## [ Resource ID] ( #tab/resource-id )
83
83
84
- ```json
85
- {
86
- "credential" : " managedidentity" ,
87
- "managedIdentityResourceId" : " <managedIdentityResourceId>"
88
- }
89
- ```
84
+ ``` json
85
+ {
86
+ "credential" : " managedidentity" ,
87
+ "managedIdentityResourceId" : " <managedIdentityResourceId>"
88
+ }
89
+ ```
90
90
91
- The resource ID takes the form `/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}`.
91
+ The resource ID takes the form:
92
+ ` /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} `
92
93
93
- - **Object ID:**
94
+ ## [ Object ID] ( #tab/object-id )
95
+
96
+ ``` json
97
+ {
98
+ "credential" : " managedidentity" ,
99
+ "managedIdentityObjectId" : " <managedIdentityObjectId>"
100
+ }
101
+ ```
94
102
95
- ```json
96
- {
97
- "credential" : " managedidentity" ,
98
- "managedIdentityObjectId" : " <managedIdentityObjectId>"
99
- }
100
- ```
103
+ > [ !IMPORTANT]
104
+ > The ` managedIdentityObjectId ` JSON property is supported in ` Microsoft.Extensions.Azure ` versions 1.8.0 and later.
101
105
102
- > [!IMPORTANT]
103
- > The `managedIdentityObjectId` JSON property is supported in `Microsoft.Extensions.Azure` versions 1.8.0 and later.
106
+ ---
104
107
105
108
#### System-assigned managed identities
106
109
0 commit comments