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
@@ -84,8 +84,8 @@ This command creates a session pool with the following settings:
84
84
|`--registry-server`|`myregistry.azurecr.io`| The container registry server hostname. |
85
85
|`--registry-username`|`my-username`| The username to log in to the container registry. |
86
86
|`--registry-password`|`my-password`| The password to log in to the container registry. |
87
-
|`--cpu`|`1.0`| The required CPU in cores. |
88
-
|`--memory`|`2.0Gi`| The required memory. |
87
+
|`--cpu`|`0.25`| The required CPU in cores. |
88
+
|`--memory`|`0.5Gi`| The required memory. |
89
89
|`--target-port`|`80`| The session port used for ingress traffic. |
90
90
|`--cooldown-period`|`300`| The number of seconds that a session can be idle before the session is terminated. The idle period is reset each time the session's API is called. Value must be between `300` and `3600`. |
91
91
|`--network-status`| Designates whether outbound network traffic is allowed from the session. Valid values are `EgressDisabled` (default) and `EgressEnabled`. |
@@ -103,29 +103,38 @@ Before you send the request, replace the placeholders between the `<>` brackets
@@ -135,17 +144,15 @@ Before you send the request, replace the placeholders between the `<>` brackets
135
144
"name": "key2",
136
145
"value": "value2"
137
146
}
138
-
],
139
-
"command": ["/bin/sh"],
140
-
"args": ["-c", "while true; do echo hello; sleep 10; done"]
147
+
]
141
148
}
142
149
],
143
150
"ingress": {
144
151
"targetPort": 80
145
152
}
146
153
},
147
154
"sessionNetworkConfiguration": {
148
-
"status": "EgressDisabled"
155
+
"status": "EgressEnabled"
149
156
}
150
157
}
151
158
}
@@ -158,17 +165,19 @@ This template creates a session pool with the following settings:
158
165
|`name`|`my-session-pool`| The name of the session pool. |
159
166
|`location`|`westus2`| The location of the session pool. |
160
167
|`environmentId`|`/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.ContainerApps/environments/<ENVIRONMENT_NAME>`| The resource ID of the container app's environment. |
168
+
|`poolManagementType`|`Dynamic`| Must be `Dynamic` for custom container sessions. |
161
169
|`containerType`|`CustomContainer`| The container type of the session pool. Must be `CustomContainer` for custom container sessions. |
162
170
|`scaleConfiguration.maxConcurrentSessions`|`10`| The maximum number of sessions that can be allocated at the same time. |
163
171
|`scaleConfiguration.readySessionInstances`|`5`| The target number of sessions that are ready in the session pool all the time. Increase this number if sessions are allocated faster than the pool is being replenished. |
164
172
|`dynamicPoolConfiguration.executionType`|`Timed`| The type of execution for the session pool. Must be `Timed` for custom container sessions. |
165
-
|`dynamicPoolConfiguration.cooldownPeriodInSeconds`|`300`| The number of seconds that a session can be idle before the session is terminated. The idle period is reset each time the session's API is called. Value must be between `300` and `3600`. |
166
-
|`customContainerTemplate.containers[0]`|`myregistry.azurecr.io/my-container-image:1.0`| The container image to use for the session pool. |
167
-
|`customContainerTemplate.containers[0].resources.cpu`|`1.0`| The required CPU in cores. |
168
-
|`customContainerTemplate.containers[0].resources.memory`|`2.0Gi`| The required memory. |
169
-
|`customContainerTemplate.containers[0].env`|`{"key1": "value1", "key2": "value2"}`| The environment variables to set in the container. |
173
+
|`dynamicPoolConfiguration.cooldownPeriodInSeconds`|`600`| The number of seconds that a session can be idle before the session is terminated. The idle period is reset each time the session's API is called. Value must be between `300` and `3600`. |
174
+
|`customContainerTemplate.containers[0].image`|`myregistry.azurecr.io/my-container-image:1.0`| The container image to use for the session pool. |
175
+
|`customContainerTemplate.containers[0].name`|`mycontainer`| The name of the container. |
176
+
|`customContainerTemplate.containers[0].resources.cpu`|`0.25`| The required CPU in cores. |
177
+
|`customContainerTemplate.containers[0].resources.memory`|`0.5Gi`| The required memory. |
178
+
|`customContainerTemplate.containers[0].env`| Array of name-value pairs | The environment variables to set in the container. |
170
179
|`customContainerTemplate.containers[0].command`|`["/bin/sh"]`| The command to run in the container. |
171
-
|`customContainerTemplate.containers[0].args`|`["-c", "while true; do echo hello; sleep 10;done"]`| The arguments to pass to the command. |
180
+
|`customContainerTemplate.containers[0].args`|`["-c", "while true; do echo hello; sleep 10;done"]`| The arguments to pass to the command. |
172
181
|`customContainerTemplate.containers[0].ingress.targetPort`|`80`| The session port used for ingress traffic. |
173
182
|`sessionNetworkConfiguration.status`|`EgressDisabled`| Designates whether outbound network traffic is allowed from the session. Valid values are `EgressDisabled` (default) and `EgressEnabled`. |
0 commit comments