다음을 통해 공유


Microsoft.App sessionPools

Bicep 리소스 정의

sessionPools 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

각 API 버전에서 변경된 속성 목록은 변경 로그참조하세요.

리소스 형식

Microsoft.App/sessionPools 리소스를 만들려면 템플릿에 다음 Bicep을 추가합니다.

resource symbolicname 'Microsoft.App/sessionPools@2024-10-02-preview' = {
  identity: {
    type: 'string'
    userAssignedIdentities: {
      {customized property}: {}
    }
  }
  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: {
        identity: 'string'
        passwordSecretRef: 'string'
        server: 'string'
        username: 'string'
      }
    }
    dynamicPoolConfiguration: {
      cooldownPeriodInSeconds: int
      executionType: 'string'
    }
    environmentId: 'string'
    managedIdentitySettings: [
      {
        identity: 'string'
        lifecycle: 'string'
      }
    ]
    poolManagementType: 'string'
    scaleConfiguration: {
      maxConcurrentSessions: int
      readySessionInstances: int
    }
    secrets: [
      {
        name: 'string'
        value: 'string'
      }
    ]
    sessionNetworkConfiguration: {
      status: 'string'
    }
  }
  tags: {
    {customized property}: 'string'
  }
}

속성 값

CustomContainerTemplate

이름 묘사
컨테이너 세션 풀의 세션에 대한 컨테이너 정의 목록입니다. SessionContainer[]
진입 세션 풀 수신 구성입니다. SessionIngress
registryCredentials 세션 풀의 세션에서 사용하는 컨테이너에 대한 프라이빗 컨테이너 레지스트리 자격 증명입니다. SessionRegistryCredentials

DynamicPoolConfiguration

이름 묘사
cooldownPeriodInSeconds 세션의 쿨다운 기간(초)입니다. int
executionType 세션 풀의 실행 유형입니다. 'Timed'

EnvironmentVar

이름 묘사
이름 환경 변수 이름입니다. 문자열
secretRef 환경 변수 값을 끌어올 컨테이너 앱 비밀의 이름입니다. 문자열
비밀이 아닌 환경 변수 값입니다. 문자열

ManagedIdentitySetting

이름 묘사
신원 세션 풀에 할당된 사용자 할당 관리 ID의 리소스 ID이거나 시스템 할당 ID에 대한 '시스템'입니다. string(필수)
수명 주기 관리 ID를 사용할 수 있어야 하는 세션 풀의 수명 주기 단계를 선택하는 데 사용합니다. 'All'
'Init'
'Main'
'None'

ManagedServiceIdentity

이름 묘사
관리 서비스 ID의 유형입니다(SystemAssigned 및 UserAssigned 형식이 모두 허용되는 경우). 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'(필수)
userAssignedIdentities 리소스와 연결된 사용자 할당 ID 집합입니다. userAssignedIdentities 사전 키는 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} 형식의 ARM 리소스 ID입니다. 사전 값은 요청에서 빈 개체({})일 수 있습니다. UserAssignedIdentities

Microsoft.App/sessionPools

이름 묘사
신원 코드에서 비밀 또는 자격 증명을 유지 관리하지 않기 위해 세션 풀이 다른 Azure 서비스와 상호 작용하는 데 필요한 관리 ID입니다. ManagedServiceIdentity
위치 리소스가 있는 지리적 위치 string(필수)
이름 리소스 이름 문자열

제약 조건:
최소 길이 = 3
최대 길이 = 63
패턴 = ^[a-z][a-z0-9]*$(필수)
속성 컨테이너 앱 세션 풀 리소스 관련 속성 SessionPoolProperties
태그 리소스 태그 태그 이름 및 값의 사전입니다. 템플릿 태그를 참조하세요.

ScaleConfiguration

이름 묘사
maxConcurrentSessions 동시에 최대 세션 수입니다. int
readySessionInstances 준비된 세션 인스턴스의 최소 수입니다. int

SessionContainer

이름 묘사
인수(args) 컨테이너 시작 명령 인수입니다. string[]
명령 컨테이너 시작 명령입니다. string[]
환경을 컨테이너 환경 변수입니다. EnvironmentVar[]
이미지 컨테이너 이미지 태그입니다. 문자열
이름 사용자 지정 컨테이너 이름입니다. 문자열
리소스 컨테이너 리소스 요구 사항. sessionContainerResources

SessionContainerResources

이름 묘사
cpu(cpu) 코어의 필수 CPU(예: 0.5) int
기억 필요한 메모리(예: "250Mb") 문자열

SessionIngress

이름 묘사
targetPort 수신 트래픽에 대한 컨테이너의 대상 포트 int

SessionNetworkConfiguration

이름 묘사
상태 세션의 네트워크 상태입니다. 'EgressDisabled'
'EgressEnabled'

SessionPoolProperties

이름 묘사
containerType 세션의 컨테이너 형식입니다. 'CustomContainer'
'PythonLTS'
customContainerTemplate containerType이 CustomContainer인 경우 사용자 지정 컨테이너 구성입니다. CustomContainerTemplate
dynamicPoolConfiguration poolManagementType이 동적인 경우 풀 구성입니다. DynamicPoolConfiguration
environmentId 세션 풀 환경의 리소스 ID입니다. 문자열
managedIdentitySettings 세션 풀에 할당된 관리 ID에 대한 선택적 설정입니다. ManagedIdentitySetting[]
poolManagementType 세션 풀의 풀 관리 유형입니다. '동적'
'수동'
scaleConfiguration 세션 풀의 크기 조정 구성입니다. ScaleConfiguration
비밀 세션 풀의 비밀입니다. SessionPoolSecret[]
sessionNetworkConfiguration 세션 풀에 있는 세션의 네트워크 구성입니다. sessionNetworkConfiguration

SessionPoolSecret

이름 묘사
이름 비밀 이름입니다. 문자열
비밀 값입니다. 문자열

제약 조건:
중요한 값입니다. 보안 매개 변수로 전달합니다.

SessionRegistryCredentials

이름 묘사
신원 Azure Container Registry로 인증하는 데 사용할 관리 ID입니다. 사용자 할당 ID의 경우 전체 사용자 할당 ID 리소스 ID를 사용합니다. 시스템 할당 ID의 경우 'system'을 사용합니다. 문자열
passwordSecretRef 레지스트리 로그인 암호를 포함하는 비밀의 이름입니다. 문자열
서버 컨테이너 레지스트리 서버. 문자열
사용자 이름 컨테이너 레지스트리 사용자 이름입니다. 문자열

TrackedResourceTags

이름 묘사

UserAssignedIdentities

이름 묘사

UserAssignedIdentity

이름 묘사

ARM 템플릿 리소스 정의

sessionPools 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

각 API 버전에서 변경된 속성 목록은 변경 로그참조하세요.

리소스 형식

Microsoft.App/sessionPools 리소스를 만들려면 템플릿에 다음 JSON을 추가합니다.

{
  "type": "Microsoft.App/sessionPools",
  "apiVersion": "2024-10-02-preview",
  "name": "string",
  "identity": {
    "type": "string",
    "userAssignedIdentities": {
      "{customized property}": {
      }
    }
  },
  "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": {
        "identity": "string",
        "passwordSecretRef": "string",
        "server": "string",
        "username": "string"
      }
    },
    "dynamicPoolConfiguration": {
      "cooldownPeriodInSeconds": "int",
      "executionType": "string"
    },
    "environmentId": "string",
    "managedIdentitySettings": [
      {
        "identity": "string",
        "lifecycle": "string"
      }
    ],
    "poolManagementType": "string",
    "scaleConfiguration": {
      "maxConcurrentSessions": "int",
      "readySessionInstances": "int"
    },
    "secrets": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "sessionNetworkConfiguration": {
      "status": "string"
    }
  },
  "tags": {
    "{customized property}": "string"
  }
}

속성 값

CustomContainerTemplate

이름 묘사
컨테이너 세션 풀의 세션에 대한 컨테이너 정의 목록입니다. SessionContainer[]
진입 세션 풀 수신 구성입니다. SessionIngress
registryCredentials 세션 풀의 세션에서 사용하는 컨테이너에 대한 프라이빗 컨테이너 레지스트리 자격 증명입니다. SessionRegistryCredentials

DynamicPoolConfiguration

이름 묘사
cooldownPeriodInSeconds 세션의 쿨다운 기간(초)입니다. int
executionType 세션 풀의 실행 유형입니다. 'Timed'

EnvironmentVar

이름 묘사
이름 환경 변수 이름입니다. 문자열
secretRef 환경 변수 값을 끌어올 컨테이너 앱 비밀의 이름입니다. 문자열
비밀이 아닌 환경 변수 값입니다. 문자열

ManagedIdentitySetting

이름 묘사
신원 세션 풀에 할당된 사용자 할당 관리 ID의 리소스 ID이거나 시스템 할당 ID에 대한 '시스템'입니다. string(필수)
수명 주기 관리 ID를 사용할 수 있어야 하는 세션 풀의 수명 주기 단계를 선택하는 데 사용합니다. 'All'
'Init'
'Main'
'None'

ManagedServiceIdentity

이름 묘사
관리 서비스 ID의 유형입니다(SystemAssigned 및 UserAssigned 형식이 모두 허용되는 경우). 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'(필수)
userAssignedIdentities 리소스와 연결된 사용자 할당 ID 집합입니다. userAssignedIdentities 사전 키는 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} 형식의 ARM 리소스 ID입니다. 사전 값은 요청에서 빈 개체({})일 수 있습니다. UserAssignedIdentities

Microsoft.App/sessionPools

이름 묘사
apiVersion api 버전 '2024-10-02-preview'
신원 코드에서 비밀 또는 자격 증명을 유지 관리하지 않기 위해 세션 풀이 다른 Azure 서비스와 상호 작용하는 데 필요한 관리 ID입니다. ManagedServiceIdentity
위치 리소스가 있는 지리적 위치 string(필수)
이름 리소스 이름 문자열

제약 조건:
최소 길이 = 3
최대 길이 = 63
패턴 = ^[a-z][a-z0-9]*$(필수)
속성 컨테이너 앱 세션 풀 리소스 관련 속성 SessionPoolProperties
태그 리소스 태그 태그 이름 및 값의 사전입니다. 템플릿 태그를 참조하세요.
리소스 종류 'Microsoft.App/sessionPools'

ScaleConfiguration

이름 묘사
maxConcurrentSessions 동시에 최대 세션 수입니다. int
readySessionInstances 준비된 세션 인스턴스의 최소 수입니다. int

SessionContainer

이름 묘사
인수(args) 컨테이너 시작 명령 인수입니다. string[]
명령 컨테이너 시작 명령입니다. string[]
환경을 컨테이너 환경 변수입니다. EnvironmentVar[]
이미지 컨테이너 이미지 태그입니다. 문자열
이름 사용자 지정 컨테이너 이름입니다. 문자열
리소스 컨테이너 리소스 요구 사항. sessionContainerResources

SessionContainerResources

이름 묘사
cpu(cpu) 코어의 필수 CPU(예: 0.5) int
기억 필요한 메모리(예: "250Mb") 문자열

SessionIngress

이름 묘사
targetPort 수신 트래픽에 대한 컨테이너의 대상 포트 int

SessionNetworkConfiguration

이름 묘사
상태 세션의 네트워크 상태입니다. 'EgressDisabled'
'EgressEnabled'

SessionPoolProperties

이름 묘사
containerType 세션의 컨테이너 형식입니다. 'CustomContainer'
'PythonLTS'
customContainerTemplate containerType이 CustomContainer인 경우 사용자 지정 컨테이너 구성입니다. CustomContainerTemplate
dynamicPoolConfiguration poolManagementType이 동적인 경우 풀 구성입니다. DynamicPoolConfiguration
environmentId 세션 풀 환경의 리소스 ID입니다. 문자열
managedIdentitySettings 세션 풀에 할당된 관리 ID에 대한 선택적 설정입니다. ManagedIdentitySetting[]
poolManagementType 세션 풀의 풀 관리 유형입니다. '동적'
'수동'
scaleConfiguration 세션 풀의 크기 조정 구성입니다. ScaleConfiguration
비밀 세션 풀의 비밀입니다. SessionPoolSecret[]
sessionNetworkConfiguration 세션 풀에 있는 세션의 네트워크 구성입니다. sessionNetworkConfiguration

SessionPoolSecret

이름 묘사
이름 비밀 이름입니다. 문자열
비밀 값입니다. 문자열

제약 조건:
중요한 값입니다. 보안 매개 변수로 전달합니다.

SessionRegistryCredentials

이름 묘사
신원 Azure Container Registry로 인증하는 데 사용할 관리 ID입니다. 사용자 할당 ID의 경우 전체 사용자 할당 ID 리소스 ID를 사용합니다. 시스템 할당 ID의 경우 'system'을 사용합니다. 문자열
passwordSecretRef 레지스트리 로그인 암호를 포함하는 비밀의 이름입니다. 문자열
서버 컨테이너 레지스트리 서버. 문자열
사용자 이름 컨테이너 레지스트리 사용자 이름입니다. 문자열

TrackedResourceTags

이름 묘사

UserAssignedIdentities

이름 묘사

UserAssignedIdentity

이름 묘사

Terraform(AzAPI 공급자) 리소스 정의

sessionPools 리소스 종류는 다음을 대상으로 하는 작업으로 배포할 수 있습니다.

  • 리소스 그룹

각 API 버전에서 변경된 속성 목록은 변경 로그참조하세요.

리소스 형식

Microsoft.App/sessionPools 리소스를 만들려면 템플릿에 다음 Terraform을 추가합니다.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.App/sessionPools@2024-10-02-preview"
  name = "string"
  identity = {
    type = "string"
    userAssignedIdentities = {
      {customized property} = {
      }
    }
  }
  location = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    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 = {
          identity = "string"
          passwordSecretRef = "string"
          server = "string"
          username = "string"
        }
      }
      dynamicPoolConfiguration = {
        cooldownPeriodInSeconds = int
        executionType = "string"
      }
      environmentId = "string"
      managedIdentitySettings = [
        {
          identity = "string"
          lifecycle = "string"
        }
      ]
      poolManagementType = "string"
      scaleConfiguration = {
        maxConcurrentSessions = int
        readySessionInstances = int
      }
      secrets = [
        {
          name = "string"
          value = "string"
        }
      ]
      sessionNetworkConfiguration = {
        status = "string"
      }
    }
  })
}

속성 값

CustomContainerTemplate

이름 묘사
컨테이너 세션 풀의 세션에 대한 컨테이너 정의 목록입니다. SessionContainer[]
진입 세션 풀 수신 구성입니다. SessionIngress
registryCredentials 세션 풀의 세션에서 사용하는 컨테이너에 대한 프라이빗 컨테이너 레지스트리 자격 증명입니다. SessionRegistryCredentials

DynamicPoolConfiguration

이름 묘사
cooldownPeriodInSeconds 세션의 쿨다운 기간(초)입니다. int
executionType 세션 풀의 실행 유형입니다. 'Timed'

EnvironmentVar

이름 묘사
이름 환경 변수 이름입니다. 문자열
secretRef 환경 변수 값을 끌어올 컨테이너 앱 비밀의 이름입니다. 문자열
비밀이 아닌 환경 변수 값입니다. 문자열

ManagedIdentitySetting

이름 묘사
신원 세션 풀에 할당된 사용자 할당 관리 ID의 리소스 ID이거나 시스템 할당 ID에 대한 '시스템'입니다. string(필수)
수명 주기 관리 ID를 사용할 수 있어야 하는 세션 풀의 수명 주기 단계를 선택하는 데 사용합니다. 'All'
'Init'
'Main'
'None'

ManagedServiceIdentity

이름 묘사
관리 서비스 ID의 유형입니다(SystemAssigned 및 UserAssigned 형식이 모두 허용되는 경우). 'None'
'SystemAssigned'
'SystemAssigned,UserAssigned'
'UserAssigned'(필수)
userAssignedIdentities 리소스와 연결된 사용자 할당 ID 집합입니다. userAssignedIdentities 사전 키는 '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName} 형식의 ARM 리소스 ID입니다. 사전 값은 요청에서 빈 개체({})일 수 있습니다. UserAssignedIdentities

Microsoft.App/sessionPools

이름 묘사
신원 코드에서 비밀 또는 자격 증명을 유지 관리하지 않기 위해 세션 풀이 다른 Azure 서비스와 상호 작용하는 데 필요한 관리 ID입니다. ManagedServiceIdentity
위치 리소스가 있는 지리적 위치 string(필수)
이름 리소스 이름 문자열

제약 조건:
최소 길이 = 3
최대 길이 = 63
패턴 = ^[a-z][a-z0-9]*$(필수)
속성 컨테이너 앱 세션 풀 리소스 관련 속성 SessionPoolProperties
태그 리소스 태그 태그 이름 및 값의 사전입니다.
리소스 종류 "Microsoft.App/sessionPools@2024-10-02-preview"

ScaleConfiguration

이름 묘사
maxConcurrentSessions 동시에 최대 세션 수입니다. int
readySessionInstances 준비된 세션 인스턴스의 최소 수입니다. int

SessionContainer

이름 묘사
인수(args) 컨테이너 시작 명령 인수입니다. string[]
명령 컨테이너 시작 명령입니다. string[]
환경을 컨테이너 환경 변수입니다. EnvironmentVar[]
이미지 컨테이너 이미지 태그입니다. 문자열
이름 사용자 지정 컨테이너 이름입니다. 문자열
리소스 컨테이너 리소스 요구 사항. sessionContainerResources

SessionContainerResources

이름 묘사
cpu(cpu) 코어의 필수 CPU(예: 0.5) int
기억 필요한 메모리(예: "250Mb") 문자열

SessionIngress

이름 묘사
targetPort 수신 트래픽에 대한 컨테이너의 대상 포트 int

SessionNetworkConfiguration

이름 묘사
상태 세션의 네트워크 상태입니다. 'EgressDisabled'
'EgressEnabled'

SessionPoolProperties

이름 묘사
containerType 세션의 컨테이너 형식입니다. 'CustomContainer'
'PythonLTS'
customContainerTemplate containerType이 CustomContainer인 경우 사용자 지정 컨테이너 구성입니다. CustomContainerTemplate
dynamicPoolConfiguration poolManagementType이 동적인 경우 풀 구성입니다. DynamicPoolConfiguration
environmentId 세션 풀 환경의 리소스 ID입니다. 문자열
managedIdentitySettings 세션 풀에 할당된 관리 ID에 대한 선택적 설정입니다. ManagedIdentitySetting[]
poolManagementType 세션 풀의 풀 관리 유형입니다. '동적'
'수동'
scaleConfiguration 세션 풀의 크기 조정 구성입니다. ScaleConfiguration
비밀 세션 풀의 비밀입니다. SessionPoolSecret[]
sessionNetworkConfiguration 세션 풀에 있는 세션의 네트워크 구성입니다. sessionNetworkConfiguration

SessionPoolSecret

이름 묘사
이름 비밀 이름입니다. 문자열
비밀 값입니다. 문자열

제약 조건:
중요한 값입니다. 보안 매개 변수로 전달합니다.

SessionRegistryCredentials

이름 묘사
신원 Azure Container Registry로 인증하는 데 사용할 관리 ID입니다. 사용자 할당 ID의 경우 전체 사용자 할당 ID 리소스 ID를 사용합니다. 시스템 할당 ID의 경우 'system'을 사용합니다. 문자열
passwordSecretRef 레지스트리 로그인 암호를 포함하는 비밀의 이름입니다. 문자열
서버 컨테이너 레지스트리 서버. 문자열
사용자 이름 컨테이너 레지스트리 사용자 이름입니다. 문자열

TrackedResourceTags

이름 묘사

UserAssignedIdentities

이름 묘사

UserAssignedIdentity

이름 묘사