You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Azure Storage Accounts Bicep部署失败:Standard_LRS SKU参数异常

问题分析与解决方案

你的部署错误核心是存储账户的kind和sku不匹配,错误信息里出现的SKU列表是虚拟机的SKU(属于错误提示混淆,无需关注),以下是具体修正方案:

方案1:使用通用v2存储账户(匹配Standard_LRS)

Standard_LRS属于标准存储SKU,对应的存储账户类型应为StorageV2(通用v2),修改后的Bicep代码:

resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = {
  name: 'ifmsstorageaccount'
  location: location
  sku: {
    name: 'Standard_LRS'
  }
  kind: 'StorageV2'
  properties: {
    accessTier: 'Hot'
  }
}

方案2:使用块Blob存储账户(匹配Premium SKU)

如果确实需要BlockBlobStorage类型的存储账户,只能搭配Premium系列SKU,比如Premium_LRS,修改后的Bicep代码:

resource storageAccount 'Microsoft.Storage/storageAccounts@2022-05-01' = {
  name: 'ifmsstorageaccount'
  location: location
  sku: {
    name: 'Premium_LRS'
  }
  kind: 'BlockBlobStorage'
  properties: {
    accessTier: 'Hot'
  }
}

关键规则说明

  • 通用v2存储账户(StorageV2):支持所有Standard系列SKU(LRS/GRS/ZRS等)
  • 块Blob存储账户(BlockBlobStorage):仅支持Premium系列SKU,不兼容Standard系列

内容的提问来源于stack exchange,提问作者Makhele Sabata

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.04 11:56:45