Share via


LinkedStorageAccountsOperationsExtensions.CreateOrUpdateAsync Method

Definition

Create or Update a link relation between current workspace and a group of storage accounts of a specific data source type.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.OperationalInsights.Models.LinkedStorageAccountsResource> CreateOrUpdateAsync (this Microsoft.Azure.Management.OperationalInsights.ILinkedStorageAccountsOperations operations, string resourceGroupName, string workspaceName, Microsoft.Azure.Management.OperationalInsights.Models.DataSourceType dataSourceType, System.Collections.Generic.IList<string> storageAccountIds = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.OperationalInsights.ILinkedStorageAccountsOperations * string * string * Microsoft.Azure.Management.OperationalInsights.Models.DataSourceType * System.Collections.Generic.IList<string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.OperationalInsights.Models.LinkedStorageAccountsResource>
<Extension()>
Public Function CreateOrUpdateAsync (operations As ILinkedStorageAccountsOperations, resourceGroupName As String, workspaceName As String, dataSourceType As DataSourceType, Optional storageAccountIds As IList(Of String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of LinkedStorageAccountsResource)

Parameters

operations
ILinkedStorageAccountsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group. The name is case insensitive.

workspaceName
String

The name of the workspace.

dataSourceType
DataSourceType

Linked storage accounts type. Possible values include: 'CustomLogs', 'AzureWatson', 'Query', 'Alerts'

storageAccountIds
IList<String>

Linked storage accounts resources ids.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to