QuotaOperationsExtensions.BeginUpdateAsync Method

Definition

Update the quota limit for a specific resource to the specified value:

  1. Use the Usages-GET and Quota-GET operations to determine the remaining quota for the specific resource and to calculate the new quota limit. These steps are detailed in this example.
  2. Use this PUT operation to update the quota limit. Please check the URI in location header for the detailed status of the request.
public static System.Threading.Tasks.Task<Microsoft.Azure.Management.Quota.Models.CurrentQuotaLimitBase> BeginUpdateAsync (this Microsoft.Azure.Management.Quota.IQuotaOperations operations, string resourceName, string scope, Microsoft.Azure.Management.Quota.Models.QuotaProperties properties = default, System.Threading.CancellationToken cancellationToken = default);
static member BeginUpdateAsync : Microsoft.Azure.Management.Quota.IQuotaOperations * string * string * Microsoft.Azure.Management.Quota.Models.QuotaProperties * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Azure.Management.Quota.Models.CurrentQuotaLimitBase>
<Extension()>
Public Function BeginUpdateAsync (operations As IQuotaOperations, resourceName As String, scope As String, Optional properties As QuotaProperties = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of CurrentQuotaLimitBase)

Parameters

operations
IQuotaOperations

The operations group for this extension method.

resourceName
String

Resource name for a given resource provider. For example:

  • SKU name for Microsoft.Compute
  • SKU or TotalLowPriorityCores for Microsoft.MachineLearningServices For Microsoft.Network PublicIPAddresses.
scope
String

The target Azure resource URI. For example, /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/qms-test/providers/Microsoft.Batch/batchAccounts/testAccount/. This is the target Azure resource URI for the List GET operation. If a {resourceName} is added after /quotas, then it's the target Azure resource URI in the GET operation for the specific resource.

properties
QuotaProperties

Quota properties for the specified resource, based on the API called, Quotas or Usages.

cancellationToken
CancellationToken

The cancellation token.

Returns

Applies to