DataCollectionRuleAssociationsOperationsExtensions.CreateAsync Method

Definition

Creates or updates an association.

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.DataCollectionRuleAssociationProxyOnlyResource> CreateAsync (this Microsoft.Azure.Management.Monitor.IDataCollectionRuleAssociationsOperations operations, string resourceUri, string associationName, Microsoft.Azure.Management.Monitor.Models.DataCollectionRuleAssociationProxyOnlyResource body = default, System.Threading.CancellationToken cancellationToken = default);
static member CreateAsync : Microsoft.Azure.Management.Monitor.IDataCollectionRuleAssociationsOperations * string * string * Microsoft.Azure.Management.Monitor.Models.DataCollectionRuleAssociationProxyOnlyResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Monitor.Models.DataCollectionRuleAssociationProxyOnlyResource>
<Extension()>
Public Function CreateAsync (operations As IDataCollectionRuleAssociationsOperations, resourceUri As String, associationName As String, Optional body As DataCollectionRuleAssociationProxyOnlyResource = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of DataCollectionRuleAssociationProxyOnlyResource)

Parameters

operations
IDataCollectionRuleAssociationsOperations

The operations group for this extension method.

resourceUri
String

The identifier of the resource.

associationName
String

The name of the association. The name is case insensitive.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to