Skip to main content

container_apps_session_pools

Creates, updates, deletes, gets or lists a container_apps_session_pools resource.

Overview

Namecontainer_apps_session_pools
TypeResource
Idazure.app_containers.container_apps_session_pools

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
containerTypestringThe container type of the sessions. You can use your own container to build the session pool, or you can use a predefined container to run workload with specific language. Known values are: "CustomContainer" and "PythonLTS". (CustomContainer, PythonLTS)
customContainerTemplateobjectThe custom container configuration if the containerType is CustomContainer.
dynamicPoolConfigurationobjectThe pool configuration if the poolManagementType is dynamic.
environmentIdstringResource ID of the session pool's environment.
identityobjectThe managed service identities assigned to this resource.
locationstringThe geo-location where the resource lives. Required.
managedIdentitySettingsarrayOptional settings for a Managed Identity that is assigned to the Session pool.
nodeCountintegerThe number of nodes the session pool is using.
poolManagementEndpointstringThe endpoint to manage the pool.
poolManagementTypestringThe pool management type of the session pool. Known values are: "Manual" and "Dynamic". (Manual, Dynamic)
provisioningStatestringProvisioning state of the session pool. Known values are: "InProgress", "Succeeded", "Failed", "Canceled", and "Deleting". (InProgress, Succeeded, Failed, Canceled, Deleting)
scaleConfigurationobjectThe scale configuration of the session pool.
secretsarrayThe secrets of the session pool.
sessionNetworkConfigurationobjectThe network configuration of the sessions in the session pool.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
tagsobjectResource tags.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, session_pool_name, subscription_idGet the properties of a session pool. Get the properties of a session pool.
list_by_resource_groupselectresource_group_name, subscription_idGet the session pools in a given resource group of a subscription. Get the session pools in a given resource group of a subscription.
list_by_subscriptionselectsubscription_idGet the session pools in a given subscription. Get the session pools in a given subscription.
create_or_updateinsertresource_group_name, session_pool_name, subscription_id, locationCreate or update a session pool. Create or update a session pool with the given properties.
updateupdateresource_group_name, session_pool_name, subscription_idUpdate properties of a session pool. Patches a session pool using JSON merge patch.
create_or_updatereplaceresource_group_name, session_pool_name, subscription_id, locationCreate or update a session pool. Create or update a session pool with the given properties.
deletedeleteresource_group_name, session_pool_name, subscription_idDelete a session pool. Delete the session pool with the given name.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
session_pool_namestringName of the session pool. Required.
subscription_idstring

SELECT examples

Get the properties of a session pool. Get the properties of a session pool.

SELECT
id,
name,
containerType,
customContainerTemplate,
dynamicPoolConfiguration,
environmentId,
identity,
location,
managedIdentitySettings,
nodeCount,
poolManagementEndpoint,
poolManagementType,
provisioningState,
scaleConfiguration,
secrets,
sessionNetworkConfiguration,
systemData,
tags,
type
FROM azure.app_containers.container_apps_session_pools
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND session_pool_name = '{{ session_pool_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a session pool. Create or update a session pool with the given properties.

INSERT INTO azure.app_containers.container_apps_session_pools (
tags,
location,
properties,
identity,
resource_group_name,
session_pool_name,
subscription_id
)
SELECT
'{{ tags }}',
'{{ location }}' /* required */,
'{{ properties }}',
'{{ identity }}',
'{{ resource_group_name }}',
'{{ session_pool_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type
;

UPDATE examples

Update properties of a session pool. Patches a session pool using JSON merge patch.

UPDATE azure.app_containers.container_apps_session_pools
SET
tags = '{{ tags }}',
identity = '{{ identity }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND session_pool_name = '{{ session_pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

REPLACE examples

Create or update a session pool. Create or update a session pool with the given properties.

REPLACE azure.app_containers.container_apps_session_pools
SET
tags = '{{ tags }}',
location = '{{ location }}',
properties = '{{ properties }}',
identity = '{{ identity }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND session_pool_name = '{{ session_pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
AND location = '{{ location }}' --required
RETURNING
id,
name,
identity,
location,
properties,
systemData,
tags,
type;

DELETE examples

Delete a session pool. Delete the session pool with the given name.

DELETE FROM azure.app_containers.container_apps_session_pools
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND session_pool_name = '{{ session_pool_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;