Microsoft.MachineLearningServices workspaces/batchEndpoints/deployments 2023-08-01-preview
Bicep 資源定義
workspaces/batchEndpoints/deployments 資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments 資源,請將下列 Bicep 新增至範本。
resource symbolicname 'Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments@2023-08-01-preview' = {
name: 'string'
location: 'string'
tags: {
tagName1: 'tagValue1'
tagName2: 'tagValue2'
}
sku: {
capacity: int
family: 'string'
name: 'string'
size: 'string'
tier: 'string'
}
kind: 'string'
parent: resourceSymbolicName
identity: {
type: 'string'
userAssignedIdentities: {
{customized property}: {}
}
}
properties: {
codeConfiguration: {
codeId: 'string'
scoringScript: 'string'
}
compute: 'string'
deploymentConfiguration: {
deploymentConfigurationType: 'string'
// For remaining properties, see BatchDeploymentConfiguration objects
}
description: 'string'
environmentId: 'string'
environmentVariables: {
{customized property}: 'string'
{customized property}: 'string'
}
errorThreshold: int
loggingLevel: 'string'
maxConcurrencyPerInstance: int
miniBatchSize: int
model: {
referenceType: 'string'
// For remaining properties, see AssetReferenceBase objects
}
outputAction: 'string'
outputFileName: 'string'
properties: {
{customized property}: 'string'
{customized property}: 'string'
}
resources: {
instanceCount: int
instanceType: 'string'
locations: [
'string'
]
maxInstanceCount: int
properties: {
{customized property}: any()
{customized property}: any()
}
}
retrySettings: {
maxRetries: int
timeout: 'string'
}
}
}
BatchDeploymentConfiguration 物件
設定 deploymentConfigurationType 屬性以指定對象的類型。
針對 PipelineComponent,請使用:
deploymentConfigurationType: 'PipelineComponent'
componentId: {
assetId: 'string'
referenceType: 'string'
}
description: 'string'
settings: {
{customized property}: 'string'
}
tags: {
{customized property}: 'string'
}
AssetReferenceBase 物件
設定 referenceType 屬性以指定物件的類型。
針對 DataPath,請使用:
referenceType: 'DataPath'
datastoreId: 'string'
path: 'string'
針對 [標識符],請使用:
referenceType: 'Id'
assetId: 'string'
針對 OutputPath,請使用:
referenceType: 'OutputPath'
jobId: 'string'
path: 'string'
屬性值
workspaces/batchEndpoints/deployments
名稱 | 描述 | 值 |
---|---|---|
NAME | 資源名稱 瞭解如何在 Bicep 中設定子資源的名稱和類型。 |
需要字串 () |
location | 資源所在的地理位置 | 需要字串 () |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標籤 |
sku | 自動調整的 ARM 合約所需的 SKU 詳細數據。 | Sku |
kind | 入口網站/工具/等用來轉譯相同類型資源的不同UX體驗的元數據。 | 字串 |
父系 (parent) | 在 Bicep 中,您可以指定子資源的父資源。 只有在父資源外部宣告子資源時,才需要新增此屬性。 如需詳細資訊,請參閱 父資源外部的子資源。 |
類型資源的符號名稱: batchEndpoints |
身分識別 | 受控服務識別 (系統指派和/或使用者指派的身分識別) | ManagedServiceIdentity |
properties | [必要]實體的其他屬性。 | BatchDeploymentProperties (必要) |
ManagedServiceIdentity
名稱 | 描述 | 值 |
---|---|---|
類型 | (允許 SystemAssigned 和 UserAssigned 類型的受控服務識別類型) 。 | 'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中 ({}) 的空白物件。 | UserAssignedIdentities |
UserAssignedIdentities
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | UserAssignedIdentity |
UserAssignedIdentity
此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。
BatchDeploymentProperties
名稱 | 描述 | 值 |
---|---|---|
codeConfiguration | 端點部署的程式代碼組態。 | CodeConfiguration |
計算 | 批次推斷作業的計算目標。 | 字串 |
deploymentConfiguration | 與不同部署類型相關的屬性。 | BatchDeploymentConfiguration |
description | 端點部署的描述。 | 字串 |
environmentId | 端點部署之環境規格的 ARM 資源識別碼。 | 字串 |
environmentVariables | 部署的環境變數組態。 | EndpointDeploymentPropertiesBaseEnvironmentVariables |
errorThreshold | 如果整個輸入的錯誤計數高於此值,則為錯誤臨界值。 批次推斷將會中止。 範圍為 [-1, int。MaxValue]。 針對 FileDataset,此值是檔案失敗的計數。 對於 TabularDataset,此值是記錄失敗的計數。 如果設定為 -1 (下限) ,則會忽略批次推斷期間的所有失敗。 |
int |
loggingLevel | 批次推斷作業的記錄層級。 | 'Debug' 'Info' 'Warning' |
maxConcurrencyPerInstance | 指出每個實例的平行處理原則數目上限。 | int |
miniBatchSize | 傳遞至每個批次調用的迷你批次大小。 針對 FileDataset,這是每個迷你批次的檔案數目。 對於 TabularDataset,這是每個迷你批次的記錄大小,以位元組為單位。 |
int |
model | 端點部署的模型資產參考。 | AssetReferenceBase |
outputAction | 指出輸出的組織方式。 | 'AppendRow' 'SummaryOnly' |
outputFileName | append_row輸出動作的自訂輸出檔名。 | 字串 |
properties | 屬性字典。 您可以新增屬性,但無法移除或改變。 | EndpointDeploymentPropertiesBaseProperties |
resources | 指出作業的計算組態。 如果未提供,則會預設為 ResourceConfiguration 中定義的預設值。 |
DeploymentResourceConfiguration |
retrySettings | 重試批次推斷作業的設定。 如果未提供,則會預設為 BatchRetrySettings 中定義的預設值。 |
BatchRetrySettings |
CodeConfiguration
名稱 | 描述 | 值 |
---|---|---|
codeId | 程式代碼資產的 ARM 資源識別碼。 | 字串 |
scoringScript | [必要]在啟動時執行的腳本。 例如 “score.py” | 需要字串 () 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] |
BatchDeploymentConfiguration
名稱 | 描述 | 值 |
---|---|---|
deploymentConfigurationType | 設定物件類型 | PipelineComponent (必要) |
BatchPipelineComponentDeploymentConfiguration
名稱 | 描述 | 值 |
---|---|---|
deploymentConfigurationType | [必要]部署的類型 | 'PipelineComponent' (必要) |
componentId | 要執行之元件的 ARM 識別碼。 | IdAssetReference |
description | 將套用至作業的描述。 | 字串 |
設定 | 管線作業的運行時間設定。 | BatchPipelineComponentDeploymentConfigurationSetting... |
tags | 將套用至作業的標記。 | 物件 (object) |
IdAssetReference
名稱 | 描述 | 值 |
---|---|---|
assetId | [必要]資產的 ARM 資源識別碼。 | 需要字串 () 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] |
referenceType | [必要]指定資產參考的類型。 | 'DataPath' 'Id' 需要 『OutputPath』 () |
BatchPipelineComponentDeploymentConfigurationSetting...
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 字串 |
EndpointDeploymentPropertiesBaseEnvironmentVariables
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 字串 | |
{自定義屬性} | 字串 |
AssetReferenceBase
名稱 | 描述 | 值 |
---|---|---|
referenceType | 設定物件類型 | 資料路徑 Id OutputPath (必要) |
DataPathAssetReference
名稱 | 描述 | 值 |
---|---|---|
referenceType | [必要]指定資產參考的類型。 | 需要 『DataPath』 () |
datastoreId | 資產所在數據存放區的 ARM 資源識別碼。 | 字串 |
path | 數據存放區中檔案/目錄的路徑。 | 字串 |
OutputPathAssetReference
名稱 | 描述 | 值 |
---|---|---|
referenceType | [必要]指定資產參考的類型。 | 需要 『OutputPath』 () |
jobId | 作業的 ARM 資源識別碼。 | 字串 |
path | 作業輸出中檔案/目錄的路徑。 | 字串 |
EndpointDeploymentPropertiesBaseProperties
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 字串 | |
{自定義屬性} | 字串 |
DeploymentResourceConfiguration
名稱 | 描述 | 值 |
---|---|---|
instanceCount | 計算目標所使用的選用執行個體或節點數目。 | int |
instanceType | 計算目標所支持的選擇性 VM 類型。 | 字串 |
位置 | 作業可以執行的位置。 | string[] |
maxInstanceCount | 選擇性的允許實例或節點數目上限,供計算目標使用。 若要搭配彈性定型使用,目前僅 PyTorch 散發類型支援。 |
int |
properties | 其他屬性包。 | ResourceConfigurationProperties |
ResourceConfigurationProperties
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 針對 Bicep,您可以使用 any () 函式。 | |
{自定義屬性} | 針對 Bicep,您可以使用 any () 函式。 |
BatchRetrySettings
名稱 | 描述 | 值 |
---|---|---|
maxRetries | 迷你批次的重試計數上限 | int |
timeout | 迷你批次的調用逾時,格式為 ISO 8601。 | 字串 |
SKU
名稱 | 描述 | 值 |
---|---|---|
處理能力 | 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 | int |
family | 如果服務有不同的硬體世代,則針對相同的 SKU,則可以在這裡擷取。 | 字串 |
NAME | SKU 的名稱。 例如 - P3。 通常是字母+數位碼 | 需要字串 () |
{1}size{2} | SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 | 字串 |
tier | 如果服務有一個以上的層級,但在PUT上則不需要此欄位,才能由資源提供者實作。 | 'Basic' 'Free' 'Premium' 'Standard' |
ARM 範本資源定義
workspaces/batchEndpoints/deployments 資源類型可以使用目標作業進行部署:
- 資源群組 - 請參閱 資源群組部署命令
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments 資源,請將下列 JSON 新增至範本。
{
"type": "Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments",
"apiVersion": "2023-08-01-preview",
"name": "string",
"location": "string",
"tags": {
"tagName1": "tagValue1",
"tagName2": "tagValue2"
},
"sku": {
"capacity": "int",
"family": "string",
"name": "string",
"size": "string",
"tier": "string"
},
"kind": "string",
"identity": {
"type": "string",
"userAssignedIdentities": {
"{customized property}": {}
}
},
"properties": {
"codeConfiguration": {
"codeId": "string",
"scoringScript": "string"
},
"compute": "string",
"deploymentConfiguration": {
"deploymentConfigurationType": "string"
// For remaining properties, see BatchDeploymentConfiguration objects
},
"description": "string",
"environmentId": "string",
"environmentVariables": {
"{customized property}": "string",
"{customized property}": "string"
},
"errorThreshold": "int",
"loggingLevel": "string",
"maxConcurrencyPerInstance": "int",
"miniBatchSize": "int",
"model": {
"referenceType": "string"
// For remaining properties, see AssetReferenceBase objects
},
"outputAction": "string",
"outputFileName": "string",
"properties": {
"{customized property}": "string",
"{customized property}": "string"
},
"resources": {
"instanceCount": "int",
"instanceType": "string",
"locations": [ "string" ],
"maxInstanceCount": "int",
"properties": {
"{customized property}": {},
"{customized property}": {}
}
},
"retrySettings": {
"maxRetries": "int",
"timeout": "string"
}
}
}
BatchDeploymentConfiguration 物件
設定 deploymentConfigurationType 屬性以指定對象的類型。
針對 PipelineComponent,請使用:
"deploymentConfigurationType": "PipelineComponent",
"componentId": {
"assetId": "string",
"referenceType": "string"
},
"description": "string",
"settings": {
"{customized property}": "string"
},
"tags": {
"{customized property}": "string"
}
AssetReferenceBase 物件
設定 referenceType 屬性以指定物件的類型。
針對 DataPath,請使用:
"referenceType": "DataPath",
"datastoreId": "string",
"path": "string"
針對 [標識符],請使用:
"referenceType": "Id",
"assetId": "string"
針對 OutputPath,請使用:
"referenceType": "OutputPath",
"jobId": "string",
"path": "string"
屬性值
workspaces/batchEndpoints/deployments
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | 'Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments' |
apiVersion | 資源 API 版本 | '2023-08-01-preview' |
NAME | 資源名稱 瞭解如何在 JSON ARM 範本中設定子資源的名稱和類型。 |
需要字串 () |
location | 資源所在的地理位置 | 需要字串 () |
tags | 資源標籤。 | 標記名稱和值的字典。 請參閱 範本中的標籤 |
sku | 自動調整的 ARM 合約所需的 SKU 詳細數據。 | Sku |
kind | 入口網站/工具/等用來轉譯相同類型資源的不同UX體驗的元數據。 | 字串 |
身分識別 | 受控服務識別 (系統指派和/或使用者指派的身分識別) | ManagedServiceIdentity |
properties | [必要]實體的其他屬性。 | BatchDeploymentProperties (必要) |
ManagedServiceIdentity
名稱 | 描述 | 值 |
---|---|---|
類型 | (允許 SystemAssigned 和 UserAssigned 類型的受控服務識別類型) 。 | 'None' 'SystemAssigned' 'SystemAssigned,UserAssigned' 'UserAssigned' (必要) |
userAssignedIdentities | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中 ({}) 的空白物件。 | UserAssignedIdentities |
UserAssignedIdentities
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | UserAssignedIdentity |
UserAssignedIdentity
此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。
BatchDeploymentProperties
名稱 | 描述 | 值 |
---|---|---|
codeConfiguration | 端點部署的程式代碼組態。 | CodeConfiguration |
計算 | 批次推斷作業的計算目標。 | 字串 |
deploymentConfiguration | 與不同部署類型相關的屬性。 | BatchDeploymentConfiguration |
description | 端點部署的描述。 | 字串 |
environmentId | 端點部署之環境規格的 ARM 資源識別碼。 | 字串 |
environmentVariables | 部署的環境變數組態。 | EndpointDeploymentPropertiesBaseEnvironmentVariables |
errorThreshold | 如果整個輸入的錯誤計數高於此值,則為錯誤臨界值。 批次推斷將會中止。 範圍為 [-1, int。MaxValue]。 針對 FileDataset,此值是檔案失敗的計數。 對於 TabularDataset,此值是記錄失敗的計數。 如果設定為 -1 (下限) ,則會忽略批次推斷期間的所有失敗。 |
int |
loggingLevel | 批次推斷作業的記錄層級。 | 'Debug' 'Info' 'Warning' |
maxConcurrencyPerInstance | 指出每個實例的平行處理原則數目上限。 | int |
miniBatchSize | 傳遞至每個批次調用的迷你批次大小。 針對 FileDataset,這是每個迷你批次的檔案數目。 對於 TabularDataset,這是每個迷你批次的記錄大小,以位元組為單位。 |
int |
model | 端點部署的模型資產參考。 | AssetReferenceBase |
outputAction | 指出輸出的組織方式。 | 'AppendRow' 'SummaryOnly' |
outputFileName | append_row輸出動作的自訂輸出檔名。 | 字串 |
properties | 屬性字典。 您可以新增屬性,但無法移除或改變。 | EndpointDeploymentPropertiesBaseProperties |
resources | 指出作業的計算組態。 如果未提供,則會預設為 ResourceConfiguration 中定義的預設值。 |
DeploymentResourceConfiguration |
retrySettings | 重試批次推斷作業的設定。 如果未提供,則會預設為 BatchRetrySettings 中定義的預設值。 |
BatchRetrySettings |
CodeConfiguration
名稱 | 描述 | 值 |
---|---|---|
codeId | 程式代碼資產的 ARM 資源識別碼。 | 字串 |
scoringScript | [必要]在啟動時執行的腳本。 例如 “score.py” | 需要字串 () 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] |
BatchDeploymentConfiguration
名稱 | 描述 | 值 |
---|---|---|
deploymentConfigurationType | 設定物件類型 | PipelineComponent (必要) |
BatchPipelineComponentDeploymentConfiguration
名稱 | 描述 | 值 |
---|---|---|
deploymentConfigurationType | [必要]部署的類型 | 'PipelineComponent' (必要) |
componentId | 要執行之元件的 ARM 識別碼。 | IdAssetReference |
description | 將套用至作業的描述。 | 字串 |
設定 | 管線作業的運行時間設定。 | BatchPipelineComponentDeploymentConfigurationSetting... |
tags | 將套用至作業的標記。 | 物件 (object) |
IdAssetReference
名稱 | 描述 | 值 |
---|---|---|
assetId | [必要]資產的 ARM 資源識別碼。 | 字串 (必要) 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] |
referenceType | [必要]指定資產參考的類型。 | 'DataPath' 'Id' 必要 ('OutputPath') |
BatchPipelineComponentDeploymentConfigurationSetting...
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 字串 |
EndpointDeploymentPropertiesBaseEnvironmentVariables
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 字串 | |
{自定義屬性} | 字串 |
AssetReferenceBase
名稱 | 描述 | 值 |
---|---|---|
referenceType | 設定物件類型 | 資料路徑 Id 需要 outputPath () |
DataPathAssetReference
名稱 | 描述 | 值 |
---|---|---|
referenceType | [必要]指定資產參考的類型。 | 需要 『DataPath』 () |
datastoreId | 資產所在數據存放區的 ARM 資源識別碼。 | 字串 |
path | 數據存放區中檔案/目錄的路徑。 | 字串 |
OutputPathAssetReference
名稱 | 描述 | 值 |
---|---|---|
referenceType | [必要]指定資產參考的類型。 | 必要 ('OutputPath') |
jobId | 作業的 ARM 資源識別碼。 | 字串 |
path | 作業輸出中檔案/目錄的路徑。 | 字串 |
EndpointDeploymentPropertiesBaseProperties
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 字串 | |
{自定義屬性} | 字串 |
DeploymentResourceConfiguration
名稱 | 描述 | 值 |
---|---|---|
instanceCount | 計算目標所使用的選用執行個體或節點數目。 | int |
instanceType | 計算目標所支持的選擇性 VM 類型。 | 字串 |
位置 | 作業可執行的位置。 | string[] |
maxInstanceCount | 計算目標要使用的選擇性實例或節點數目上限。 為了搭配彈性定型使用,PyTorch 散發類型目前僅支援。 |
int |
properties | 其他屬性包。 | ResourceConfigurationProperties |
ResourceConfigurationProperties
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | ||
{自定義屬性} |
BatchRetrySettings
名稱 | 描述 | 值 |
---|---|---|
maxRetries | 迷你批次的重試計數上限 | int |
timeout | 迷你批次的調用逾時,格式為 ISO 8601。 | 字串 |
SKU
名稱 | 描述 | 值 |
---|---|---|
處理能力 | 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,可能會省略此專案。 | int |
family | 如果服務有不同的硬體世代,則針對相同的 SKU,則可以在這裡擷取。 | 字串 |
NAME | SKU 的名稱。 例如 - P3。 通常是字母+數位碼 | 需要字串 () |
{1}size{2} | SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 | 字串 |
tier | 如果服務有一個以上的層級,但在PUT上則不需要此欄位,才能由資源提供者實作。 | 'Basic' 'Free' 'Premium' 'Standard' |
Terraform (AzAPI 提供者) 資源定義
workspaces/batchEndpoints/deployments 資源類型可以使用目標作業進行部署:
- 資源群組
如需每個 API 版本中已變更屬性的清單,請參閱 變更記錄檔。
資源格式
若要建立 Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments 資源,請將下列 Terraform 新增至範本。
resource "azapi_resource" "symbolicname" {
type = "Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments@2023-08-01-preview"
name = "string"
location = "string"
parent_id = "string"
tags = {
tagName1 = "tagValue1"
tagName2 = "tagValue2"
}
identity {
type = "string"
identity_ids = []
}
body = jsonencode({
properties = {
codeConfiguration = {
codeId = "string"
scoringScript = "string"
}
compute = "string"
deploymentConfiguration = {
deploymentConfigurationType = "string"
// For remaining properties, see BatchDeploymentConfiguration objects
}
description = "string"
environmentId = "string"
environmentVariables = {
{customized property} = "string"
{customized property} = "string"
}
errorThreshold = int
loggingLevel = "string"
maxConcurrencyPerInstance = int
miniBatchSize = int
model = {
referenceType = "string"
// For remaining properties, see AssetReferenceBase objects
}
outputAction = "string"
outputFileName = "string"
properties = {
{customized property} = "string"
{customized property} = "string"
}
resources = {
instanceCount = int
instanceType = "string"
locations = [
"string"
]
maxInstanceCount = int
properties = {}
}
retrySettings = {
maxRetries = int
timeout = "string"
}
}
sku = {
capacity = int
family = "string"
name = "string"
size = "string"
tier = "string"
}
kind = "string"
})
}
BatchDeploymentConfiguration 物件
設定 deploymentConfigurationType 屬性以指定對象的類型。
針對 PipelineComponent,請使用:
deploymentConfigurationType = "PipelineComponent"
componentId = {
assetId = "string"
referenceType = "string"
}
description = "string"
settings = {
{customized property} = "string"
}
tags = {
{customized property} = "string"
}
AssetReferenceBase 物件
設定 referenceType 屬性以指定物件的類型。
針對 DataPath,請使用:
referenceType = "DataPath"
datastoreId = "string"
path = "string"
針對 [標識符],請使用:
referenceType = "Id"
assetId = "string"
針對 OutputPath,請使用:
referenceType = "OutputPath"
jobId = "string"
path = "string"
屬性值
workspaces/batchEndpoints/deployments
名稱 | 描述 | 值 |
---|---|---|
類型 | 資源類型 | “Microsoft.MachineLearningServices/workspaces/batchEndpoints/deployments@2023-08-01-preview” |
NAME | 資源名稱 | 需要字串 () |
location | 資源所在的地理位置 | 需要字串 () |
parent_id | 此資源父系之資源的標識碼。 | 類型資源的標識碼: batchEndpoints |
tags | 資源標籤。 | 標記名稱和值的字典。 |
sku | 自動調整的 ARM 合約所需的 SKU 詳細數據。 | Sku |
kind | 入口網站/工具/等用來轉譯相同類型資源的不同UX體驗的元數據。 | 字串 |
身分識別 | 受控服務識別 (系統指派和/或使用者指派的身分識別) | ManagedServiceIdentity |
properties | [必要]實體的其他屬性。 | BatchDeploymentProperties (必要) |
ManagedServiceIdentity
名稱 | 描述 | 值 |
---|---|---|
類型 | (允許 SystemAssigned 和 UserAssigned 類型的受控服務識別類型) 。 | “SystemAssigned” “SystemAssigned,UserAssigned” “UserAssigned” (必要) |
identity_ids | 與資源相關聯的使用者指派身分識別集。 userAssignedIdentities 字典索引鍵的格式為 ARM 資源標識符:'/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}。 字典值可以是要求中 ({}) 的空白物件。 | 使用者身分識別標識碼的陣列。 |
UserAssignedIdentities
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | UserAssignedIdentity |
UserAssignedIdentity
此物件不包含部署期間要設定的任何屬性。 所有屬性都是 ReadOnly。
BatchDeploymentProperties
名稱 | 描述 | 值 |
---|---|---|
codeConfiguration | 端點部署的程式代碼組態。 | CodeConfiguration |
計算 | 批次推斷作業的計算目標。 | 字串 |
deploymentConfiguration | 與不同部署類型相關的屬性。 | BatchDeploymentConfiguration |
description | 端點部署的描述。 | 字串 |
environmentId | 端點部署之環境規格的 ARM 資源識別碼。 | 字串 |
environmentVariables | 部署的環境變數組態。 | EndpointDeploymentPropertiesBaseEnvironmentVariables |
errorThreshold | 如果整個輸入的錯誤計數高於此值,則為錯誤臨界值。 批次推斷將會中止。 範圍為 [-1, int。MaxValue]。 針對 FileDataset,此值是檔案失敗的計數。 對於 TabularDataset,此值是記錄失敗的計數。 如果設定為 -1 (下限) ,則會忽略批次推斷期間的所有失敗。 |
int |
loggingLevel | 批次推斷作業的記錄層級。 | “Debug” “Info” 「警告」 |
maxConcurrencyPerInstance | 指出每個實例的平行處理原則數目上限。 | int |
miniBatchSize | 傳遞至每個批次調用的迷你批次大小。 針對 FileDataset,這是每個迷你批次的檔案數目。 對於 TabularDataset,這是每個迷你批次的記錄大小,以位元組為單位。 |
int |
model | 端點部署的模型資產參考。 | AssetReferenceBase |
outputAction | 指出輸出的組織方式。 | “AppendRow” “SummaryOnly” |
outputFileName | append_row輸出動作的自訂輸出檔名。 | 字串 |
properties | 屬性字典。 您可以新增屬性,但無法移除或改變。 | EndpointDeploymentPropertiesBaseProperties |
resources | 指出作業的計算組態。 如果未提供,則會預設為 ResourceConfiguration 中定義的預設值。 |
DeploymentResourceConfiguration |
retrySettings | 重試批次推斷作業的設定。 如果未提供,則會預設為 BatchRetrySettings 中定義的預設值。 |
BatchRetrySettings |
CodeConfiguration
名稱 | 描述 | 值 |
---|---|---|
codeId | 程式代碼資產的 ARM 資源識別碼。 | 字串 |
scoringScript | [必要]在啟動時執行的腳本。 例如 “score.py” | 需要字串 () 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] |
BatchDeploymentConfiguration
名稱 | 描述 | 值 |
---|---|---|
deploymentConfigurationType | 設定物件類型 | PipelineComponent (必要) |
BatchPipelineComponentDeploymentConfiguration
名稱 | 描述 | 值 |
---|---|---|
deploymentConfigurationType | [必要]部署的類型 | “PipelineComponent” (必要) |
componentId | 要執行的元件 ARM 識別碼。 | IdAssetReference |
description | 將套用至作業的描述。 | 字串 |
設定 | 管線作業的運行時間設定。 | BatchPipelineComponentDeploymentConfigurationSetting... |
tags | 將套用至作業的標記。 | 物件 (object) |
IdAssetReference
名稱 | 描述 | 值 |
---|---|---|
assetId | [必要]資產的 ARM 資源識別碼。 | 字串 (必要) 約束: 最小長度 = 1 模式 = [a-zA-Z0-9_] |
referenceType | [必要]指定資產參考的類型。 | “DataPath” “Id” 必要) 的 「OutputPath」 ( |
BatchPipelineComponentDeploymentConfigurationSetting...
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 字串 |
EndpointDeploymentPropertiesBaseEnvironmentVariables
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 字串 | |
{自定義屬性} | 字串 |
AssetReferenceBase
名稱 | 描述 | 值 |
---|---|---|
referenceType | 設定物件類型 | 資料路徑 Id 需要 outputPath () |
DataPathAssetReference
名稱 | 描述 | 值 |
---|---|---|
referenceType | [必要]指定資產參考的類型。 | ) 所需的 「DataPath」 ( |
datastoreId | 資產所在數據存放區的 ARM 資源識別碼。 | 字串 |
path | 數據存放區中檔案/目錄的路徑。 | 字串 |
OutputPathAssetReference
名稱 | 描述 | 值 |
---|---|---|
referenceType | [必要]指定資產參考的類型。 | 必要) 的 「OutputPath」 ( |
jobId | 作業的 ARM 資源識別碼。 | 字串 |
path | 作業輸出中檔案/目錄的路徑。 | 字串 |
EndpointDeploymentPropertiesBaseProperties
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | 字串 | |
{自定義屬性} | 字串 |
DeploymentResourceConfiguration
名稱 | 描述 | 值 |
---|---|---|
instanceCount | 計算目標所使用的選用執行個體或節點數目。 | int |
instanceType | 計算目標所支持的選擇性 VM 類型。 | 字串 |
位置 | 作業可執行的位置。 | string[] |
maxInstanceCount | 計算目標要使用的選擇性實例或節點數目上限。 為了搭配彈性定型使用,PyTorch 散發類型目前僅支援。 |
int |
properties | 其他屬性包。 | ResourceConfigurationProperties |
ResourceConfigurationProperties
名稱 | 描述 | 值 |
---|---|---|
{自定義屬性} | ||
{自定義屬性} |
BatchRetrySettings
名稱 | 描述 | 值 |
---|---|---|
maxRetries | 迷你批次的重試計數上限 | int |
timeout | 迷你批次的叫用逾時,格式為 ISO 8601。 | 字串 |
SKU
名稱 | 描述 | 值 |
---|---|---|
處理能力 | 如果 SKU 支援相應放大/縮小,則應該包含容量整數。 如果資源無法相應放大/縮小,則可能會省略此專案。 | int |
family | 如果服務有不同層代的硬體,則針對相同的SKU,則可以在這裡擷取。 | 字串 |
NAME | SKU 的名稱。 例如 - P3。 通常是字母+數字代碼 | 字串 (必要) |
{1}size{2} | SKU 大小。 當名稱欄位是階層和其他一些值的組合時,這會是獨立程序代碼。 | 字串 |
tier | 如果服務有多個層級,但 PUT 上不需要,則資源提供者必須實作此字段。 | "Basic" “Free” “Premium” “Standard” |
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應