QuotaOperationsExtensions.Update 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.
Update the quota limit for a specific resource to the specified value:
- 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.
- 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 Update (this Microsoft.Azure.Management.Quota.IQuotaOperations operations, string resourceName, string scope, Microsoft.Azure.Management.Quota.Models.QuotaProperties properties = default);
static member Update : Microsoft.Azure.Management.Quota.IQuotaOperations * string * string * Microsoft.Azure.Management.Quota.Models.QuotaProperties -> Microsoft.Azure.Management.Quota.Models.CurrentQuotaLimitBase
<Extension()>
Public Function Update (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
Azure SDK for .NET