session_pools
Creates, updates, deletes, gets or lists a session_pools
resource.
Overview
Name | session_pools |
Type | Resource |
Id | azure.container_apps.session_pools |
Fields
Name | Datatype | Description |
---|---|---|
location | string | The geo-location where the resource lives |
properties | object | Container App session pool resource specific properties |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | resourceGroupName, sessionPoolName, subscriptionId | |
list_by_resource_group | SELECT | resourceGroupName, subscriptionId | |
list_by_subscription | SELECT | subscriptionId | |
create_or_update | INSERT | resourceGroupName, sessionPoolName, subscriptionId | Create or update a session pool with the given properties. |
delete | DELETE | resourceGroupName, sessionPoolName, subscriptionId | Delete the session pool with the given name. |
update | UPDATE | resourceGroupName, sessionPoolName, subscriptionId | Patches a session pool using JSON merge patch |
SELECT
examples
SELECT
location,
properties,
tags
FROM azure.container_apps.session_pools
WHERE subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new session_pools
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_apps.session_pools (
resourceGroupName,
sessionPoolName,
subscriptionId,
tags,
location,
properties
)
SELECT
'{{ resourceGroupName }}',
'{{ sessionPoolName }}',
'{{ subscriptionId }}',
'{{ tags }}',
'{{ location }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: tags
value: object
- name: location
value: string
- name: properties
value:
- name: environmentId
value: string
- name: containerType
value: string
- name: poolManagementType
value: string
- name: nodeCount
value: integer
- name: scaleConfiguration
value:
- name: maxConcurrentSessions
value: integer
- name: readySessionInstances
value: integer
- name: secrets
value:
- - name: name
value: string
- name: value
value: string
- name: dynamicPoolConfiguration
value:
- name: executionType
value: string
- name: cooldownPeriodInSeconds
value: integer
- name: customContainerTemplate
value:
- name: registryCredentials
value:
- name: registryServer
value: string
- name: username
value: string
- name: passwordSecretRef
value: string
- name: containers
value:
- - name: image
value: string
- name: name
value: string
- name: command
value:
- string
- name: args
value:
- string
- name: env
value:
- - name: name
value: string
- name: value
value: string
- name: secretRef
value: string
- name: resources
value:
- name: cpu
value: number
- name: memory
value: string
- name: ingress
value:
- name: targetPort
value: integer
- name: sessionNetworkConfiguration
value:
- name: status
value: string
- name: poolManagementEndpoint
value: string
- name: provisioningState
value: string
UPDATE
example
Updates a session_pools
resource.
/*+ update */
UPDATE azure.container_apps.session_pools
SET
properties = '{{ properties }}'
WHERE
resourceGroupName = '{{ resourceGroupName }}'
AND sessionPoolName = '{{ sessionPoolName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified session_pools
resource.
/*+ delete */
DELETE FROM azure.container_apps.session_pools
WHERE resourceGroupName = '{{ resourceGroupName }}'
AND sessionPoolName = '{{ sessionPoolName }}'
AND subscriptionId = '{{ subscriptionId }}';