簡體   English   中英

Azure 機器學習計算二頭肌模板命名錯誤

[英]Azure machine learning compute bicep template naming error

我有一個名為 machine-learning.bicep 的文件,其中包含機器學習工作區和計算資源(我想將這兩個資源放在一起)。 為計算資源“不正確的段長度”獲取以下命名錯誤。 嵌套資源類型必須具有與其資源名稱相同的段數。 根資源類型的段長度必須比其資源名稱大一。 我還刪除了計算名稱中的集群以匹配段長度,但仍然出現錯誤

resource machineLearning 'Microsoft.MachineLearningServices/workspaces@2022-01-01-preview' = { name: 'mlw-${project}-${env}' location: loc tags: tags identity: { type: 'SystemAssigned' } properties: { // dependent resources applicationInsights: appInsights.id containerRegistry: containerRegistry.id keyVault: keyVaultId storageAccount: storage.id } } resource amlci 'Microsoft.MachineLearningServices/workspaces/computes@2020-09-01-preview' = { name: 'mlw-${project}-${env}-cluster' location: loc properties: { computeType: 'AmlCompute' properties: { vmSize: 'Standard_DS3_v2' subnet: json('null') osType: 'Linux' scaleSettings: { maxNodeCount: 5 minNodeCount: 0 } } } }

在這里,您缺少 ML 工作區和計算資源之間的父/子關系。

如果您在計算資源上添加parent屬性,它應該可以工作:

 resource amlci 'Microsoft.MachineLearningServices/workspaces/computes@2020-09-01-preview' = { name: 'mlw-${project}-${env}-cluster' parent: machineLearning... }

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM