Udostępnij za pośrednictwem


QuotaOperationsExtensions.BeginCreateOrUpdate Method

Definition

Create or update the quota limit for the specified resource with the requested value. To update the quota, follow these steps:

  1. Use the GET operation for quotas and usages to determine how much quota remains 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 Microsoft.Azure.Management.Quota.Models.CurrentQuotaLimitBase BeginCreateOrUpdate (this Microsoft.Azure.Management.Quota.IQuotaOperations operations, string resourceName, string scope, Microsoft.Azure.Management.Quota.Models.QuotaProperties properties = default);
static member BeginCreateOrUpdate : Microsoft.Azure.Management.Quota.IQuotaOperations * string * string * Microsoft.Azure.Management.Quota.Models.QuotaProperties -> Microsoft.Azure.Management.Quota.Models.CurrentQuotaLimitBase
<Extension()>
Public Function BeginCreateOrUpdate (operations As IQuotaOperations, resourceName As String, scope As String, Optional properties As QuotaProperties = Nothing) As 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.

Returns

Applies to