Share via


ExtensionsOperationsExtensions.EnableMonitoringAsync Method

Definition

Enables the Operations Management Suite (OMS) on the HDInsight cluster.

public static System.Threading.Tasks.Task EnableMonitoringAsync (this Microsoft.Azure.Management.HDInsight.IExtensionsOperations operations, string resourceGroupName, string clusterName, Microsoft.Azure.Management.HDInsight.Models.ClusterMonitoringRequest parameters, System.Threading.CancellationToken cancellationToken = default);
static member EnableMonitoringAsync : Microsoft.Azure.Management.HDInsight.IExtensionsOperations * string * string * Microsoft.Azure.Management.HDInsight.Models.ClusterMonitoringRequest * System.Threading.CancellationToken -> System.Threading.Tasks.Task
<Extension()>
Public Function EnableMonitoringAsync (operations As IExtensionsOperations, resourceGroupName As String, clusterName As String, parameters As ClusterMonitoringRequest, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

operations
IExtensionsOperations

The operations group for this extension method.

resourceGroupName
String

The name of the resource group.

clusterName
String

The name of the cluster.

parameters
ClusterMonitoringRequest

The Operations Management Suite (OMS) workspace parameters.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to