IWithLogAnalyticsBeta.WithLogAnalytics Method

Definition

Overloads

WithLogAnalytics(String, String)

Specifies the log analytics workspace to use for the container group.

WithLogAnalytics(String, String, LogAnalyticsLogType, IDictionary<String,String>)

Specifies the log analytics workspace with optional add-ons for the container group.

WithLogAnalytics(String, String)

Specifies the log analytics workspace to use for the container group.

public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate WithLogAnalytics (string workspaceId, string workspaceKey);
abstract member WithLogAnalytics : string * string -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate
Public Function WithLogAnalytics (workspaceId As String, workspaceKey As String) As IWithCreate

Parameters

workspaceId
String

The id of the previously-created log analytics workspace.

workspaceKey
String

The key of the previously-created log analytics workspace.

Returns

Applies to

WithLogAnalytics(String, String, LogAnalyticsLogType, IDictionary<String,String>)

Specifies the log analytics workspace with optional add-ons for the container group.

public Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate WithLogAnalytics (string workspaceId, string workspaceKey, Microsoft.Azure.Management.ContainerInstance.Fluent.Models.LogAnalyticsLogType logType, System.Collections.Generic.IDictionary<string,string> metadata);
abstract member WithLogAnalytics : string * string * Microsoft.Azure.Management.ContainerInstance.Fluent.Models.LogAnalyticsLogType * System.Collections.Generic.IDictionary<string, string> -> Microsoft.Azure.Management.ContainerInstance.Fluent.ContainerGroup.Definition.IWithCreate
Public Function WithLogAnalytics (workspaceId As String, workspaceKey As String, logType As LogAnalyticsLogType, metadata As IDictionary(Of String, String)) As IWithCreate

Parameters

workspaceId
String

The id of the previously-created log analytics workspace.

workspaceKey
String

The key of the previously-created log analytics workspace.

logType
LogAnalyticsLogType

The log type to be used. Possible values include: 'ContainerInsights', 'ContainerInstanceLogs'.

metadata
IDictionary<String,String>

The metadata for log analytics.

Returns

Applies to