尝试使用 bicep 部署批处理服务池时出现 vmSize 错误

I am getting a vmSize error when trying to deploy a batch service pool using bicep

我有以下二头肌代码:

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 上,但我找不到关于该值应该是什么的具体示例。

CloudServiceConfiguration 池是 deprecated. Please retry using VirtualMachineConfiguration