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
Copy file name to clipboardExpand all lines: articles/container-apps/session-pool.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Use session pools in Azure Container Apps
3
-
description: Learn to run a container in a custom session in Azure Container Apps.
3
+
description: Learn to use and manage session pools in Azure Container Apps.
4
4
services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: azure-container-apps
@@ -267,7 +267,7 @@ This template creates a session pool with the following settings:
267
267
> [!IMPORTANT]
268
268
> The session identifier is sensitive information which requires a secure process as you create and manage its value. To protect this value, your application must ensure each user or tenant only has access to their own sessions.
269
269
>
270
-
> Failure to secure access to sessions could result in misuse or unauthorized access to data stored in your users' sessions. For more information, see [Session identifiers](sessions.md#session-identifiers)
270
+
> Failure to secure access to sessions could result in misuse or unauthorized access to data stored in your users' sessions. For more information, see [Session identifiers](./sessions-usage.md#session-identifiers)
271
271
272
272
The following endpoints are available for managing sessions in a pool:
273
273
@@ -292,9 +292,9 @@ az containerapp sessionpool show \
292
292
--output tsv
293
293
```
294
294
295
-
All requests to the pool management endpoint must include an `Authorization` header with a bearer token. To learn how to authenticate with the pool management API, see [Authentication](sessions.md#authentication).
295
+
All requests to the pool management endpoint must include an `Authorization` header with a bearer token. To learn how to authenticate with the pool management API, see [Authentication](sessions-usage.md#authentication).
296
296
297
-
Each API request must also include the query string parameter `identifier` with the session ID. This unique session ID enables your application to interact with specific sessions. To learn more about session identifiers, see [Session identifiers](sessions.md#session-identifiers).
297
+
Each API request must also include the query string parameter `identifier` with the session ID. This unique session ID enables your application to interact with specific sessions. To learn more about session identifiers, see [Session identifiers](sessions-usage.md#session-identifiers).
Copy file name to clipboardExpand all lines: articles/container-apps/sessions-code-interpreter.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -43,7 +43,7 @@ In the session pool, you can specify settings such as the maximum number of conc
43
43
44
44
You can create a session pool using the Azure portal, Azure CLI, or Azure Resource Manager templates. After you create a session pool, you can use the pool's management API endpoints to manage and execute code inside a session.
45
45
46
-
For more information about how to create and configure a session pool, see [Use session pools](./sessio-pool.md).
46
+
For more information about how to create and configure a session pool, see [Use session pools](./session-pool.md).
47
47
48
48
## Code execution in a session
49
49
@@ -54,14 +54,12 @@ After you create a session pool, your application can interact with sessions in
54
54
> [!IMPORTANT]
55
55
> The session identifier is sensitive information which requires you to use a secure process to manage its value. Part of this process requires that your application ensures each user or tenant only has access to their own sessions.
56
56
>
57
-
> Failure to secure access to sessions could result in misuse or unauthorized access to data stored in your users' sessions. For more information, see [Session identifiers](sessions.md#session-identifiers)
57
+
> Failure to secure access to sessions could result in misuse or unauthorized access to data stored in your users' sessions. For more information, see [Session identifiers](sessions-usage.md#session-identifiers).
58
58
59
-
When you interact with sessions in a pool, you use a session identifier to reference each session A session identifier is a string that you define that is unique within the session pool. If you're building a web application, you can use the user's ID. If you're building a chatbot, you can use the conversation ID.
59
+
When you interact with sessions in a pool, you use a [session identifier](sessions-usage.md#session-identifiers) to reference each session A session identifier is a string that you define that is unique within the session pool. If you're building a web application, you can use the user's ID. If you're building a chatbot, you can use the conversation ID.
60
60
61
61
If there's a running session with the identifier, the session is reused. If there's no running session with the identifier, a new session is automatically created.
62
62
63
-
To learn more about session identifiers, see [Sessions overview](./sessions.md#session-identifiers).
64
-
65
63
## Authentication
66
64
67
65
Authentication is handled using Microsoft Entra tokens. Valid Microsoft Entra tokens are generated by an identity belonging to the *Azure ContainerApps Session Executor* and *Contributor* roles on the session pool.
Copy file name to clipboardExpand all lines: articles/container-apps/sessions-tutorial-nodejs.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -131,7 +131,7 @@ To interact with the session pool's API, you must use an identity with the `Azur
131
131
132
132
## Get a bearer token
133
133
134
-
For direct access to the session pool’s API, generate an access token to include in the `Authorization` header of your requests. Ensure the token contains an audience (`aud`) claim with the value `https://dynamicsessions.io`. For more information, see [authentication and authorization](./sessions.md?tabs=azure-cli#authentication) rules.
134
+
For direct access to the session pool’s API, generate an access token to include in the `Authorization` header of your requests. Ensure the token contains an audience (`aud`) claim with the value `https://dynamicsessions.io`. For more information, see [authentication and authorization](./sessions-usage.md?tabs=azure-cli#authentication) rules.
Copy file name to clipboardExpand all lines: articles/container-apps/sessions-usage.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Use dynamic sessions in Azure Container Apps
3
-
description: Learn how when to use dynamic sessions in Azure Container Apps.
3
+
description: Learn how to use dynamic sessions in Azure Container Apps.
4
4
services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: azure-container-apps
@@ -192,7 +192,7 @@ If you're using an [large language model (LLM) framework integration](sessions-c
192
192
193
193
If you're using the pool's management API endpoints directly, you must generate a token and include it in the `Authorization` header of your HTTP requests. In addition to the role assignments previously mentioned, token needs to contain an audience (`aud`) claim with the value `https://dynamicsessions.io`.
194
194
195
-
##### [Azure CLI](#tab/azure-cli)
195
+
##### [Azure CLI](#tab/cli)
196
196
197
197
To generate a token using the Azure CLI, run the following command:
Copy file name to clipboardExpand all lines: articles/container-apps/sessions.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
title: Dynamic sessions in Azure Container Apps
3
-
description: Learn how when to use dynamic sessions in Azure Container Apps.
3
+
description: Learn about dynamic sessions in Azure Container Apps.
4
4
services: container-apps
5
5
author: craigshoemaker
6
6
ms.service: azure-container-apps
@@ -53,7 +53,7 @@ Azure Container Apps supports two types of sessions:
53
53
54
54
To provide subsecond session allocation times, Azure Container Apps maintains a pool of ready but unallocated sessions. When your application makes a request for a session that hasn't been used before, the pool automatically assigns a new session for you. As sessions are allocated, the pool is automatically replenished to maintain a constant number of ready sessions.
55
55
56
-
Each session pool is available to your app through a unique [pool management endpoint location](#working-with-sessions).
56
+
Each session pool is available to your app through a [unique pool management endpoint location](sessions-usage.md).
0 commit comments