Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The sessionPools resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.App/sessionPools resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.App/sessionPools@2024-02-02-preview' = {
location: 'string'
name: 'string'
properties: {
containerType: 'string'
customContainerTemplate: {
containers: [
{
args: [
'string'
]
command: [
'string'
]
env: [
{
name: 'string'
secretRef: 'string'
value: 'string'
}
]
image: 'string'
name: 'string'
resources: {
cpu: int
memory: 'string'
}
}
]
ingress: {
targetPort: int
}
registryCredentials: {
passwordSecretRef: 'string'
registryServer: 'string'
username: 'string'
}
}
dynamicPoolConfiguration: {
cooldownPeriodInSeconds: int
executionType: 'string'
}
environmentId: 'string'
poolManagementType: 'string'
scaleConfiguration: {
maxConcurrentSessions: int
readySessionInstances: int
}
secrets: [
{
name: 'string'
value: 'string'
}
]
sessionNetworkConfiguration: {
status: 'string'
}
}
tags: {
{customized property}: 'string'
}
}
Property Values
Microsoft.App/sessionPools
Name | Description | Value |
---|---|---|
location | The geo-location where the resource lives | string (required) |
name | The resource name | string Constraints: Min length = 3 Max length = 63 Pattern = ^[a-z][a-z0-9]*$ (required) |
properties | Container App session pool resource specific properties | SessionPoolProperties |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
CustomContainerTemplate
Name | Description | Value |
---|---|---|
containers | List of container definitions for the sessions of the session pool. | SessionContainer[] |
ingress | Session pool ingress configuration. | SessionIngress |
registryCredentials | Private container registry credentials for containers used by the sessions of the session pool. | SessionRegistryCredentials |
DynamicPoolConfiguration
Name | Description | Value |
---|---|---|
cooldownPeriodInSeconds | The cooldown period of a session in seconds. | int |
executionType | The execution type of the session pool. | 'Timed' |
EnvironmentVar
Name | Description | Value |
---|---|---|
name | Environment variable name. | string |
secretRef | Name of the Container App secret from which to pull the environment variable value. | string |
value | Non-secret environment variable value. | string |
ScaleConfiguration
Name | Description | Value |
---|---|---|
maxConcurrentSessions | The maximum count of sessions at the same time. | int |
readySessionInstances | The minimum count of ready session instances. | int |
SessionContainer
Name | Description | Value |
---|---|---|
args | Container start command arguments. | string[] |
command | Container start command. | string[] |
env | Container environment variables. | EnvironmentVar[] |
image | Container image tag. | string |
name | Custom container name. | string |
resources | Container resource requirements. | SessionContainerResources |
SessionContainerResources
Name | Description | Value |
---|---|---|
cpu | Required CPU in cores, e.g. 0.5 | int |
memory | Required memory, e.g. "250Mb" | string |
SessionIngress
Name | Description | Value |
---|---|---|
targetPort | Target port in containers for traffic from ingress | int |
SessionNetworkConfiguration
Name | Description | Value |
---|---|---|
status | Network status for the sessions. | 'EgressDisabled' 'EgressEnabled' |
SessionPoolProperties
Name | Description | Value |
---|---|---|
containerType | The container type of the sessions. | 'CustomContainer' 'PythonLTS' |
customContainerTemplate | The custom container configuration if the containerType is CustomContainer. | CustomContainerTemplate |
dynamicPoolConfiguration | The pool configuration if the poolManagementType is dynamic. | DynamicPoolConfiguration |
environmentId | Resource ID of the session pool's environment. | string |
poolManagementType | The pool management type of the session pool. | 'Dynamic' 'Manual' |
scaleConfiguration | The scale configuration of the session pool. | ScaleConfiguration |
secrets | The secrets of the session pool. | SessionPoolSecret[] |
sessionNetworkConfiguration | The network configuration of the sessions in the session pool. | SessionNetworkConfiguration |
SessionPoolSecret
Name | Description | Value |
---|---|---|
name | Secret Name. | string |
value | Secret Value. | string Constraints: Sensitive value. Pass in as a secure parameter. |
SessionRegistryCredentials
Name | Description | Value |
---|---|---|
passwordSecretRef | The name of the secret that contains the registry login password | string |
registryServer | Container registry server. | string |
username | Container registry username. | string |
TrackedResourceTags
Name | Description | Value |
---|
Usage Examples
Azure Verified Modules
The following Azure Verified Modules can be used to deploy this resource type.
Module | Description |
---|---|
App Session Pool | AVM Resource Module for App Session Pool |
ARM template resource definition
The sessionPools resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.App/sessionPools resource, add the following JSON to your template.
{
"type": "Microsoft.App/sessionPools",
"apiVersion": "2024-02-02-preview",
"name": "string",
"location": "string",
"properties": {
"containerType": "string",
"customContainerTemplate": {
"containers": [
{
"args": [ "string" ],
"command": [ "string" ],
"env": [
{
"name": "string",
"secretRef": "string",
"value": "string"
}
],
"image": "string",
"name": "string",
"resources": {
"cpu": "int",
"memory": "string"
}
}
],
"ingress": {
"targetPort": "int"
},
"registryCredentials": {
"passwordSecretRef": "string",
"registryServer": "string",
"username": "string"
}
},
"dynamicPoolConfiguration": {
"cooldownPeriodInSeconds": "int",
"executionType": "string"
},
"environmentId": "string",
"poolManagementType": "string",
"scaleConfiguration": {
"maxConcurrentSessions": "int",
"readySessionInstances": "int"
},
"secrets": [
{
"name": "string",
"value": "string"
}
],
"sessionNetworkConfiguration": {
"status": "string"
}
},
"tags": {
"{customized property}": "string"
}
}
Property Values
Microsoft.App/sessionPools
Name | Description | Value |
---|---|---|
apiVersion | The api version | '2024-02-02-preview' |
location | The geo-location where the resource lives | string (required) |
name | The resource name | string Constraints: Min length = 3 Max length = 63 Pattern = ^[a-z][a-z0-9]*$ (required) |
properties | Container App session pool resource specific properties | SessionPoolProperties |
tags | Resource tags | Dictionary of tag names and values. See Tags in templates |
type | The resource type | 'Microsoft.App/sessionPools' |
CustomContainerTemplate
Name | Description | Value |
---|---|---|
containers | List of container definitions for the sessions of the session pool. | SessionContainer[] |
ingress | Session pool ingress configuration. | SessionIngress |
registryCredentials | Private container registry credentials for containers used by the sessions of the session pool. | SessionRegistryCredentials |
DynamicPoolConfiguration
Name | Description | Value |
---|---|---|
cooldownPeriodInSeconds | The cooldown period of a session in seconds. | int |
executionType | The execution type of the session pool. | 'Timed' |
EnvironmentVar
Name | Description | Value |
---|---|---|
name | Environment variable name. | string |
secretRef | Name of the Container App secret from which to pull the environment variable value. | string |
value | Non-secret environment variable value. | string |
ScaleConfiguration
Name | Description | Value |
---|---|---|
maxConcurrentSessions | The maximum count of sessions at the same time. | int |
readySessionInstances | The minimum count of ready session instances. | int |
SessionContainer
Name | Description | Value |
---|---|---|
args | Container start command arguments. | string[] |
command | Container start command. | string[] |
env | Container environment variables. | EnvironmentVar[] |
image | Container image tag. | string |
name | Custom container name. | string |
resources | Container resource requirements. | SessionContainerResources |
SessionContainerResources
Name | Description | Value |
---|---|---|
cpu | Required CPU in cores, e.g. 0.5 | int |
memory | Required memory, e.g. "250Mb" | string |
SessionIngress
Name | Description | Value |
---|---|---|
targetPort | Target port in containers for traffic from ingress | int |
SessionNetworkConfiguration
Name | Description | Value |
---|---|---|
status | Network status for the sessions. | 'EgressDisabled' 'EgressEnabled' |
SessionPoolProperties
Name | Description | Value |
---|---|---|
containerType | The container type of the sessions. | 'CustomContainer' 'PythonLTS' |
customContainerTemplate | The custom container configuration if the containerType is CustomContainer. | CustomContainerTemplate |
dynamicPoolConfiguration | The pool configuration if the poolManagementType is dynamic. | DynamicPoolConfiguration |
environmentId | Resource ID of the session pool's environment. | string |
poolManagementType | The pool management type of the session pool. | 'Dynamic' 'Manual' |
scaleConfiguration | The scale configuration of the session pool. | ScaleConfiguration |
secrets | The secrets of the session pool. | SessionPoolSecret[] |
sessionNetworkConfiguration | The network configuration of the sessions in the session pool. | SessionNetworkConfiguration |
SessionPoolSecret
Name | Description | Value |
---|---|---|
name | Secret Name. | string |
value | Secret Value. | string Constraints: Sensitive value. Pass in as a secure parameter. |
SessionRegistryCredentials
Name | Description | Value |
---|---|---|
passwordSecretRef | The name of the secret that contains the registry login password | string |
registryServer | Container registry server. | string |
username | Container registry username. | string |
TrackedResourceTags
Name | Description | Value |
---|
Usage Examples
Terraform (AzAPI provider) resource definition
The sessionPools resource type can be deployed with operations that target:
- Resource groups
For a list of changed properties in each API version, see change log.
Resource format
To create a Microsoft.App/sessionPools resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/sessionPools@2024-02-02-preview"
name = "string"
parent_id = "string"
location = "string"
tags = {
{customized property} = "string"
}
body = {
properties = {
containerType = "string"
customContainerTemplate = {
containers = [
{
args = [
"string"
]
command = [
"string"
]
env = [
{
name = "string"
secretRef = "string"
value = "string"
}
]
image = "string"
name = "string"
resources = {
cpu = int
memory = "string"
}
}
]
ingress = {
targetPort = int
}
registryCredentials = {
passwordSecretRef = "string"
registryServer = "string"
username = "string"
}
}
dynamicPoolConfiguration = {
cooldownPeriodInSeconds = int
executionType = "string"
}
environmentId = "string"
poolManagementType = "string"
scaleConfiguration = {
maxConcurrentSessions = int
readySessionInstances = int
}
secrets = [
{
name = "string"
value = "string"
}
]
sessionNetworkConfiguration = {
status = "string"
}
}
}
}
Property Values
Microsoft.App/sessionPools
Name | Description | Value |
---|---|---|
location | The geo-location where the resource lives | string (required) |
name | The resource name | string Constraints: Min length = 3 Max length = 63 Pattern = ^[a-z][a-z0-9]*$ (required) |
properties | Container App session pool resource specific properties | SessionPoolProperties |
tags | Resource tags | Dictionary of tag names and values. |
type | The resource type | "Microsoft.App/sessionPools@2024-02-02-preview" |
CustomContainerTemplate
Name | Description | Value |
---|---|---|
containers | List of container definitions for the sessions of the session pool. | SessionContainer[] |
ingress | Session pool ingress configuration. | SessionIngress |
registryCredentials | Private container registry credentials for containers used by the sessions of the session pool. | SessionRegistryCredentials |
DynamicPoolConfiguration
Name | Description | Value |
---|---|---|
cooldownPeriodInSeconds | The cooldown period of a session in seconds. | int |
executionType | The execution type of the session pool. | 'Timed' |
EnvironmentVar
Name | Description | Value |
---|---|---|
name | Environment variable name. | string |
secretRef | Name of the Container App secret from which to pull the environment variable value. | string |
value | Non-secret environment variable value. | string |
ScaleConfiguration
Name | Description | Value |
---|---|---|
maxConcurrentSessions | The maximum count of sessions at the same time. | int |
readySessionInstances | The minimum count of ready session instances. | int |
SessionContainer
Name | Description | Value |
---|---|---|
args | Container start command arguments. | string[] |
command | Container start command. | string[] |
env | Container environment variables. | EnvironmentVar[] |
image | Container image tag. | string |
name | Custom container name. | string |
resources | Container resource requirements. | SessionContainerResources |
SessionContainerResources
Name | Description | Value |
---|---|---|
cpu | Required CPU in cores, e.g. 0.5 | int |
memory | Required memory, e.g. "250Mb" | string |
SessionIngress
Name | Description | Value |
---|---|---|
targetPort | Target port in containers for traffic from ingress | int |
SessionNetworkConfiguration
Name | Description | Value |
---|---|---|
status | Network status for the sessions. | 'EgressDisabled' 'EgressEnabled' |
SessionPoolProperties
Name | Description | Value |
---|---|---|
containerType | The container type of the sessions. | 'CustomContainer' 'PythonLTS' |
customContainerTemplate | The custom container configuration if the containerType is CustomContainer. | CustomContainerTemplate |
dynamicPoolConfiguration | The pool configuration if the poolManagementType is dynamic. | DynamicPoolConfiguration |
environmentId | Resource ID of the session pool's environment. | string |
poolManagementType | The pool management type of the session pool. | 'Dynamic' 'Manual' |
scaleConfiguration | The scale configuration of the session pool. | ScaleConfiguration |
secrets | The secrets of the session pool. | SessionPoolSecret[] |
sessionNetworkConfiguration | The network configuration of the sessions in the session pool. | SessionNetworkConfiguration |
SessionPoolSecret
Name | Description | Value |
---|---|---|
name | Secret Name. | string |
value | Secret Value. | string Constraints: Sensitive value. Pass in as a secure parameter. |
SessionRegistryCredentials
Name | Description | Value |
---|---|---|
passwordSecretRef | The name of the secret that contains the registry login password | string |
registryServer | Container registry server. | string |
username | Container registry username. | string |
TrackedResourceTags
Name | Description | Value |
---|