Microsoft.App sessionPools 2024-08-02-preview
Bicep 資源定義
sessionPools 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.App/sessionPools 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.App/sessionPools@2024-08-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: {
identity: 'string'
passwordSecretRef: 'string'
server: '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
DynamicPoolConfiguration
名字 |
描述 |
價值 |
cooldownPeriodInSeconds |
會話的冷卻期間,以秒為單位。 |
int |
executionType |
會話集區的執行類型。 |
'Timed' |
EnvironmentVar
名字 |
描述 |
價值 |
名字 |
環境變數名稱。 |
字串 |
secretRef |
要從中提取環境變數值的容器應用程式秘密名稱。 |
字串 |
價值 |
非秘密環境變數值。 |
字串 |
Microsoft.App/sessionPools
名字 |
描述 |
價值 |
位置 |
資源所在的地理位置 |
字串 (必要) |
名字 |
資源名稱 |
字串
約束: 最小長度 = 3 最大長度 = 63 模式 = ^[a-z][a-z0-9]*$ (必要) |
性能 |
容器應用程式會話集區資源特定屬性 |
SessionPoolProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 請參閱範本中的 標籤 |
ScaleConfiguration
名字 |
描述 |
價值 |
maxConcurrentSessions |
同時會話的最大計數。 |
int |
readySessionInstances |
就緒會話實例的最小計數。 |
int |
SessionContainer
SessionContainerResources
名字 |
描述 |
價值 |
中央處理器 |
核心中所需的CPU,例如0.5 |
int |
記憶 |
所需的記憶體,例如 “250Mb” |
字串 |
SessionIngress
名字 |
描述 |
價值 |
targetPort |
來自輸入流量的容器中目標埠 |
int |
SessionNetworkConfiguration
名字 |
描述 |
價值 |
地位 |
工作階段的網路狀態。 |
'EgressDisabled' 'EgressEnabled' |
SessionPoolProperties
SessionPoolSecret
名字 |
描述 |
價值 |
名字 |
秘密名稱。 |
字串 |
價值 |
秘密值。 |
字串
約束: 敏感性值。 以安全參數的形式傳入。 |
SessionRegistryCredentials
名字 |
描述 |
價值 |
身份 |
用來向 Azure Container Registry 進行驗證的受控識別。 針對使用者指派的身分識別,請使用使用者指派的完整身分識別資源標識碼。 針對系統指派的身分識別,請使用 'system' |
字串 |
passwordSecretRef |
包含登錄登入密碼的秘密名稱 |
字串 |
伺服器 |
容器登錄伺服器。 |
字串 |
username |
容器登錄用戶名稱。 |
字串 |
ARM 樣本資源定義
sessionPools 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.App/sessionPools 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.App/sessionPools",
"apiVersion": "2024-08-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": {
"identity": "string",
"passwordSecretRef": "string",
"server": "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
DynamicPoolConfiguration
名字 |
描述 |
價值 |
cooldownPeriodInSeconds |
會話的冷卻期間,以秒為單位。 |
int |
executionType |
會話集區的執行類型。 |
'Timed' |
EnvironmentVar
名字 |
描述 |
價值 |
名字 |
環境變數名稱。 |
字串 |
secretRef |
要從中提取環境變數值的容器應用程式秘密名稱。 |
字串 |
價值 |
非秘密環境變數值。 |
字串 |
Microsoft.App/sessionPools
名字 |
描述 |
價值 |
apiVersion |
API 版本 |
'2024-08-02-preview' |
位置 |
資源所在的地理位置 |
字串 (必要) |
名字 |
資源名稱 |
字串
約束: 最小長度 = 3 最大長度 = 63 模式 = ^[a-z][a-z0-9]*$ (必要) |
性能 |
容器應用程式會話集區資源特定屬性 |
SessionPoolProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 請參閱範本中的 標籤 |
類型 |
資源類型 |
'Microsoft.App/sessionPools' |
ScaleConfiguration
名字 |
描述 |
價值 |
maxConcurrentSessions |
同時會話的最大計數。 |
int |
readySessionInstances |
就緒會話實例的最小計數。 |
int |
SessionContainer
SessionContainerResources
名字 |
描述 |
價值 |
中央處理器 |
核心中所需的CPU,例如0.5 |
int |
記憶 |
所需的記憶體,例如 “250Mb” |
字串 |
SessionIngress
名字 |
描述 |
價值 |
targetPort |
來自輸入流量的容器中目標埠 |
int |
SessionNetworkConfiguration
名字 |
描述 |
價值 |
地位 |
工作階段的網路狀態。 |
'EgressDisabled' 'EgressEnabled' |
SessionPoolProperties
SessionPoolSecret
名字 |
描述 |
價值 |
名字 |
秘密名稱。 |
字串 |
價值 |
秘密值。 |
字串
約束: 敏感性值。 以安全參數的形式傳入。 |
SessionRegistryCredentials
名字 |
描述 |
價值 |
身份 |
用來向 Azure Container Registry 進行驗證的受控識別。 針對使用者指派的身分識別,請使用使用者指派的完整身分識別資源標識碼。 針對系統指派的身分識別,請使用 'system' |
字串 |
passwordSecretRef |
包含登錄登入密碼的秘密名稱 |
字串 |
伺服器 |
容器登錄伺服器。 |
字串 |
username |
容器登錄用戶名稱。 |
字串 |
sessionPools 資源類型可以使用目標作業來部署:
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
若要建立 Microsoft.App/sessionPools 資源,請將下列 Terraform 新增至您的範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.App/sessionPools@2024-08-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 = {
identity = "string"
passwordSecretRef = "string"
server = "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
DynamicPoolConfiguration
名字 |
描述 |
價值 |
cooldownPeriodInSeconds |
會話的冷卻期間,以秒為單位。 |
int |
executionType |
會話集區的執行類型。 |
'Timed' |
EnvironmentVar
名字 |
描述 |
價值 |
名字 |
環境變數名稱。 |
字串 |
secretRef |
要從中提取環境變數值的容器應用程式秘密名稱。 |
字串 |
價值 |
非秘密環境變數值。 |
字串 |
Microsoft.App/sessionPools
名字 |
描述 |
價值 |
位置 |
資源所在的地理位置 |
字串 (必要) |
名字 |
資源名稱 |
字串
約束: 最小長度 = 3 最大長度 = 63 模式 = ^[a-z][a-z0-9]*$ (必要) |
性能 |
容器應用程式會話集區資源特定屬性 |
SessionPoolProperties |
標籤 |
資源標籤 |
標記名稱和值的字典。 |
類型 |
資源類型 |
“Microsoft.App/sessionPools@2024-08-02-preview” |
ScaleConfiguration
名字 |
描述 |
價值 |
maxConcurrentSessions |
同時會話的最大計數。 |
int |
readySessionInstances |
就緒會話實例的最小計數。 |
int |
SessionContainer
SessionContainerResources
名字 |
描述 |
價值 |
中央處理器 |
核心中所需的CPU,例如0.5 |
int |
記憶 |
所需的記憶體,例如 “250Mb” |
字串 |
SessionIngress
名字 |
描述 |
價值 |
targetPort |
來自輸入流量的容器中目標埠 |
int |
SessionNetworkConfiguration
名字 |
描述 |
價值 |
地位 |
工作階段的網路狀態。 |
'EgressDisabled' 'EgressEnabled' |
SessionPoolProperties
SessionPoolSecret
名字 |
描述 |
價值 |
名字 |
秘密名稱。 |
字串 |
價值 |
秘密值。 |
字串
約束: 敏感性值。 以安全參數的形式傳入。 |
SessionRegistryCredentials
名字 |
描述 |
價值 |
身份 |
用來向 Azure Container Registry 進行驗證的受控識別。 針對使用者指派的身分識別,請使用使用者指派的完整身分識別資源標識碼。 針對系統指派的身分識別,請使用 'system' |
字串 |
passwordSecretRef |
包含登錄登入密碼的秘密名稱 |
字串 |
伺服器 |
容器登錄伺服器。 |
字串 |
username |
容器登錄用戶名稱。 |
字串 |