Skip to content

Commit 5fd2db3

Browse files
Merge pull request #29924 from microsoftgraph/main
Auto Publish – main to live - 2026-11-14 00:30 UTC
2 parents b4b6c1a + a8997dc commit 5fd2db3

39 files changed

Lines changed: 1048 additions & 57 deletions

‎api-reference/beta/api/agentidentity-get.md‎

Lines changed: 31 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ GET /servicePrincipals/{id}/microsoft.graph.agentIdentity
3939

4040
This method supports the `$select` and `$expand` [OData query parameters](/graph/query-parameters) to help customize the response.
4141

42+
Use `$select=instanceMode` to read the topology of an agent identity. The value is `singleInstance` for an identity backed directly by a single-instance blueprint, or `multiInstance` for the standard topology. Agent identities without a stored value return `multiInstance` by default.
43+
4244
## Request headers
4345

4446
| Name | Description |
@@ -55,7 +57,9 @@ If successful, this method returns a `200 OK` response code and an [agentIdentit
5557

5658
## Examples
5759

58-
### Request
60+
### Example 1: Get an agent identity
61+
62+
#### Request
5963

6064
The following example shows a request.
6165
# [HTTP](#tab/http)
@@ -74,7 +78,7 @@ GET https://graph.microsoft.com/beta/servicePrincipals/{id}/microsoft.graph.agen
7478

7579
---
7680

77-
### Response
81+
#### Response
7882

7983
The following example shows the response.
8084
>**Note:** The response object shown here might be shortened for readability.
@@ -91,6 +95,7 @@ Content-Type: application/json
9195
{
9296
"id": "1b7313c4-05d0-4a08-88e3-7b76c003a0a2",
9397
"displayName": "My Agent Identity",
98+
"instanceMode": "multiInstance",
9499
"createdDateTime": "2019-09-17T19:10:35.2742618Z",
95100
"createdByAppId": "00001111-aaaa-2222-bbbb-3333cccc4444",
96101
"agentIdentityBlueprintId": "00001111-aaaa-2222-bbbb-3333cccc4444",
@@ -100,3 +105,27 @@ Content-Type: application/json
100105
"tags": []
101106
}
102107
```
108+
109+
### Example 2: Read the instance mode of an agent identity
110+
111+
#### Request
112+
113+
<!-- { "blockType": "request", "name": "get_agent_identity_instance_mode" } -->
114+
```http
115+
GET https://graph.microsoft.com/beta/servicePrincipals/59e617e5-e447-4adc-8b88-00af644d7c92/microsoft.graph.agentIdentity?$select=id,displayName,instanceMode
116+
```
117+
118+
#### Response
119+
120+
<!-- { "blockType": "response", "truncated": true, "@odata.type": "microsoft.graph.agentIdentity" } -->
121+
```http
122+
HTTP/1.1 200 OK
123+
Content-Type: application/json
124+
125+
{
126+
"@odata.type": "#microsoft.graph.agentIdentity",
127+
"id": "59e617e5-e447-4adc-8b88-00af644d7c92",
128+
"displayName": "Contoso Single-Instance Agent",
129+
"instanceMode": "singleInstance"
130+
}
131+
```

‎api-reference/beta/api/agentidentity-list.md‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ GET /servicePrincipals/microsoft.graph.agentIdentity
3636

3737
This method supports the `$count`, `$expand`, `$filter`, `$orderby`, `$search`, `$select`, and `$top` [OData query parameters](/graph/query-parameters) to help customize the response. The default and maximum page size is 100 agent identity objects. Some queries are supported only when you use the **ConsistencyLevel** header set to `eventual` and `$count`. For more information, see [Advanced query capabilities on directory objects](/graph/aad-advanced-queries).
3838

39+
Filtering on **instanceMode** with `$filter` (`eq`) requires the `ConsistencyLevel: eventual` header and `$count=true`.
40+
3941
## Request headers
4042

4143
| Name | Description |
@@ -53,6 +55,8 @@ If successful, this method returns a `200 OK` response code and collection of [a
5355

5456
## Examples
5557

58+
### Example 1: List agent identities
59+
5660
#### Request
5761

5862
# [HTTP](#tab/http)
@@ -116,6 +120,7 @@ Content-type: application/json
116120
{
117121
"id": "1b7313c4-05d0-4a08-88e3-7b76c003a0a2",
118122
"displayName": "My Agent Identity",
123+
"instanceMode": "multiInstance",
119124
"createdDateTime": "2019-09-17T19:10:35.2742618Z",
120125
"createdByAppId": "00001111-aaaa-2222-bbbb-3333cccc4444",
121126
"agentIdentityBlueprintId": "00001111-aaaa-2222-bbbb-3333cccc4444",
@@ -127,3 +132,32 @@ Content-type: application/json
127132
]
128133
}
129134
```
135+
136+
### Example 2: List single-instance agent identities
137+
138+
#### Request
139+
140+
<!-- { "blockType": "request", "name": "list_single_instance_agent_identities" } -->
141+
```http
142+
GET https://graph.microsoft.com/beta/servicePrincipals/microsoft.graph.agentIdentity?$filter=instanceMode eq 'singleInstance'&$count=true&$select=id,displayName,instanceMode
143+
ConsistencyLevel: eventual
144+
```
145+
146+
#### Response
147+
148+
<!-- { "blockType": "response", "truncated": true, "@odata.type": "microsoft.graph.agentIdentity", "isCollection": true } -->
149+
```http
150+
HTTP/1.1 200 OK
151+
Content-Type: application/json
152+
153+
{
154+
"@odata.count": 1,
155+
"value": [
156+
{
157+
"id": "59e617e5-e447-4adc-8b88-00af644d7c92",
158+
"displayName": "Contoso Single-Instance Agent",
159+
"instanceMode": "singleInstance"
160+
}
161+
]
162+
}
163+
```

‎api-reference/beta/api/agentidentity-post.md‎

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ In the request body, supply a JSON representation of a [agentIdentity](../resour
4242

4343
The **displayName** must follow the [agent identity display-name character rules](../resources/agentidentity.md#properties).
4444

45+
For a blueprint with **isSingleInstance** set to `true`, this operation creates an agent identity backed directly by that blueprint without creating an agent identity blueprint principal. Its **instanceMode** is `singleInstance`. For the default multi-instance topology, **instanceMode** is `multiInstance`. The service determines **instanceMode**; don't supply it in the request body.
46+
4547
## Response
4648

4749
If successful, this method returns a `201 Created` response code and a [agentIdentity](../resources/agentidentity.md) object in the response body.
@@ -50,8 +52,13 @@ If **displayName** contains prohibited characters, this method returns `400 Bad
5052

5153
For information about errors returned by agent identity APIs, see [Agent identity error codes](/entra/agent-id/identity-platform/error-codes).
5254

55+
If an active single-instance agent identity already exists for the same blueprint in the tenant, this method returns `409 Conflict`.
56+
5357
## Examples
54-
### Request
58+
59+
### Example 1: Create a multi-instance agent identity
60+
61+
#### Request
5562
The following example shows a request.
5663

5764
```http
@@ -68,7 +75,7 @@ Content-type: application/json
6875
}
6976
```
7077

71-
### Response
78+
#### Response
7279
The following example shows the response.
7380

7481
> **Note:** The response object shown here might be shortened for readability.
@@ -87,8 +94,47 @@ Content-type: application/json
8794
"id": "59e617e5-e447-4adc-8b88-00af644d7c92",
8895
"createdByAppId": "f98c895e-6ce2-4f5b-a31b-da7e48f25daa",
8996
"displayName": "My Agent Identity",
97+
"instanceMode": "multiInstance",
9098
"servicePrincipalType": "ServiceIdentity",
9199
"tags": [],
92100
"agentIdentityBlueprintId": "65415bb1-9267-4313-bbf5-ae259732ee12"
93101
}
94102
```
103+
104+
### Example 2: Create a single-instance agent identity
105+
106+
The blueprint identified by **agentIdentityBlueprintId** was created with **isSingleInstance** set to `true`.
107+
108+
#### Request
109+
110+
<!-- { "blockType": "request", "name": "create_single_instance_agent_identity" } -->
111+
```http
112+
POST https://graph.microsoft.com/beta/servicePrincipals/microsoft.graph.agentIdentity
113+
Content-Type: application/json
114+
115+
{
116+
"displayName": "Contoso Single-Instance Agent",
117+
"agentIdentityBlueprintId": "65415bb1-9267-4313-bbf5-ae259732ee12",
118+
"sponsors@odata.bind": [
119+
"https://graph.microsoft.com/v1.0/users/acc9f0a1-9075-464f-9fe7-049bf1ae6481"
120+
]
121+
}
122+
```
123+
124+
#### Response
125+
126+
<!-- { "blockType": "response", "truncated": true, "@odata.type": "microsoft.graph.agentIdentity" } -->
127+
```http
128+
HTTP/1.1 201 Created
129+
Content-Type: application/json
130+
131+
{
132+
"@odata.type": "#microsoft.graph.agentIdentity",
133+
"id": "59e617e5-e447-4adc-8b88-00af644d7c92",
134+
"displayName": "Contoso Single-Instance Agent",
135+
"agentIdentityBlueprintId": "65415bb1-9267-4313-bbf5-ae259732ee12",
136+
"instanceMode": "singleInstance",
137+
"accountEnabled": true,
138+
"createdDateTime": "2026-11-02T23:00:00Z"
139+
}
140+
```

‎api-reference/beta/api/agentidentity-update.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ In the request body, supply the values for relevant fields that should be update
5454

5555
When changing **displayName**, it must follow the [agent identity display-name character rules](../resources/agentidentity.md#properties). Updates that don't change **displayName** aren't subject to this character validation.
5656

57+
The **instanceMode** property is immutable. An attempt to change it returns `400 Bad Request` with the error code `Request_BadRequest`.
58+
5759
## Response
5860

5961
If successful, this method returns a `204 No Content` response code.

‎api-reference/beta/api/agentidentityblueprint-list.md‎

Lines changed: 35 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,14 @@ By default, this API doesn't return the value of the **key** thumbprint in the *
4343

4444
The use of `$select` to get **keyCredentials** for agentIdentityBlueprints has a throttling limit of 150 requests per minute for every tenant.
4545

46+
Filtering on **isSingleInstance** with `$filter` (`eq`) requires the `ConsistencyLevel: eventual` header and `$count=true`.
47+
4648
## Request headers
4749

4850
|Name|Description|
4951
|:---|:---|
5052
|Authorization|Bearer {token}. Required. Learn more about [authentication and authorization](/graph/auth/auth-concepts).|
53+
|ConsistencyLevel|`eventual`. Required with `$count=true` when filtering on **isSingleInstance**.|
5154

5255
## Request body
5356

@@ -59,7 +62,9 @@ If successful, this method returns a `200 OK` response code and a collection of
5962

6063
## Examples
6164

62-
### Request
65+
### Example 1: List agent identity blueprints
66+
67+
#### Request
6368

6469
The following example shows a request.
6570
# [HTTP](#tab/http)
@@ -102,7 +107,7 @@ GET https://graph.microsoft.com/beta/applications/microsoft.graph.agentIdentityB
102107

103108
---
104109

105-
### Response
110+
#### Response
106111

107112
The following example shows the response.
108113
>**Note:** The response object shown here might be shortened for readability.
@@ -184,3 +189,31 @@ Content-Type: application/json
184189
}
185190
```
186191

192+
### Example 2: List single-instance agent identity blueprints
193+
194+
#### Request
195+
196+
<!-- { "blockType": "request", "name": "list_single_instance_agent_identity_blueprints" } -->
197+
```http
198+
GET https://graph.microsoft.com/beta/applications/microsoft.graph.agentIdentityBlueprint?$filter=isSingleInstance eq true&$count=true&$select=id,displayName,isSingleInstance
199+
ConsistencyLevel: eventual
200+
```
201+
202+
#### Response
203+
204+
<!-- { "blockType": "response", "truncated": true, "@odata.type": "microsoft.graph.agentIdentityBlueprint", "isCollection": true } -->
205+
```http
206+
HTTP/1.1 200 OK
207+
Content-Type: application/json
208+
209+
{
210+
"@odata.count": 1,
211+
"value": [
212+
{
213+
"id": "03ef14b0-ca33-4840-8f4f-d6e91916010e",
214+
"displayName": "Contoso Single-Instance Agent Blueprint",
215+
"isSingleInstance": true
216+
}
217+
]
218+
}
219+
```

‎api-reference/beta/api/agentidentityblueprint-post.md‎

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ POST /applications/microsoft.graph.agentIdentityBlueprint
4141
## Request body
4242
In the request body, supply a JSON representation of [agent identity blueprint](../resources/agentidentityblueprint.md) object. You must specify the **displayName** property and **sponsors** relationship.
4343

44+
Optionally, set **isSingleInstance** to `true` to create a blueprint that supports at most one active agent identity per tenant without an agent identity blueprint principal. If omitted, it defaults to `false`, preserving the multi-instance topology. The value is immutable after creation, whether `true` or `false`.
45+
4446
## Response
4547

4648
If successful, this method returns a `201 Created` response code and an [agentIdentityBlueprint](../resources/agentidentityblueprint.md) object in the response body.
@@ -49,6 +51,8 @@ For information about errors returned by agent identity APIs, see [Microsoft age
4951

5052
## Examples
5153

54+
### Example 1: Create a multi-instance agent identity blueprint
55+
5256
#### Request
5357
The following example shows a request.
5458

@@ -58,6 +62,7 @@ Content-type: application/json
5862
5963
{
6064
"displayName": "Display name",
65+
"isSingleInstance": false,
6166
"sponsors@odata.bind": [
6267
"https://graph.microsoft.com/beta/users/e64405d7-f156-4ce1-b1f5-b0d801c367f3"
6368
]
@@ -85,3 +90,41 @@ Content-type: application/json
8590
"signInAudience": "AzureADMyOrg"
8691
}
8792
```
93+
94+
### Example 2: Create a single-instance agent identity blueprint
95+
96+
#### Request
97+
98+
<!-- { "blockType": "request", "name": "create_single_instance_agent_identity_blueprint" } -->
99+
```http
100+
POST https://graph.microsoft.com/beta/applications/microsoft.graph.agentIdentityBlueprint
101+
Content-Type: application/json
102+
103+
{
104+
"displayName": "Contoso Single-Instance Agent Blueprint",
105+
"isSingleInstance": true,
106+
"sponsors@odata.bind": [
107+
"https://graph.microsoft.com/v1.0/users/acc9f0a1-9075-464f-9fe7-049bf1ae6481"
108+
],
109+
"owners@odata.bind": [
110+
"https://graph.microsoft.com/v1.0/users/acc9f0a1-9075-464f-9fe7-049bf1ae6481"
111+
]
112+
}
113+
```
114+
115+
#### Response
116+
117+
<!-- { "blockType": "response", "truncated": true, "@odata.type": "microsoft.graph.agentIdentityBlueprint" } -->
118+
```http
119+
HTTP/1.1 201 Created
120+
Content-Type: application/json
121+
122+
{
123+
"@odata.type": "#microsoft.graph.agentIdentityBlueprint",
124+
"id": "03ef14b0-ca33-4840-8f4f-d6e91916010e",
125+
"appId": "65415bb1-9267-4313-bbf5-ae259732ee12",
126+
"displayName": "Contoso Single-Instance Agent Blueprint",
127+
"isSingleInstance": true,
128+
"createdDateTime": "2026-11-02T23:00:00Z"
129+
}
130+
```

‎api-reference/beta/api/agentidentityblueprint-update.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ In the request body, supply the values for relevant fields that should be update
6363

6464
## Response
6565

66+
The **isSingleInstance** property is immutable after creation. An attempt to change it, in either direction, returns `400 Bad Request` with the error code `Request_BadRequest`.
67+
6668
If successful, this method returns a `204 No Content` response code.
6769

6870
For information about errors returned by agent identity APIs, see [Agent identity error codes](/entra/agent-id/identity-platform/error-codes).

‎api-reference/beta/api/agentidentityblueprint-upsert.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ In the request body, supply a JSON representation of the [agentIdentityBlueprint
5151

5252
## Response
5353

54+
The **isSingleInstance** property can be set when creating a blueprint and defaults to `false` if omitted. It is immutable after creation; an attempt to change it on an existing blueprint returns `400 Bad Request` with the error code `Request_BadRequest`.
55+
5456
If an object with **uniqueName** doesn't exist, this method returns a `201 Created` response code and a new agent identity blueprint object in the response body. The agent identity blueprint is assigned the uniqueName value.
5557

5658
If an object with **uniqueName** doesn't exist and the `Prefer: create-if-missing` header is *not* specified, this method returns a `404 Not Found` error code.

‎api-reference/beta/api/application-post-applications.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,8 @@ In the request body, supply a JSON representation of [application](../resources/
4949

5050
## Response
5151

52+
When creating an **agentIdentityBlueprint**, optionally set **isSingleInstance** to `true` to support at most one active agent identity per tenant without an agent identity blueprint principal. If omitted, it defaults to `false`. The value is immutable after creation.
53+
5254
If successful, this method returns `201 Created` response code and an [application](../resources/application.md) or [agentIdentityBlueprint](../resources/agentidentityblueprint.md) object in the response body.
5355

5456
## Examples

‎api-reference/beta/api/application-update.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ PUT /applications(appId='{appId}')/logo
5858
| Content-Type | application/json. Required. |
5959

6060
## Request body
61+
62+
The **isSingleInstance** property is immutable after creation. You can't change a blueprint between the single-instance and multi-instance topologies. An attempt to change this value returns `400 Bad Request` with the error code `Request_BadRequest`.
6163
In the request body, supply the values for relevant fields that should be updated. Existing properties that aren't included in the request body maintain their previous values or are recalculated based on changes to other property values. For best performance, don't include unchanged values.
6264

6365
| Property | Type | Description |

0 commit comments

Comments
 (0)