azure-native.app.ContainerAppsSessionPool
Explore with Pulumi AI
Container App session pool. Azure REST API version: 2024-02-02-preview.
Example Usage
Create or Update Session Pool
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var containerAppsSessionPool = new AzureNative.App.ContainerAppsSessionPool("containerAppsSessionPool", new()
{
ContainerType = AzureNative.App.ContainerType.CustomContainer,
CustomContainerTemplate = new AzureNative.App.Inputs.CustomContainerTemplateArgs
{
Containers = new[]
{
new AzureNative.App.Inputs.SessionContainerArgs
{
Args = new[]
{
"-c",
"while true; do echo hello; sleep 10;done",
},
Command = new[]
{
"/bin/sh",
},
Image = "repo/testcontainer:v4",
Name = "testinitcontainer",
Resources = new AzureNative.App.Inputs.SessionContainerResourcesArgs
{
Cpu = 0.25,
Memory = "0.5Gi",
},
},
},
Ingress = new AzureNative.App.Inputs.SessionIngressArgs
{
TargetPort = 80,
},
},
DynamicPoolConfiguration = new AzureNative.App.Inputs.DynamicPoolConfigurationArgs
{
CooldownPeriodInSeconds = 600,
ExecutionType = AzureNative.App.ExecutionType.Timed,
},
EnvironmentId = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
Location = "East US",
PoolManagementType = AzureNative.App.PoolManagementType.Dynamic,
ResourceGroupName = "rg",
ScaleConfiguration = new AzureNative.App.Inputs.ScaleConfigurationArgs
{
MaxConcurrentSessions = 500,
ReadySessionInstances = 100,
},
SessionNetworkConfiguration = new AzureNative.App.Inputs.SessionNetworkConfigurationArgs
{
Status = AzureNative.App.SessionNetworkStatus.EgressEnabled,
},
SessionPoolName = "testsessionpool",
});
});
package main
import (
app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := app.NewContainerAppsSessionPool(ctx, "containerAppsSessionPool", &app.ContainerAppsSessionPoolArgs{
ContainerType: pulumi.String(app.ContainerTypeCustomContainer),
CustomContainerTemplate: &app.CustomContainerTemplateArgs{
Containers: app.SessionContainerArray{
&app.SessionContainerArgs{
Args: pulumi.StringArray{
pulumi.String("-c"),
pulumi.String("while true; do echo hello; sleep 10;done"),
},
Command: pulumi.StringArray{
pulumi.String("/bin/sh"),
},
Image: pulumi.String("repo/testcontainer:v4"),
Name: pulumi.String("testinitcontainer"),
Resources: &app.SessionContainerResourcesArgs{
Cpu: pulumi.Float64(0.25),
Memory: pulumi.String("0.5Gi"),
},
},
},
Ingress: &app.SessionIngressArgs{
TargetPort: pulumi.Int(80),
},
},
DynamicPoolConfiguration: &app.DynamicPoolConfigurationArgs{
CooldownPeriodInSeconds: pulumi.Int(600),
ExecutionType: pulumi.String(app.ExecutionTypeTimed),
},
EnvironmentId: pulumi.String("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube"),
Location: pulumi.String("East US"),
PoolManagementType: pulumi.String(app.PoolManagementTypeDynamic),
ResourceGroupName: pulumi.String("rg"),
ScaleConfiguration: &app.ScaleConfigurationArgs{
MaxConcurrentSessions: pulumi.Int(500),
ReadySessionInstances: pulumi.Int(100),
},
SessionNetworkConfiguration: &app.SessionNetworkConfigurationArgs{
Status: pulumi.String(app.SessionNetworkStatusEgressEnabled),
},
SessionPoolName: pulumi.String("testsessionpool"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.app.ContainerAppsSessionPool;
import com.pulumi.azurenative.app.ContainerAppsSessionPoolArgs;
import com.pulumi.azurenative.app.inputs.CustomContainerTemplateArgs;
import com.pulumi.azurenative.app.inputs.SessionIngressArgs;
import com.pulumi.azurenative.app.inputs.DynamicPoolConfigurationArgs;
import com.pulumi.azurenative.app.inputs.ScaleConfigurationArgs;
import com.pulumi.azurenative.app.inputs.SessionNetworkConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var containerAppsSessionPool = new ContainerAppsSessionPool("containerAppsSessionPool", ContainerAppsSessionPoolArgs.builder()
.containerType("CustomContainer")
.customContainerTemplate(CustomContainerTemplateArgs.builder()
.containers(SessionContainerArgs.builder()
.args(
"-c",
"while true; do echo hello; sleep 10;done")
.command("/bin/sh")
.image("repo/testcontainer:v4")
.name("testinitcontainer")
.resources(SessionContainerResourcesArgs.builder()
.cpu(0.25)
.memory("0.5Gi")
.build())
.build())
.ingress(SessionIngressArgs.builder()
.targetPort(80)
.build())
.build())
.dynamicPoolConfiguration(DynamicPoolConfigurationArgs.builder()
.cooldownPeriodInSeconds(600)
.executionType("Timed")
.build())
.environmentId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube")
.location("East US")
.poolManagementType("Dynamic")
.resourceGroupName("rg")
.scaleConfiguration(ScaleConfigurationArgs.builder()
.maxConcurrentSessions(500)
.readySessionInstances(100)
.build())
.sessionNetworkConfiguration(SessionNetworkConfigurationArgs.builder()
.status("EgressEnabled")
.build())
.sessionPoolName("testsessionpool")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
container_apps_session_pool = azure_native.app.ContainerAppsSessionPool("containerAppsSessionPool",
container_type=azure_native.app.ContainerType.CUSTOM_CONTAINER,
custom_container_template={
"containers": [{
"args": [
"-c",
"while true; do echo hello; sleep 10;done",
],
"command": ["/bin/sh"],
"image": "repo/testcontainer:v4",
"name": "testinitcontainer",
"resources": {
"cpu": 0.25,
"memory": "0.5Gi",
},
}],
"ingress": {
"target_port": 80,
},
},
dynamic_pool_configuration={
"cooldown_period_in_seconds": 600,
"execution_type": azure_native.app.ExecutionType.TIMED,
},
environment_id="/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
location="East US",
pool_management_type=azure_native.app.PoolManagementType.DYNAMIC,
resource_group_name="rg",
scale_configuration={
"max_concurrent_sessions": 500,
"ready_session_instances": 100,
},
session_network_configuration={
"status": azure_native.app.SessionNetworkStatus.EGRESS_ENABLED,
},
session_pool_name="testsessionpool")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const containerAppsSessionPool = new azure_native.app.ContainerAppsSessionPool("containerAppsSessionPool", {
containerType: azure_native.app.ContainerType.CustomContainer,
customContainerTemplate: {
containers: [{
args: [
"-c",
"while true; do echo hello; sleep 10;done",
],
command: ["/bin/sh"],
image: "repo/testcontainer:v4",
name: "testinitcontainer",
resources: {
cpu: 0.25,
memory: "0.5Gi",
},
}],
ingress: {
targetPort: 80,
},
},
dynamicPoolConfiguration: {
cooldownPeriodInSeconds: 600,
executionType: azure_native.app.ExecutionType.Timed,
},
environmentId: "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube",
location: "East US",
poolManagementType: azure_native.app.PoolManagementType.Dynamic,
resourceGroupName: "rg",
scaleConfiguration: {
maxConcurrentSessions: 500,
readySessionInstances: 100,
},
sessionNetworkConfiguration: {
status: azure_native.app.SessionNetworkStatus.EgressEnabled,
},
sessionPoolName: "testsessionpool",
});
resources:
containerAppsSessionPool:
type: azure-native:app:ContainerAppsSessionPool
properties:
containerType: CustomContainer
customContainerTemplate:
containers:
- args:
- -c
- while true; do echo hello; sleep 10;done
command:
- /bin/sh
image: repo/testcontainer:v4
name: testinitcontainer
resources:
cpu: 0.25
memory: 0.5Gi
ingress:
targetPort: 80
dynamicPoolConfiguration:
cooldownPeriodInSeconds: 600
executionType: Timed
environmentId: /subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/rg/providers/Microsoft.App/managedEnvironments/demokube
location: East US
poolManagementType: Dynamic
resourceGroupName: rg
scaleConfiguration:
maxConcurrentSessions: 500
readySessionInstances: 100
sessionNetworkConfiguration:
status: EgressEnabled
sessionPoolName: testsessionpool
Create ContainerAppsSessionPool Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ContainerAppsSessionPool(name: string, args: ContainerAppsSessionPoolArgs, opts?: CustomResourceOptions);
@overload
def ContainerAppsSessionPool(resource_name: str,
args: ContainerAppsSessionPoolArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ContainerAppsSessionPool(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
container_type: Optional[Union[str, ContainerType]] = None,
custom_container_template: Optional[CustomContainerTemplateArgs] = None,
dynamic_pool_configuration: Optional[DynamicPoolConfigurationArgs] = None,
environment_id: Optional[str] = None,
location: Optional[str] = None,
pool_management_type: Optional[Union[str, PoolManagementType]] = None,
scale_configuration: Optional[ScaleConfigurationArgs] = None,
secrets: Optional[Sequence[SessionPoolSecretArgs]] = None,
session_network_configuration: Optional[SessionNetworkConfigurationArgs] = None,
session_pool_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewContainerAppsSessionPool(ctx *Context, name string, args ContainerAppsSessionPoolArgs, opts ...ResourceOption) (*ContainerAppsSessionPool, error)
public ContainerAppsSessionPool(string name, ContainerAppsSessionPoolArgs args, CustomResourceOptions? opts = null)
public ContainerAppsSessionPool(String name, ContainerAppsSessionPoolArgs args)
public ContainerAppsSessionPool(String name, ContainerAppsSessionPoolArgs args, CustomResourceOptions options)
type: azure-native:app:ContainerAppsSessionPool
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ContainerAppsSessionPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ContainerAppsSessionPoolArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ContainerAppsSessionPoolArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ContainerAppsSessionPoolArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ContainerAppsSessionPoolArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var containerAppsSessionPoolResource = new AzureNative.App.ContainerAppsSessionPool("containerAppsSessionPoolResource", new()
{
ResourceGroupName = "string",
ContainerType = "string",
CustomContainerTemplate = new AzureNative.App.Inputs.CustomContainerTemplateArgs
{
Containers = new[]
{
new AzureNative.App.Inputs.SessionContainerArgs
{
Args = new[]
{
"string",
},
Command = new[]
{
"string",
},
Env = new[]
{
new AzureNative.App.Inputs.EnvironmentVarArgs
{
Name = "string",
SecretRef = "string",
Value = "string",
},
},
Image = "string",
Name = "string",
Resources = new AzureNative.App.Inputs.SessionContainerResourcesArgs
{
Cpu = 0,
Memory = "string",
},
},
},
Ingress = new AzureNative.App.Inputs.SessionIngressArgs
{
TargetPort = 0,
},
RegistryCredentials = new AzureNative.App.Inputs.SessionRegistryCredentialsArgs
{
PasswordSecretRef = "string",
RegistryServer = "string",
Username = "string",
},
},
DynamicPoolConfiguration = new AzureNative.App.Inputs.DynamicPoolConfigurationArgs
{
CooldownPeriodInSeconds = 0,
ExecutionType = "string",
},
EnvironmentId = "string",
Location = "string",
PoolManagementType = "string",
ScaleConfiguration = new AzureNative.App.Inputs.ScaleConfigurationArgs
{
MaxConcurrentSessions = 0,
ReadySessionInstances = 0,
},
Secrets = new[]
{
new AzureNative.App.Inputs.SessionPoolSecretArgs
{
Name = "string",
Value = "string",
},
},
SessionNetworkConfiguration = new AzureNative.App.Inputs.SessionNetworkConfigurationArgs
{
Status = "string",
},
SessionPoolName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := app.NewContainerAppsSessionPool(ctx, "containerAppsSessionPoolResource", &app.ContainerAppsSessionPoolArgs{
ResourceGroupName: pulumi.String("string"),
ContainerType: pulumi.String("string"),
CustomContainerTemplate: &app.CustomContainerTemplateArgs{
Containers: app.SessionContainerArray{
&app.SessionContainerArgs{
Args: pulumi.StringArray{
pulumi.String("string"),
},
Command: pulumi.StringArray{
pulumi.String("string"),
},
Env: app.EnvironmentVarArray{
&app.EnvironmentVarArgs{
Name: pulumi.String("string"),
SecretRef: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
Image: pulumi.String("string"),
Name: pulumi.String("string"),
Resources: &app.SessionContainerResourcesArgs{
Cpu: pulumi.Float64(0),
Memory: pulumi.String("string"),
},
},
},
Ingress: &app.SessionIngressArgs{
TargetPort: pulumi.Int(0),
},
RegistryCredentials: &app.SessionRegistryCredentialsArgs{
PasswordSecretRef: pulumi.String("string"),
RegistryServer: pulumi.String("string"),
Username: pulumi.String("string"),
},
},
DynamicPoolConfiguration: &app.DynamicPoolConfigurationArgs{
CooldownPeriodInSeconds: pulumi.Int(0),
ExecutionType: pulumi.String("string"),
},
EnvironmentId: pulumi.String("string"),
Location: pulumi.String("string"),
PoolManagementType: pulumi.String("string"),
ScaleConfiguration: &app.ScaleConfigurationArgs{
MaxConcurrentSessions: pulumi.Int(0),
ReadySessionInstances: pulumi.Int(0),
},
Secrets: app.SessionPoolSecretArray{
&app.SessionPoolSecretArgs{
Name: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
SessionNetworkConfiguration: &app.SessionNetworkConfigurationArgs{
Status: pulumi.String("string"),
},
SessionPoolName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var containerAppsSessionPoolResource = new ContainerAppsSessionPool("containerAppsSessionPoolResource", ContainerAppsSessionPoolArgs.builder()
.resourceGroupName("string")
.containerType("string")
.customContainerTemplate(CustomContainerTemplateArgs.builder()
.containers(SessionContainerArgs.builder()
.args("string")
.command("string")
.env(EnvironmentVarArgs.builder()
.name("string")
.secretRef("string")
.value("string")
.build())
.image("string")
.name("string")
.resources(SessionContainerResourcesArgs.builder()
.cpu(0)
.memory("string")
.build())
.build())
.ingress(SessionIngressArgs.builder()
.targetPort(0)
.build())
.registryCredentials(SessionRegistryCredentialsArgs.builder()
.passwordSecretRef("string")
.registryServer("string")
.username("string")
.build())
.build())
.dynamicPoolConfiguration(DynamicPoolConfigurationArgs.builder()
.cooldownPeriodInSeconds(0)
.executionType("string")
.build())
.environmentId("string")
.location("string")
.poolManagementType("string")
.scaleConfiguration(ScaleConfigurationArgs.builder()
.maxConcurrentSessions(0)
.readySessionInstances(0)
.build())
.secrets(SessionPoolSecretArgs.builder()
.name("string")
.value("string")
.build())
.sessionNetworkConfiguration(SessionNetworkConfigurationArgs.builder()
.status("string")
.build())
.sessionPoolName("string")
.tags(Map.of("string", "string"))
.build());
container_apps_session_pool_resource = azure_native.app.ContainerAppsSessionPool("containerAppsSessionPoolResource",
resource_group_name="string",
container_type="string",
custom_container_template={
"containers": [{
"args": ["string"],
"command": ["string"],
"env": [{
"name": "string",
"secretRef": "string",
"value": "string",
}],
"image": "string",
"name": "string",
"resources": {
"cpu": 0,
"memory": "string",
},
}],
"ingress": {
"targetPort": 0,
},
"registryCredentials": {
"passwordSecretRef": "string",
"registryServer": "string",
"username": "string",
},
},
dynamic_pool_configuration={
"cooldownPeriodInSeconds": 0,
"executionType": "string",
},
environment_id="string",
location="string",
pool_management_type="string",
scale_configuration={
"maxConcurrentSessions": 0,
"readySessionInstances": 0,
},
secrets=[{
"name": "string",
"value": "string",
}],
session_network_configuration={
"status": "string",
},
session_pool_name="string",
tags={
"string": "string",
})
const containerAppsSessionPoolResource = new azure_native.app.ContainerAppsSessionPool("containerAppsSessionPoolResource", {
resourceGroupName: "string",
containerType: "string",
customContainerTemplate: {
containers: [{
args: ["string"],
command: ["string"],
env: [{
name: "string",
secretRef: "string",
value: "string",
}],
image: "string",
name: "string",
resources: {
cpu: 0,
memory: "string",
},
}],
ingress: {
targetPort: 0,
},
registryCredentials: {
passwordSecretRef: "string",
registryServer: "string",
username: "string",
},
},
dynamicPoolConfiguration: {
cooldownPeriodInSeconds: 0,
executionType: "string",
},
environmentId: "string",
location: "string",
poolManagementType: "string",
scaleConfiguration: {
maxConcurrentSessions: 0,
readySessionInstances: 0,
},
secrets: [{
name: "string",
value: "string",
}],
sessionNetworkConfiguration: {
status: "string",
},
sessionPoolName: "string",
tags: {
string: "string",
},
});
type: azure-native:app:ContainerAppsSessionPool
properties:
containerType: string
customContainerTemplate:
containers:
- args:
- string
command:
- string
env:
- name: string
secretRef: string
value: string
image: string
name: string
resources:
cpu: 0
memory: string
ingress:
targetPort: 0
registryCredentials:
passwordSecretRef: string
registryServer: string
username: string
dynamicPoolConfiguration:
cooldownPeriodInSeconds: 0
executionType: string
environmentId: string
location: string
poolManagementType: string
resourceGroupName: string
scaleConfiguration:
maxConcurrentSessions: 0
readySessionInstances: 0
secrets:
- name: string
value: string
sessionNetworkConfiguration:
status: string
sessionPoolName: string
tags:
string: string
ContainerAppsSessionPool Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ContainerAppsSessionPool resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Container
Type string | Pulumi.Azure Native. App. Container Type - The container type of the sessions.
- Custom
Container Pulumi.Template Azure Native. App. Inputs. Custom Container Template - The custom container configuration if the containerType is CustomContainer.
- Dynamic
Pool Pulumi.Configuration Azure Native. App. Inputs. Dynamic Pool Configuration - The pool configuration if the poolManagementType is dynamic.
- Environment
Id string - Resource ID of the session pool's environment.
- Location string
- The geo-location where the resource lives
- Pool
Management string | Pulumi.Type Azure Native. App. Pool Management Type - The pool management type of the session pool.
- Scale
Configuration Pulumi.Azure Native. App. Inputs. Scale Configuration - The scale configuration of the session pool.
- Secrets
List<Pulumi.
Azure Native. App. Inputs. Session Pool Secret> - The secrets of the session pool.
- Session
Network Pulumi.Configuration Azure Native. App. Inputs. Session Network Configuration - The network configuration of the sessions in the session pool.
- Session
Pool stringName - Name of the session pool.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Container
Type string | ContainerType - The container type of the sessions.
- Custom
Container CustomTemplate Container Template Args - The custom container configuration if the containerType is CustomContainer.
- Dynamic
Pool DynamicConfiguration Pool Configuration Args - The pool configuration if the poolManagementType is dynamic.
- Environment
Id string - Resource ID of the session pool's environment.
- Location string
- The geo-location where the resource lives
- Pool
Management string | PoolType Management Type - The pool management type of the session pool.
- Scale
Configuration ScaleConfiguration Args - The scale configuration of the session pool.
- Secrets
[]Session
Pool Secret Args - The secrets of the session pool.
- Session
Network SessionConfiguration Network Configuration Args - The network configuration of the sessions in the session pool.
- Session
Pool stringName - Name of the session pool.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- container
Type String | ContainerType - The container type of the sessions.
- custom
Container CustomTemplate Container Template - The custom container configuration if the containerType is CustomContainer.
- dynamic
Pool DynamicConfiguration Pool Configuration - The pool configuration if the poolManagementType is dynamic.
- environment
Id String - Resource ID of the session pool's environment.
- location String
- The geo-location where the resource lives
- pool
Management String | PoolType Management Type - The pool management type of the session pool.
- scale
Configuration ScaleConfiguration - The scale configuration of the session pool.
- secrets
List<Session
Pool Secret> - The secrets of the session pool.
- session
Network SessionConfiguration Network Configuration - The network configuration of the sessions in the session pool.
- session
Pool StringName - Name of the session pool.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- container
Type string | ContainerType - The container type of the sessions.
- custom
Container CustomTemplate Container Template - The custom container configuration if the containerType is CustomContainer.
- dynamic
Pool DynamicConfiguration Pool Configuration - The pool configuration if the poolManagementType is dynamic.
- environment
Id string - Resource ID of the session pool's environment.
- location string
- The geo-location where the resource lives
- pool
Management string | PoolType Management Type - The pool management type of the session pool.
- scale
Configuration ScaleConfiguration - The scale configuration of the session pool.
- secrets
Session
Pool Secret[] - The secrets of the session pool.
- session
Network SessionConfiguration Network Configuration - The network configuration of the sessions in the session pool.
- session
Pool stringName - Name of the session pool.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- container_
type str | ContainerType - The container type of the sessions.
- custom_
container_ Customtemplate Container Template Args - The custom container configuration if the containerType is CustomContainer.
- dynamic_
pool_ Dynamicconfiguration Pool Configuration Args - The pool configuration if the poolManagementType is dynamic.
- environment_
id str - Resource ID of the session pool's environment.
- location str
- The geo-location where the resource lives
- pool_
management_ str | Pooltype Management Type - The pool management type of the session pool.
- scale_
configuration ScaleConfiguration Args - The scale configuration of the session pool.
- secrets
Sequence[Session
Pool Secret Args] - The secrets of the session pool.
- session_
network_ Sessionconfiguration Network Configuration Args - The network configuration of the sessions in the session pool.
- session_
pool_ strname - Name of the session pool.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- container
Type String | "CustomContainer" | "Python LTS" - The container type of the sessions.
- custom
Container Property MapTemplate - The custom container configuration if the containerType is CustomContainer.
- dynamic
Pool Property MapConfiguration - The pool configuration if the poolManagementType is dynamic.
- environment
Id String - Resource ID of the session pool's environment.
- location String
- The geo-location where the resource lives
- pool
Management String | "Manual" | "Dynamic"Type - The pool management type of the session pool.
- scale
Configuration Property Map - The scale configuration of the session pool.
- secrets List<Property Map>
- The secrets of the session pool.
- session
Network Property MapConfiguration - The network configuration of the sessions in the session pool.
- session
Pool StringName - Name of the session pool.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the ContainerAppsSessionPool resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Node
Count int - The number of nodes the session pool is using.
- Pool
Management stringEndpoint - The endpoint to manage the pool.
- Provisioning
State string - Provisioning state of the session pool.
- System
Data Pulumi.Azure Native. App. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- Node
Count int - The number of nodes the session pool is using.
- Pool
Management stringEndpoint - The endpoint to manage the pool.
- Provisioning
State string - Provisioning state of the session pool.
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- node
Count Integer - The number of nodes the session pool is using.
- pool
Management StringEndpoint - The endpoint to manage the pool.
- provisioning
State String - Provisioning state of the session pool.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- node
Count number - The number of nodes the session pool is using.
- pool
Management stringEndpoint - The endpoint to manage the pool.
- provisioning
State string - Provisioning state of the session pool.
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- node_
count int - The number of nodes the session pool is using.
- pool_
management_ strendpoint - The endpoint to manage the pool.
- provisioning_
state str - Provisioning state of the session pool.
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- node
Count Number - The number of nodes the session pool is using.
- pool
Management StringEndpoint - The endpoint to manage the pool.
- provisioning
State String - Provisioning state of the session pool.
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
ContainerType, ContainerTypeArgs
- Custom
Container - CustomContainer
- Python
LTS - PythonLTS
- Container
Type Custom Container - CustomContainer
- Container
Type Python LTS - PythonLTS
- Custom
Container - CustomContainer
- Python
LTS - PythonLTS
- Custom
Container - CustomContainer
- Python
LTS - PythonLTS
- CUSTOM_CONTAINER
- CustomContainer
- PYTHON_LTS
- PythonLTS
- "Custom
Container" - CustomContainer
- "Python
LTS" - PythonLTS
CustomContainerTemplate, CustomContainerTemplateArgs
- Containers
List<Pulumi.
Azure Native. App. Inputs. Session Container> - List of container definitions for the sessions of the session pool.
- Ingress
Pulumi.
Azure Native. App. Inputs. Session Ingress - Session pool ingress configuration.
- Registry
Credentials Pulumi.Azure Native. App. Inputs. Session Registry Credentials - Private container registry credentials for containers used by the sessions of the session pool.
- Containers
[]Session
Container - List of container definitions for the sessions of the session pool.
- Ingress
Session
Ingress - Session pool ingress configuration.
- Registry
Credentials SessionRegistry Credentials - Private container registry credentials for containers used by the sessions of the session pool.
- containers
List<Session
Container> - List of container definitions for the sessions of the session pool.
- ingress
Session
Ingress - Session pool ingress configuration.
- registry
Credentials SessionRegistry Credentials - Private container registry credentials for containers used by the sessions of the session pool.
- containers
Session
Container[] - List of container definitions for the sessions of the session pool.
- ingress
Session
Ingress - Session pool ingress configuration.
- registry
Credentials SessionRegistry Credentials - Private container registry credentials for containers used by the sessions of the session pool.
- containers
Sequence[Session
Container] - List of container definitions for the sessions of the session pool.
- ingress
Session
Ingress - Session pool ingress configuration.
- registry_
credentials SessionRegistry Credentials - Private container registry credentials for containers used by the sessions of the session pool.
- containers List<Property Map>
- List of container definitions for the sessions of the session pool.
- ingress Property Map
- Session pool ingress configuration.
- registry
Credentials Property Map - Private container registry credentials for containers used by the sessions of the session pool.
CustomContainerTemplateResponse, CustomContainerTemplateResponseArgs
- Containers
List<Pulumi.
Azure Native. App. Inputs. Session Container Response> - List of container definitions for the sessions of the session pool.
- Ingress
Pulumi.
Azure Native. App. Inputs. Session Ingress Response - Session pool ingress configuration.
- Registry
Credentials Pulumi.Azure Native. App. Inputs. Session Registry Credentials Response - Private container registry credentials for containers used by the sessions of the session pool.
- Containers
[]Session
Container Response - List of container definitions for the sessions of the session pool.
- Ingress
Session
Ingress Response - Session pool ingress configuration.
- Registry
Credentials SessionRegistry Credentials Response - Private container registry credentials for containers used by the sessions of the session pool.
- containers
List<Session
Container Response> - List of container definitions for the sessions of the session pool.
- ingress
Session
Ingress Response - Session pool ingress configuration.
- registry
Credentials SessionRegistry Credentials Response - Private container registry credentials for containers used by the sessions of the session pool.
- containers
Session
Container Response[] - List of container definitions for the sessions of the session pool.
- ingress
Session
Ingress Response - Session pool ingress configuration.
- registry
Credentials SessionRegistry Credentials Response - Private container registry credentials for containers used by the sessions of the session pool.
- containers
Sequence[Session
Container Response] - List of container definitions for the sessions of the session pool.
- ingress
Session
Ingress Response - Session pool ingress configuration.
- registry_
credentials SessionRegistry Credentials Response - Private container registry credentials for containers used by the sessions of the session pool.
- containers List<Property Map>
- List of container definitions for the sessions of the session pool.
- ingress Property Map
- Session pool ingress configuration.
- registry
Credentials Property Map - Private container registry credentials for containers used by the sessions of the session pool.
DynamicPoolConfiguration, DynamicPoolConfigurationArgs
- Cooldown
Period intIn Seconds - The cooldown period of a session in seconds.
- Execution
Type string | Pulumi.Azure Native. App. Execution Type - The execution type of the session pool.
- Cooldown
Period intIn Seconds - The cooldown period of a session in seconds.
- Execution
Type string | ExecutionType - The execution type of the session pool.
- cooldown
Period IntegerIn Seconds - The cooldown period of a session in seconds.
- execution
Type String | ExecutionType - The execution type of the session pool.
- cooldown
Period numberIn Seconds - The cooldown period of a session in seconds.
- execution
Type string | ExecutionType - The execution type of the session pool.
- cooldown_
period_ intin_ seconds - The cooldown period of a session in seconds.
- execution_
type str | ExecutionType - The execution type of the session pool.
- cooldown
Period NumberIn Seconds - The cooldown period of a session in seconds.
- execution
Type String | "Timed" - The execution type of the session pool.
DynamicPoolConfigurationResponse, DynamicPoolConfigurationResponseArgs
- Cooldown
Period intIn Seconds - The cooldown period of a session in seconds.
- Execution
Type string - The execution type of the session pool.
- Cooldown
Period intIn Seconds - The cooldown period of a session in seconds.
- Execution
Type string - The execution type of the session pool.
- cooldown
Period IntegerIn Seconds - The cooldown period of a session in seconds.
- execution
Type String - The execution type of the session pool.
- cooldown
Period numberIn Seconds - The cooldown period of a session in seconds.
- execution
Type string - The execution type of the session pool.
- cooldown_
period_ intin_ seconds - The cooldown period of a session in seconds.
- execution_
type str - The execution type of the session pool.
- cooldown
Period NumberIn Seconds - The cooldown period of a session in seconds.
- execution
Type String - The execution type of the session pool.
EnvironmentVar, EnvironmentVarArgs
- name str
- Environment variable name.
- secret_
ref str - Name of the Container App secret from which to pull the environment variable value.
- value str
- Non-secret environment variable value.
EnvironmentVarResponse, EnvironmentVarResponseArgs
- name str
- Environment variable name.
- secret_
ref str - Name of the Container App secret from which to pull the environment variable value.
- value str
- Non-secret environment variable value.
ExecutionType, ExecutionTypeArgs
- Timed
- Timed
- Execution
Type Timed - Timed
- Timed
- Timed
- Timed
- Timed
- TIMED
- Timed
- "Timed"
- Timed
PoolManagementType, PoolManagementTypeArgs
- Manual
- Manual
- Dynamic
- Dynamic
- Pool
Management Type Manual - Manual
- Pool
Management Type Dynamic - Dynamic
- Manual
- Manual
- Dynamic
- Dynamic
- Manual
- Manual
- Dynamic
- Dynamic
- MANUAL
- Manual
- DYNAMIC
- Dynamic
- "Manual"
- Manual
- "Dynamic"
- Dynamic
ScaleConfiguration, ScaleConfigurationArgs
- Max
Concurrent intSessions - The maximum count of sessions at the same time.
- Ready
Session intInstances - The minimum count of ready session instances.
- Max
Concurrent intSessions - The maximum count of sessions at the same time.
- Ready
Session intInstances - The minimum count of ready session instances.
- max
Concurrent IntegerSessions - The maximum count of sessions at the same time.
- ready
Session IntegerInstances - The minimum count of ready session instances.
- max
Concurrent numberSessions - The maximum count of sessions at the same time.
- ready
Session numberInstances - The minimum count of ready session instances.
- max_
concurrent_ intsessions - The maximum count of sessions at the same time.
- ready_
session_ intinstances - The minimum count of ready session instances.
- max
Concurrent NumberSessions - The maximum count of sessions at the same time.
- ready
Session NumberInstances - The minimum count of ready session instances.
ScaleConfigurationResponse, ScaleConfigurationResponseArgs
- Max
Concurrent intSessions - The maximum count of sessions at the same time.
- Ready
Session intInstances - The minimum count of ready session instances.
- Max
Concurrent intSessions - The maximum count of sessions at the same time.
- Ready
Session intInstances - The minimum count of ready session instances.
- max
Concurrent IntegerSessions - The maximum count of sessions at the same time.
- ready
Session IntegerInstances - The minimum count of ready session instances.
- max
Concurrent numberSessions - The maximum count of sessions at the same time.
- ready
Session numberInstances - The minimum count of ready session instances.
- max_
concurrent_ intsessions - The maximum count of sessions at the same time.
- ready_
session_ intinstances - The minimum count of ready session instances.
- max
Concurrent NumberSessions - The maximum count of sessions at the same time.
- ready
Session NumberInstances - The minimum count of ready session instances.
SessionContainer, SessionContainerArgs
- Args List<string>
- Container start command arguments.
- Command List<string>
- Container start command.
- Env
List<Pulumi.
Azure Native. App. Inputs. Environment Var> - Container environment variables.
- Image string
- Container image tag.
- Name string
- Custom container name.
- Resources
Pulumi.
Azure Native. App. Inputs. Session Container Resources - Container resource requirements.
- Args []string
- Container start command arguments.
- Command []string
- Container start command.
- Env
[]Environment
Var - Container environment variables.
- Image string
- Container image tag.
- Name string
- Custom container name.
- Resources
Session
Container Resources - Container resource requirements.
- args List<String>
- Container start command arguments.
- command List<String>
- Container start command.
- env
List<Environment
Var> - Container environment variables.
- image String
- Container image tag.
- name String
- Custom container name.
- resources
Session
Container Resources - Container resource requirements.
- args string[]
- Container start command arguments.
- command string[]
- Container start command.
- env
Environment
Var[] - Container environment variables.
- image string
- Container image tag.
- name string
- Custom container name.
- resources
Session
Container Resources - Container resource requirements.
- args Sequence[str]
- Container start command arguments.
- command Sequence[str]
- Container start command.
- env
Sequence[Environment
Var] - Container environment variables.
- image str
- Container image tag.
- name str
- Custom container name.
- resources
Session
Container Resources - Container resource requirements.
- args List<String>
- Container start command arguments.
- command List<String>
- Container start command.
- env List<Property Map>
- Container environment variables.
- image String
- Container image tag.
- name String
- Custom container name.
- resources Property Map
- Container resource requirements.
SessionContainerResources, SessionContainerResourcesArgs
SessionContainerResourcesResponse, SessionContainerResourcesResponseArgs
SessionContainerResponse, SessionContainerResponseArgs
- Args List<string>
- Container start command arguments.
- Command List<string>
- Container start command.
- Env
List<Pulumi.
Azure Native. App. Inputs. Environment Var Response> - Container environment variables.
- Image string
- Container image tag.
- Name string
- Custom container name.
- Resources
Pulumi.
Azure Native. App. Inputs. Session Container Resources Response - Container resource requirements.
- Args []string
- Container start command arguments.
- Command []string
- Container start command.
- Env
[]Environment
Var Response - Container environment variables.
- Image string
- Container image tag.
- Name string
- Custom container name.
- Resources
Session
Container Resources Response - Container resource requirements.
- args List<String>
- Container start command arguments.
- command List<String>
- Container start command.
- env
List<Environment
Var Response> - Container environment variables.
- image String
- Container image tag.
- name String
- Custom container name.
- resources
Session
Container Resources Response - Container resource requirements.
- args string[]
- Container start command arguments.
- command string[]
- Container start command.
- env
Environment
Var Response[] - Container environment variables.
- image string
- Container image tag.
- name string
- Custom container name.
- resources
Session
Container Resources Response - Container resource requirements.
- args Sequence[str]
- Container start command arguments.
- command Sequence[str]
- Container start command.
- env
Sequence[Environment
Var Response] - Container environment variables.
- image str
- Container image tag.
- name str
- Custom container name.
- resources
Session
Container Resources Response - Container resource requirements.
- args List<String>
- Container start command arguments.
- command List<String>
- Container start command.
- env List<Property Map>
- Container environment variables.
- image String
- Container image tag.
- name String
- Custom container name.
- resources Property Map
- Container resource requirements.
SessionIngress, SessionIngressArgs
- Target
Port int - Target port in containers for traffic from ingress
- Target
Port int - Target port in containers for traffic from ingress
- target
Port Integer - Target port in containers for traffic from ingress
- target
Port number - Target port in containers for traffic from ingress
- target_
port int - Target port in containers for traffic from ingress
- target
Port Number - Target port in containers for traffic from ingress
SessionIngressResponse, SessionIngressResponseArgs
- Target
Port int - Target port in containers for traffic from ingress
- Target
Port int - Target port in containers for traffic from ingress
- target
Port Integer - Target port in containers for traffic from ingress
- target
Port number - Target port in containers for traffic from ingress
- target_
port int - Target port in containers for traffic from ingress
- target
Port Number - Target port in containers for traffic from ingress
SessionNetworkConfiguration, SessionNetworkConfigurationArgs
- Status
string | Pulumi.
Azure Native. App. Session Network Status - Network status for the sessions.
- Status
string | Session
Network Status - Network status for the sessions.
- status
String | Session
Network Status - Network status for the sessions.
- status
string | Session
Network Status - Network status for the sessions.
- status
str | Session
Network Status - Network status for the sessions.
- status
String | "Egress
Enabled" | "Egress Disabled" - Network status for the sessions.
SessionNetworkConfigurationResponse, SessionNetworkConfigurationResponseArgs
- Status string
- Network status for the sessions.
- Status string
- Network status for the sessions.
- status String
- Network status for the sessions.
- status string
- Network status for the sessions.
- status str
- Network status for the sessions.
- status String
- Network status for the sessions.
SessionNetworkStatus, SessionNetworkStatusArgs
- Egress
Enabled - EgressEnabled
- Egress
Disabled - EgressDisabled
- Session
Network Status Egress Enabled - EgressEnabled
- Session
Network Status Egress Disabled - EgressDisabled
- Egress
Enabled - EgressEnabled
- Egress
Disabled - EgressDisabled
- Egress
Enabled - EgressEnabled
- Egress
Disabled - EgressDisabled
- EGRESS_ENABLED
- EgressEnabled
- EGRESS_DISABLED
- EgressDisabled
- "Egress
Enabled" - EgressEnabled
- "Egress
Disabled" - EgressDisabled
SessionPoolSecret, SessionPoolSecretArgs
SessionPoolSecretResponse, SessionPoolSecretResponseArgs
- Name string
- Secret Name.
- Name string
- Secret Name.
- name String
- Secret Name.
- name string
- Secret Name.
- name str
- Secret Name.
- name String
- Secret Name.
SessionRegistryCredentials, SessionRegistryCredentialsArgs
- Password
Secret stringRef - The name of the secret that contains the registry login password
- Registry
Server string - Container registry server.
- Username string
- Container registry username.
- Password
Secret stringRef - The name of the secret that contains the registry login password
- Registry
Server string - Container registry server.
- Username string
- Container registry username.
- password
Secret StringRef - The name of the secret that contains the registry login password
- registry
Server String - Container registry server.
- username String
- Container registry username.
- password
Secret stringRef - The name of the secret that contains the registry login password
- registry
Server string - Container registry server.
- username string
- Container registry username.
- password_
secret_ strref - The name of the secret that contains the registry login password
- registry_
server str - Container registry server.
- username str
- Container registry username.
- password
Secret StringRef - The name of the secret that contains the registry login password
- registry
Server String - Container registry server.
- username String
- Container registry username.
SessionRegistryCredentialsResponse, SessionRegistryCredentialsResponseArgs
- Password
Secret stringRef - The name of the secret that contains the registry login password
- Registry
Server string - Container registry server.
- Username string
- Container registry username.
- Password
Secret stringRef - The name of the secret that contains the registry login password
- Registry
Server string - Container registry server.
- Username string
- Container registry username.
- password
Secret StringRef - The name of the secret that contains the registry login password
- registry
Server String - Container registry server.
- username String
- Container registry username.
- password
Secret stringRef - The name of the secret that contains the registry login password
- registry
Server string - Container registry server.
- username string
- Container registry username.
- password_
secret_ strref - The name of the secret that contains the registry login password
- registry_
server str - Container registry server.
- username str
- Container registry username.
- password
Secret StringRef - The name of the secret that contains the registry login password
- registry
Server String - Container registry server.
- username String
- Container registry username.
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:app:ContainerAppsSessionPool testsessionpool /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/sessionPools/{sessionPoolName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0