Microsoft.App sessionPools 2024-10-02-preview
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
名字 | 描述 | 價值 |
---|---|---|
身份 | 指派給會話集區之使用者指派受控識別的資源標識符,或系統指派身分識別的「系統」。 | 字串 (必要) |
生命週期 | 使用 來選取會話集區的生命週期階段,其中應該提供受控識別。 | 'All' 'Init' 'Main' 'None' |
ManagedServiceIdentity
名字 | 描述 | 價值 |
---|---|---|
類型 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | 'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
Microsoft.App/sessionPools
名字 | 描述 | 價值 |
---|---|---|
身份 | 會話集區需要受控識別來與其他 Azure 服務互動,以不維護程式代碼中的任何秘密或認證。 | ManagedServiceIdentity |
位置 | 資源所在的地理位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 約束: 最小長度 = 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 | 會話集區環境的資源標識碼。 | 字串 |
managedIdentitySettings | 指派給會話集區之受控識別的選擇性設定。 | ManagedIdentitySetting[] |
poolManagementType | 會話集區的集區管理類型。 | 'Dynamic' 'Manual' |
scaleConfiguration | 會話集區的調整組態。 | ScaleConfiguration |
秘密 | 會話集區的秘密。 | SessionPoolSecret[] |
sessionNetworkConfiguration | 會話集區中會話的網路組態。 | SessionNetworkConfiguration |
SessionPoolSecret
名字 | 描述 | 價值 |
---|---|---|
名字 | 秘密名稱。 | 字串 |
價值 | 秘密值。 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
SessionRegistryCredentials
名字 | 描述 | 價值 |
---|---|---|
身份 | 用來向 Azure Container Registry 進行驗證的受控識別。 針對使用者指派的身分識別,請使用使用者指派的完整身分識別資源標識碼。 針對系統指派的身分識別,請使用 'system' | 字串 |
passwordSecretRef | 包含登錄登入密碼的秘密名稱 | 字串 |
伺服器 | 容器登錄伺服器。 | 字串 |
username | 容器登錄用戶名稱。 | 字串 |
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
名字 | 描述 | 價值 |
---|---|---|
身份 | 指派給會話集區之使用者指派受控識別的資源標識符,或系統指派身分識別的「系統」。 | 字串 (必要) |
生命週期 | 使用 來選取會話集區的生命週期階段,其中應該提供受控識別。 | 'All' 'Init' 'Main' 'None' |
ManagedServiceIdentity
名字 | 描述 | 價值 |
---|---|---|
類型 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | 'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
Microsoft.App/sessionPools
名字 | 描述 | 價值 |
---|---|---|
apiVersion | API 版本 | '2024-10-02-preview' |
身份 | 會話集區需要受控識別來與其他 Azure 服務互動,以不維護程式代碼中的任何秘密或認證。 | ManagedServiceIdentity |
位置 | 資源所在的地理位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 約束: 最小長度 = 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 | 會話集區環境的資源標識碼。 | 字串 |
managedIdentitySettings | 指派給會話集區之受控識別的選擇性設定。 | ManagedIdentitySetting[] |
poolManagementType | 會話集區的集區管理類型。 | 'Dynamic' 'Manual' |
scaleConfiguration | 會話集區的調整組態。 | ScaleConfiguration |
秘密 | 會話集區的秘密。 | SessionPoolSecret[] |
sessionNetworkConfiguration | 會話集區中會話的網路組態。 | SessionNetworkConfiguration |
SessionPoolSecret
名字 | 描述 | 價值 |
---|---|---|
名字 | 秘密名稱。 | 字串 |
價值 | 秘密值。 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
SessionRegistryCredentials
名字 | 描述 | 價值 |
---|---|---|
身份 | 用來向 Azure Container Registry 進行驗證的受控識別。 針對使用者指派的身分識別,請使用使用者指派的完整身分識別資源標識碼。 針對系統指派的身分識別,請使用 'system' | 字串 |
passwordSecretRef | 包含登錄登入密碼的秘密名稱 | 字串 |
伺服器 | 容器登錄伺服器。 | 字串 |
username | 容器登錄用戶名稱。 | 字串 |
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
名字 | 描述 | 價值 |
---|---|---|
身份 | 指派給會話集區之使用者指派受控識別的資源標識符,或系統指派身分識別的「系統」。 | 字串 (必要) |
生命週期 | 使用 來選取會話集區的生命週期階段,其中應該提供受控識別。 | 'All' 'Init' 'Main' 'None' |
ManagedServiceIdentity
名字 | 描述 | 價值 |
---|---|---|
類型 | 受控服務識別的類型(允許 SystemAssigned 和 UserAssigned 類型)。 | 'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中的空白物件({})。 | UserAssignedIdentities |
Microsoft.App/sessionPools
名字 | 描述 | 價值 |
---|---|---|
身份 | 會話集區需要受控識別來與其他 Azure 服務互動,以不維護程式代碼中的任何秘密或認證。 | ManagedServiceIdentity |
位置 | 資源所在的地理位置 | 字串 (必要) |
名字 | 資源名稱 | 字串 約束: 最小長度 = 3 最大長度 = 63 模式 = ^[a-z][a-z0-9]*$ (必要) |
性能 | 容器應用程式會話集區資源特定屬性 | SessionPoolProperties |
標籤 | 資源標籤 | 標記名稱和值的字典。 |
類型 | 資源類型 | “Microsoft.App/sessionPools@2024-10-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 | 會話集區環境的資源標識碼。 | 字串 |
managedIdentitySettings | 指派給會話集區之受控識別的選擇性設定。 | ManagedIdentitySetting[] |
poolManagementType | 會話集區的集區管理類型。 | 'Dynamic' 'Manual' |
scaleConfiguration | 會話集區的調整組態。 | ScaleConfiguration |
秘密 | 會話集區的秘密。 | SessionPoolSecret[] |
sessionNetworkConfiguration | 會話集區中會話的網路組態。 | SessionNetworkConfiguration |
SessionPoolSecret
名字 | 描述 | 價值 |
---|---|---|
名字 | 秘密名稱。 | 字串 |
價值 | 秘密值。 | 字串 約束: 敏感性值。 以安全參數的形式傳入。 |
SessionRegistryCredentials
名字 | 描述 | 價值 |
---|---|---|
身份 | 用來向 Azure Container Registry 進行驗證的受控識別。 針對使用者指派的身分識別,請使用使用者指派的完整身分識別資源標識碼。 針對系統指派的身分識別,請使用 'system' | 字串 |
passwordSecretRef | 包含登錄登入密碼的秘密名稱 | 字串 |
伺服器 | 容器登錄伺服器。 | 字串 |
username | 容器登錄用戶名稱。 | 字串 |
TrackedResourceTags
名字 | 描述 | 價值 |
---|
UserAssignedIdentities
名字 | 描述 | 價值 |
---|
UserAssignedIdentity
名字 | 描述 | 價值 |
---|