Share via


QuotaExtensions.CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync Method

Definition

Request to assign quota from group quota to a specific Subscription. The assign GroupQuota to subscriptions or reduce the quota allocated to subscription to give back the unused quota ( quota >= usages) to the groupQuota. So, this API can be used to assign Quota to subscriptions and assign back unused quota to group quota, which can be assigned to another subscriptions in the GroupQuota.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocationRequests/{resourceName}
  • Operation Id: GroupQuotaSubscriptionAllocationRequest_CreateOrUpdate
  • Default Api Version: 2023-06-01-preview
  • Resource: QuotaAllocationRequestStatusResource
public static System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource>> CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default);
static member CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * Azure.WaitUntil * string * string * string * string * Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource>>
<Extension()>
Public Function CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync (managementGroupResource As ManagementGroupResource, waitUntil As WaitUntil, subscriptionId As String, groupQuotaName As String, resourceProviderName As String, resourceName As String, data As QuotaAllocationRequestStatusData, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ArmOperation(Of QuotaAllocationRequestStatusResource))

Parameters

managementGroupResource
ManagementGroupResource

The ManagementGroupResource instance the method will execute against.

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.

subscriptionId
String

The ID of the target subscription. The value must be an UUID.

groupQuotaName
String

The GroupQuota name. The name should be unique for the provided context tenantId/MgId.

resourceProviderName
String

The resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.

resourceName
String

Resource name.

data
QuotaAllocationRequestStatusData

Quota requests payload.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

subscriptionId, groupQuotaName, resourceProviderName or resourceName is an empty string, and was expected to be non-empty.

managementGroupResource, subscriptionId, groupQuotaName, resourceProviderName, resourceName or data is null.

Applies to