Storage Insights - Create Or Update

Create or update a storage insight.

PUT https://management.azure.com/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/storageInsightConfigs/{storageInsightName}?api-version=2015-03-20

URI Parameters

Name In Required Type Description
resourceGroupName
path True

string

The Resource Group name.

Regex pattern: ^[-\w\._\(\)]+$

storageInsightName
path True

string

Name of the storageInsightsConfigs resource

subscriptionId
path True

string

The Subscription ID.

workspaceName
path True

string

The Log Analytics Workspace name.

api-version
query True

string

The client API version.

Request Body

Name Required Type Description
properties.storageAccount True

StorageAccount

The storage account connection details

eTag

string

The ETag of the storage insight.

properties.containers

string[]

The names of the blob containers that the workspace should read

properties.tables

string[]

The names of the Azure tables that the workspace should read

tags

object

Resource tags

Responses

Name Type Description
200 OK

StorageInsight

OK response definition.

201 Created

StorageInsight

Created response definition.

Security

azure_auth

Azure Active Directory OAuth2 Flow

Type: oauth2
Flow: implicit
Authorization URL: https://login.microsoftonline.com/common/oauth2/authorize

Scopes

Name Description
user_impersonation impersonate your user account

Examples

StorageInsightsCreate

Sample Request

PUT https://management.azure.com/subscriptions/00000000-0000-0000-0000-00000000000/resourcegroups/OIAutoRest5123/providers/Microsoft.OperationalInsights/workspaces/aztest5048/storageInsightConfigs/AzTestSI1110?api-version=2015-03-20

{
  "properties": {
    "containers": [
      "wad-iis-logfiles"
    ],
    "tables": [
      "WADWindowsEventLogsTable",
      "LinuxSyslogVer2v0"
    ],
    "storageAccount": {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945",
      "key": "1234"
    }
  }
}

Sample Response

{
  "properties": {
    "containers": [
      "wad-iis-logfiles"
    ],
    "tables": [
      "WADWindowsEventLogsTable",
      "LinuxSyslogVer2v0"
    ],
    "storageAccount": {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945",
      "key": "Storage Key"
    },
    "status": {
      "state": "OK"
    }
  },
  "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6987/providers/microsoft.operationalinsights/workspaces/aztest5048/storageinsightconfigs/AzTestSI1110",
  "name": "AzTestSI1110",
  "type": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs"
}
{
  "properties": {
    "containers": [
      "wad-iis-logfiles"
    ],
    "tables": [
      "WADWindowsEventLogsTable",
      "LinuxSyslogVer2v0"
    ],
    "storageAccount": {
      "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/OIAutoRest6987/providers/microsoft.storage/storageaccounts/AzTestFakeSA9945",
      "key": "Storage Key"
    },
    "status": {
      "state": "OK"
    }
  },
  "id": "/subscriptions/00000000-0000-0000-0000-000000000005/resourcegroups/oiautorest6987/providers/microsoft.operationalinsights/workspaces/aztest5048/storageinsightconfigs/AzTestSI1110",
  "name": "AzTestSI1110",
  "type": "Microsoft.OperationalInsights/workspaces/storageinsightconfigs"
}

Definitions

Name Description
StorageAccount

Describes a storage account connection.

StorageInsight

The top level storage insight resource container.

StorageInsightState

The state of the storage insight connection to the workspace

StorageInsightStatus

The status of the storage insight.

StorageAccount

Describes a storage account connection.

Name Type Description
id

string

The Azure Resource Manager ID of the storage account resource.

key

string

The storage account key.

StorageInsight

The top level storage insight resource container.

Name Type Description
eTag

string

The ETag of the storage insight.

id

string

Resource ID.

name

string

Resource name.

properties.containers

string[]

The names of the blob containers that the workspace should read

properties.status

StorageInsightStatus

The status of the storage insight

properties.storageAccount

StorageAccount

The storage account connection details

properties.tables

string[]

The names of the Azure tables that the workspace should read

tags

object

Resource tags

type

string

Resource type.

StorageInsightState

The state of the storage insight connection to the workspace

Name Type Description
ERROR

string

OK

string

StorageInsightStatus

The status of the storage insight.

Name Type Description
description

string

Description of the state of the storage insight.

state

StorageInsightState

The state of the storage insight connection to the workspace