Sdílet prostřednictvím


DataLakeAnalyticsComputePolicyCollection.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

  • Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataLakeAnalytics/accounts/{accountName}/computePolicies/{computePolicyName}
  • Operation Id: ComputePolicies_CreateOrUpdate
public virtual Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsComputePolicyResource> CreateOrUpdate (Azure.WaitUntil waitUntil, string computePolicyName, Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsComputePolicyCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsComputePolicyCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsComputePolicyResource>
override this.CreateOrUpdate : Azure.WaitUntil * string * Azure.ResourceManager.DataLakeAnalytics.Models.DataLakeAnalyticsComputePolicyCreateOrUpdateContent * System.Threading.CancellationToken -> Azure.ResourceManager.ArmOperation<Azure.ResourceManager.DataLakeAnalytics.DataLakeAnalyticsComputePolicyResource>
Public Overridable Function CreateOrUpdate (waitUntil As WaitUntil, computePolicyName As String, content As DataLakeAnalyticsComputePolicyCreateOrUpdateContent, Optional cancellationToken As CancellationToken = Nothing) As ArmOperation(Of DataLakeAnalyticsComputePolicyResource)

Parameters

waitUntil
WaitUntil

Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.

computePolicyName
String

The name of the compute policy to create or update.

content
DataLakeAnalyticsComputePolicyCreateOrUpdateContent

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
CancellationToken

The cancellation token to use.

Returns

Exceptions

computePolicyName is an empty string, and was expected to be non-empty.

computePolicyName or content is null.

Applies to