你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Microsoft.OperationalInsights workspaces/tables 2021-06-01

工作区/表资源类型可以部署到: 资源组

若要了解资源组部署,请参阅 BicepARM 模板

模板格式

若要创建 Microsoft.OperationalInsights/workspaces/tables 资源,请将以下 Bicep 或 JSON 添加到模板。

resource symbolicname 'Microsoft.OperationalInsights/workspaces/tables@2021-06-01' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    isTroubleshootEnabled: bool
    retentionInDays: int
  }
}

属性值

workspaces/tables

名称 说明 Value
type 资源类型

对于 Bicep,请在 资源声明中设置此值。
“Microsoft.OperationalInsights/workspaces/tables”
apiVersion 资源 API 版本

对于 Bicep,请在 资源声明中设置此值。
'2021-06-01'
name 资源名称

了解如何在 BicepJSON ARM 模板中为子资源设置名称和类型。
字符串 (必需)
父级 (parent) 在 Bicep 中,可以为子资源指定父资源。 仅当子资源在父资源外部声明时,才需要添加此属性。

有关详细信息,请参阅 父资源之外的子资源
类型为资源的符号名称: 工作区
properties 表属性。 TableProperties

TableProperties

名称 说明 Value
isTroubleshootEnabled 启用或禁用此表的故障排除。 bool
retentionInDays 数据表数据保留期(天),介于 7 到 730 之间。 将此属性设置为 null 会将表的数据保留期默认为工作区保留期。 int