MockableQuotaManagementGroupResource.CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync 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.
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 virtual System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource>> CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync (Azure.WaitUntil waitUntil, string subscriptionId, string groupQuotaName, string resourceProviderName, string resourceName, Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData data, System.Threading.CancellationToken cancellationToken = default);
abstract member CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync : Azure.WaitUntil * string * string * string * string * Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource>>
override this.CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync : Azure.WaitUntil * string * string * string * string * Azure.ResourceManager.Quota.QuotaAllocationRequestStatusData * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.ResourceManager.ArmOperation<Azure.ResourceManager.Quota.QuotaAllocationRequestStatusResource>>
Public Overridable Function CreateOrUpdateGroupQuotaSubscriptionAllocationRequestAsync (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
- 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.
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.
subscriptionId
, groupQuotaName
, resourceProviderName
, resourceName
or data
is null.
Applies to
Azure SDK for .NET