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

Microsoft.OperationalInsights workspaces/storageInsightConfigs

Bicep 资源定义

workspaces/storageInsightConfigs 资源类型可以部署到:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

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

resource symbolicname 'Microsoft.OperationalInsights/workspaces/storageInsightConfigs@2020-08-01' = {
  name: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  parent: resourceSymbolicName
  eTag: 'string'
  properties: {
    containers: [
      'string'
    ]
    storageAccount: {
      id: 'string'
      key: 'string'
    }
    tables: [
      'string'
    ]
  }
}

属性值

workspaces/storageInsightConfigs

名称 说明 Value
name 资源名称

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

有关详细信息,请参阅 父资源之外的子资源
类型为的资源的符号名称: 工作区
eTag 存储见解的 ETag。 string
properties 存储见解属性。 StorageInsightProperties

StorageInsightProperties

名称 说明 Value
containers 工作区应读取的 Blob 容器的名称 string[]
storageAccount 存储帐户连接详细信息 需要 storageAccount ()
工作区应读取的 Azure 表的名称 string[]

StorageAccount

名称 说明 Value
id 存储帐户资源的 Azure 资源管理器 ID。 字符串 (必需)
key 存储帐户密钥。 字符串 (必需)

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
将现有存储帐户添加到 OMS

部署到 Azure
此模板将存储帐户添加到 OMS Log Analytics 中,并选择多个表进行引入。

ARM 模板资源定义

workspaces/storageInsightConfigs 资源类型可以部署到:

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

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

{
  "type": "Microsoft.OperationalInsights/workspaces/storageInsightConfigs",
  "apiVersion": "2020-08-01",
  "name": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "eTag": "string",
  "properties": {
    "containers": [ "string" ],
    "storageAccount": {
      "id": "string",
      "key": "string"
    },
    "tables": [ "string" ]
  }
}

属性值

workspaces/storageInsightConfigs

名称 说明 Value
type 资源类型 'Microsoft.OperationalInsights/workspaces/storageInsightConfigs'
apiVersion 资源 API 版本 '2020-08-01'
name 资源名称

了解如何在 JSON ARM 模板中设置子资源的名称和类型。
字符串 (必需)
标记 资源标记。 标记名称和值的字典。 请参阅 模板中的标记
eTag 存储见解的 ETag。 string
properties 存储见解属性。 StorageInsightProperties

StorageInsightProperties

名称 说明 Value
containers 工作区应读取的 Blob 容器的名称 string[]
storageAccount 存储帐户连接详细信息 需要 storageAccount ()
工作区应读取的 Azure 表的名称 string[]

StorageAccount

名称 说明 Value
id 存储帐户资源的 Azure 资源管理器 ID。 字符串 (必需)
key 存储帐户密钥。 字符串 (必需)

快速入门模板

以下快速入门模板部署此资源类型。

模板 说明
将现有存储帐户添加到 OMS

部署到 Azure
此模板将存储帐户添加到 OMS Log Analytics 中,并选择多个表进行引入。

Terraform (AzAPI 提供程序) 资源定义

workspaces/storageInsightConfigs 资源类型可以部署到:

  • 资源组

有关每个 API 版本中已更改属性的列表,请参阅 更改日志

资源格式

若要创建 Microsoft.OperationalInsights/workspaces/storageInsightConfigs 资源,请将以下 Terraform 添加到模板。

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.OperationalInsights/workspaces/storageInsightConfigs@2020-08-01"
  name = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      containers = [
        "string"
      ]
      storageAccount = {
        id = "string"
        key = "string"
      }
      tables = [
        "string"
      ]
    }
    eTag = "string"
  })
}

属性值

workspaces/storageInsightConfigs

名称 说明 Value
type 资源类型 “Microsoft.OperationalInsights/workspaces/storageInsightConfigs@2020-08-01”
name 资源名称 字符串 (必需)
parent_id 此资源的父资源的 ID。 类型为的资源的 ID: 工作区
标记 资源标记。 标记名称和值的字典。
eTag 存储见解的 ETag。 string
properties 存储见解属性。 StorageInsightProperties

StorageInsightProperties

名称 说明 Value
containers 工作区应读取的 Blob 容器的名称 string[]
storageAccount 存储帐户连接详细信息 需要 storageAccount ()
工作区应读取的 Azure 表的名称 string[]

StorageAccount

名称 说明 Value
id 存储帐户资源的 Azure 资源管理器 ID。 字符串 (必需)
key 存储帐户密钥。 字符串 (必需)