DataCollectionRuleAssociationsOperationsExtensions.CreateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
The payload
- cancellationToken
- CancellationToken
The cancellation token.
Returns
Applies to
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET