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/sessions-custom-container.md
+17Lines changed: 17 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,6 +96,16 @@ This command creates a session pool with the following settings:
96
96
|`--env-vars`|`"key1=value1" "key2=value2"`| The environment variables to set in the container. |
97
97
|`--location`|`"Supported Location"`| The location of the session pool. |
98
98
99
+
To check on the status of the session pool, use the `az containerapp sessionpool show` command:
100
+
101
+
```bash
102
+
az containerapp sessionpool show \
103
+
--name <SESSION_POOL_NAME> \
104
+
--resource-group <RESOURCE_GROUP> \
105
+
--query "properties.poolManagementEndpoint" \
106
+
--output tsv
107
+
```
108
+
99
109
To update the session pool, use the `az containerapp sessionpool update` command.
100
110
101
111
# [Azure Resource Manager](#tab/arm)
@@ -204,13 +214,20 @@ This template creates a session pool with the following settings:
204
214
> [!IMPORTANT]
205
215
> If the session is used to run untrusted code, don't include information or data that you don't want the untrusted code to access. Assume the code is malicious and has full access to the container, including its environment variables, secrets, and files.
206
216
217
+
#### Image caching
218
+
219
+
When a session pool is created or updated, Azure Container Apps caches the container image in the pool. This caching helps to speed up the process of creating new sessions.
220
+
221
+
Because the image is cached, any changes to the image aren't automatically reflected in the sessions. To update the image in the sessions, you must update the session pool with a new image tag. Use a unique tag for each image update to ensure that the new image is pulled.
222
+
207
223
### Working with sessions
208
224
209
225
Your application interacts with a session using the session pool's management API.
210
226
211
227
A pool management endpoint for custom container sessions follows this format: `https://<SESSION_POOL>.<ENVIRONMENT_ID>.<REGION>.azurecontainerapps.io`.
212
228
213
229
To retrieve the session pool's management endpoint, use the `az containerapp sessionpool show` command:
0 commit comments