Share via


ComputePoliciesOperationsExtensions.CreateOrUpdate 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 Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy CreateOrUpdate(this Microsoft.Azure.Management.DataLake.Analytics.IComputePoliciesOperations operations, string resourceGroupName, string accountName, string computePolicyName, Microsoft.Azure.Management.DataLake.Analytics.Models.CreateOrUpdateComputePolicyParameters parameters);
static member CreateOrUpdate : Microsoft.Azure.Management.DataLake.Analytics.IComputePoliciesOperations * string * string * string * Microsoft.Azure.Management.DataLake.Analytics.Models.CreateOrUpdateComputePolicyParameters -> Microsoft.Azure.Management.DataLake.Analytics.Models.ComputePolicy
<Extension()>
Public Function CreateOrUpdate (operations As IComputePoliciesOperations, resourceGroupName As String, accountName As String, computePolicyName As String, parameters As CreateOrUpdateComputePolicyParameters) As 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.

Returns

Applies to