QuotaOperationsExtensions.CreateOrUpdateAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Create or update the quota (service limits) of a resource to the requested value. Steps:
Make the Get request to get the quota information for specific resource.
To increase the quota, update the limit field in the response from Get request to new value.
Submit the JSON to the quota request API to update the quota. The Create quota request may be constructed as follows. The PUT operation can be used to update the quota.
public static System.Threading.Tasks.Task<object> CreateOrUpdateAsync (this Microsoft.Azure.Management.Reservations.IQuotaOperations operations, string subscriptionId, string providerId, string location, string resourceName, Microsoft.Azure.Management.Reservations.Models.CurrentQuotaLimitBase createQuotaRequest, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateAsync : Microsoft.Azure.Management.Reservations.IQuotaOperations * string * string * string * string * Microsoft.Azure.Management.Reservations.Models.CurrentQuotaLimitBase * System.Threading.CancellationToken -> System.Threading.Tasks.Task<obj>
<Extension()>
Public Function CreateOrUpdateAsync (operations As IQuotaOperations, subscriptionId As String, providerId As String, location As String, resourceName As String, createQuotaRequest As CurrentQuotaLimitBase, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Object)
Parameters
- operations
- IQuotaOperations
The operations group for this extension method.
- subscriptionId
- String
Azure subscription ID.
- providerId
- String
Azure resource provider ID.
- location
- String
Azure region.
- resourceName
- String
The resource name for a resource provider, such as SKU name for Microsoft.Compute, Sku or TotalLowPriorityCores for Microsoft.MachineLearningServices
- createQuotaRequest
- CurrentQuotaLimitBase
Quota requests payload.
- cancellationToken
- CancellationToken
The cancellation token.