Share via


ComputePoliciesOperationsExtensions.CreateOrUpdateAsync Method

Definition

Creates or updates the specified compute policy. During update, the compute policy with the specified name will be replaced with this new compute policy. An account supports, at most, 50 policies

public static System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy> CreateOrUpdateAsync(this Microsoft.Azure.Management.DataLake.Analytics.IComputePoliciesOperations operations, string resourceGroupName, string accountName, string computePolicyName, Microsoft.Azure.Management.DataLake.Analytics.Models.CreateOrUpdateComputePolicyParameters parameters, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.DataLake.Analytics.IComputePoliciesOperations * string * string * string * Microsoft.Azure.Management.DataLake.Analytics.Models.CreateOrUpdateComputePolicyParameters * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IComputePoliciesOperations, resourceGroupName As String, accountName As String, computePolicyName As String, parameters As CreateOrUpdateComputePolicyParameters, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ComputePolicy)

Parameters

operations
IComputePoliciesOperations

The operations group for this extension method.

resourceGroupName
System.String

The name of the Azure resource group.

accountName
System.String

The name of the Data Lake Analytics account.

computePolicyName
System.String

The name of the compute policy to create or update.

parameters
CreateOrUpdateComputePolicyParameters

Parameters supplied to create or update the compute policy. The max degree of parallelism per job property, min priority per job property, or both must be present.

cancellationToken
System.Threading.CancellationToken

The cancellation token.

Returns

System.Threading.Tasks.Task<ComputePolicy>

Applies to