【问题标题】:I am getting a vmSize error when trying to deploy a batch service pool using bicep尝试使用二头肌部署批处理服务池时出现 vmSize 错误
【发布时间】:2021-12-07 10:26:02
【问题描述】:

我有以下二头肌代码:

resource pool 'Microsoft.Batch/batchAccounts/pools@2021-06-01' = {
  name: '${bs.name}/run-python'
  properties: {
    scaleSettings: {
      fixedScale: {
        nodeDeallocationOption: 'TaskCompletion'
        targetDedicatedNodes: 1
      }
    }
    deploymentConfiguration: {
      cloudServiceConfiguration: {
        osFamily: '6'
      }
    }
    vmSize: 'standard_A1_v2'
    startTask: {
      commandLine: 'cmd /c "pip install azure-storage-blob pandas"'
      userIdentity: {
        autoUser: {
          elevationLevel: 'NonAdmin'
          scope: 'Pool'
        }
      }
      waitForSuccess: true
    }
  }
  dependsOn: [
    bs
  ]
}

我尝试为我的批处理服务创建一个池,但是当我尝试部署它时,我收到以下错误:

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"PropertyName","message":"vmSize"}]}

所以我认为问题出在 vmSize 上,但我找不到具体的例子来说明值应该是什么。

【问题讨论】:

    标签: azure-batch azure-bicep


    【解决方案1】:

    CloudServiceConfiguration 池为deprecated。请使用VirtualMachineConfiguration重试。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-12-28
      • 2019-04-01
      • 2014-01-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多