共用方式為


Microsoft.App sessionPools 2024-02-02-preview

Bicep 資源定義

sessionPools 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.App/sessionPools 資源,請將下列 Bicep 新增至範本。

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'
  }
}

屬性值

CustomContainerTemplate

名字 描述 價值
器皿 會話集區的會話容器定義清單。 SessionContainer[]
入口 會話集區輸入組態。 SessionIngress
registryCredentials 會話集區之會話所使用的容器的私人容器登錄認證。 SessionRegistryCredentials

DynamicPoolConfiguration

名字 描述 價值
cooldownPeriodInSeconds 會話的冷卻期間,以秒為單位。 int
executionType 會話集區的執行類型。 'Timed'

EnvironmentVar

名字 描述 價值
名字 環境變數名稱。 字串
secretRef 要從中提取環境變數值的容器應用程式秘密名稱。 字串
價值 非秘密環境變數值。 字串

Microsoft.App/sessionPools

名字 描述 價值
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 63
模式 = ^[a-z][a-z0-9]*$ (必要)
性能 容器應用程式會話集區資源特定屬性 SessionPoolProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤

ScaleConfiguration

名字 描述 價值
maxConcurrentSessions 同時會話的最大計數。 int
readySessionInstances 就緒會話實例的最小計數。 int

SessionContainer

名字 描述 價值
args 容器啟動命令自變數。 string[]
命令 容器啟動命令。 string[]
env 容器環境變數。 EnvironmentVar[]
圖像 容器映像標記。 字串
名字 自訂容器名稱。 字串
資源 容器資源需求。 SessionContainerResources

SessionContainerResources

名字 描述 價值
中央處理器 核心中所需的CPU,例如0.5 int
記憶 所需的記憶體,例如 “250Mb” 字串

SessionIngress

名字 描述 價值
targetPort 來自輸入流量的容器中目標埠 int

SessionNetworkConfiguration

名字 描述 價值
地位 工作階段的網路狀態。 'EgressDisabled'
'EgressEnabled'

SessionPoolProperties

名字 描述 價值
containerType 會話的容器類型。 'CustomContainer'
'PythonLTS'
customContainerTemplate 如果 containerType 是 CustomContainer,則為自定義容器組態。 CustomContainerTemplate
dynamicPoolConfiguration 如果 poolManagementType 是動態的,則為集區組態。 DynamicPoolConfiguration
environmentId 會話集區環境的資源標識碼。 字串
poolManagementType 會話集區的集區管理類型。 'Dynamic'
'Manual'
scaleConfiguration 會話集區的調整組態。 ScaleConfiguration
秘密 會話集區的秘密。 SessionPoolSecret[]
sessionNetworkConfiguration 會話集區中會話的網路組態。 SessionNetworkConfiguration

SessionPoolSecret

名字 描述 價值
名字 秘密名稱。 字串
價值 秘密值。 字串

約束:
敏感性值。 以安全參數的形式傳入。

SessionRegistryCredentials

名字 描述 價值
passwordSecretRef 包含登錄登入密碼的秘密名稱 字串
registryServer 容器登錄伺服器。 字串
username 容器登錄用戶名稱。 字串

TrackedResourceTags

名字 描述 價值

ARM 樣本資源定義

sessionPools 資源類型可以使用目標作業來部署:

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.App/sessionPools 資源,請將下列 JSON 新增至範本。

{
  "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"
  }
}

屬性值

CustomContainerTemplate

名字 描述 價值
器皿 會話集區的會話容器定義清單。 SessionContainer[]
入口 會話集區輸入組態。 SessionIngress
registryCredentials 會話集區之會話所使用的容器的私人容器登錄認證。 SessionRegistryCredentials

DynamicPoolConfiguration

名字 描述 價值
cooldownPeriodInSeconds 會話的冷卻期間,以秒為單位。 int
executionType 會話集區的執行類型。 'Timed'

EnvironmentVar

名字 描述 價值
名字 環境變數名稱。 字串
secretRef 要從中提取環境變數值的容器應用程式秘密名稱。 字串
價值 非秘密環境變數值。 字串

Microsoft.App/sessionPools

名字 描述 價值
apiVersion API 版本 '2024-02-02-preview'
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 63
模式 = ^[a-z][a-z0-9]*$ (必要)
性能 容器應用程式會話集區資源特定屬性 SessionPoolProperties
標籤 資源標籤 標記名稱和值的字典。 請參閱範本中的 標籤
類型 資源類型 'Microsoft.App/sessionPools'

ScaleConfiguration

名字 描述 價值
maxConcurrentSessions 同時會話的最大計數。 int
readySessionInstances 就緒會話實例的最小計數。 int

SessionContainer

名字 描述 價值
args 容器啟動命令自變數。 string[]
命令 容器啟動命令。 string[]
env 容器環境變數。 EnvironmentVar[]
圖像 容器映像標記。 字串
名字 自訂容器名稱。 字串
資源 容器資源需求。 SessionContainerResources

SessionContainerResources

名字 描述 價值
中央處理器 核心中所需的CPU,例如0.5 int
記憶 所需的記憶體,例如 “250Mb” 字串

SessionIngress

名字 描述 價值
targetPort 來自輸入流量的容器中目標埠 int

SessionNetworkConfiguration

名字 描述 價值
地位 工作階段的網路狀態。 'EgressDisabled'
'EgressEnabled'

SessionPoolProperties

名字 描述 價值
containerType 會話的容器類型。 'CustomContainer'
'PythonLTS'
customContainerTemplate 如果 containerType 是 CustomContainer,則為自定義容器組態。 CustomContainerTemplate
dynamicPoolConfiguration 如果 poolManagementType 是動態的,則為集區組態。 DynamicPoolConfiguration
environmentId 會話集區環境的資源標識碼。 字串
poolManagementType 會話集區的集區管理類型。 'Dynamic'
'Manual'
scaleConfiguration 會話集區的調整組態。 ScaleConfiguration
秘密 會話集區的秘密。 SessionPoolSecret[]
sessionNetworkConfiguration 會話集區中會話的網路組態。 SessionNetworkConfiguration

SessionPoolSecret

名字 描述 價值
名字 秘密名稱。 字串
價值 秘密值。 字串

約束:
敏感性值。 以安全參數的形式傳入。

SessionRegistryCredentials

名字 描述 價值
passwordSecretRef 包含登錄登入密碼的秘密名稱 字串
registryServer 容器登錄伺服器。 字串
username 容器登錄用戶名稱。 字串

TrackedResourceTags

名字 描述 價值

Terraform (AzAPI 提供者) 資源定義

sessionPools 資源類型可以使用目標作業來部署:

  • 資源群組

如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔

資源格式

若要建立 Microsoft.App/sessionPools 資源,請將下列 Terraform 新增至您的範本。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.App/sessionPools@2024-02-02-preview"
  name = "string"
  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 = {
          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"
      }
    }
  })
}

屬性值

CustomContainerTemplate

名字 描述 價值
器皿 會話集區的會話容器定義清單。 SessionContainer[]
入口 會話集區輸入組態。 SessionIngress
registryCredentials 會話集區之會話所使用的容器的私人容器登錄認證。 SessionRegistryCredentials

DynamicPoolConfiguration

名字 描述 價值
cooldownPeriodInSeconds 會話的冷卻期間,以秒為單位。 int
executionType 會話集區的執行類型。 'Timed'

EnvironmentVar

名字 描述 價值
名字 環境變數名稱。 字串
secretRef 要從中提取環境變數值的容器應用程式秘密名稱。 字串
價值 非秘密環境變數值。 字串

Microsoft.App/sessionPools

名字 描述 價值
位置 資源所在的地理位置 字串 (必要)
名字 資源名稱 字串

約束:
最小長度 = 3
最大長度 = 63
模式 = ^[a-z][a-z0-9]*$ (必要)
性能 容器應用程式會話集區資源特定屬性 SessionPoolProperties
標籤 資源標籤 標記名稱和值的字典。
類型 資源類型 “Microsoft.App/sessionPools@2024-02-02-preview”

ScaleConfiguration

名字 描述 價值
maxConcurrentSessions 同時會話的最大計數。 int
readySessionInstances 就緒會話實例的最小計數。 int

SessionContainer

名字 描述 價值
args 容器啟動命令自變數。 string[]
命令 容器啟動命令。 string[]
env 容器環境變數。 EnvironmentVar[]
圖像 容器映像標記。 字串
名字 自訂容器名稱。 字串
資源 容器資源需求。 SessionContainerResources

SessionContainerResources

名字 描述 價值
中央處理器 核心中所需的CPU,例如0.5 int
記憶 所需的記憶體,例如 “250Mb” 字串

SessionIngress

名字 描述 價值
targetPort 來自輸入流量的容器中目標埠 int

SessionNetworkConfiguration

名字 描述 價值
地位 工作階段的網路狀態。 'EgressDisabled'
'EgressEnabled'

SessionPoolProperties

名字 描述 價值
containerType 會話的容器類型。 'CustomContainer'
'PythonLTS'
customContainerTemplate 如果 containerType 是 CustomContainer,則為自定義容器組態。 CustomContainerTemplate
dynamicPoolConfiguration 如果 poolManagementType 是動態的,則為集區組態。 DynamicPoolConfiguration
environmentId 會話集區環境的資源標識碼。 字串
poolManagementType 會話集區的集區管理類型。 'Dynamic'
'Manual'
scaleConfiguration 會話集區的調整組態。 ScaleConfiguration
秘密 會話集區的秘密。 SessionPoolSecret[]
sessionNetworkConfiguration 會話集區中會話的網路組態。 SessionNetworkConfiguration

SessionPoolSecret

名字 描述 價值
名字 秘密名稱。 字串
價值 秘密值。 字串

約束:
敏感性值。 以安全參數的形式傳入。

SessionRegistryCredentials

名字 描述 價值
passwordSecretRef 包含登錄登入密碼的秘密名稱 字串
registryServer 容器登錄伺服器。 字串
username 容器登錄用戶名稱。 字串

TrackedResourceTags

名字 描述 價值