Delen via


QuotaExtensions.GetSubscriptionQuotaAllocationsList Method

Definition

Gets all the quota allocated to a subscription for the specified resource provider and location for resource names passed in $filter=resourceName eq {SKU}. This will include the GroupQuota and total quota allocated to the subscription. Only the Group quota allocated to the subscription can be allocated back to the MG Group Quota.

  • Request Path: /providers/Microsoft.Management/managementGroups/{managementGroupId}/subscriptions/{subscriptionId}/providers/Microsoft.Quota/groupQuotas/{groupQuotaName}/resourceProviders/{resourceProviderName}/quotaAllocations/{location}
  • Operation Id: GroupQuotaSubscriptionAllocation_List
  • Default Api Version: 2024-12-18-preview
  • Resource: SubscriptionQuotaAllocationsListResource
public static Azure.Response<Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListResource> GetSubscriptionQuotaAllocationsList (this Azure.ResourceManager.ManagementGroups.ManagementGroupResource managementGroupResource, string subscriptionId, string groupQuotaName, string resourceProviderName, Azure.Core.AzureLocation location, System.Threading.CancellationToken cancellationToken = default);
static member GetSubscriptionQuotaAllocationsList : Azure.ResourceManager.ManagementGroups.ManagementGroupResource * string * string * string * Azure.Core.AzureLocation * System.Threading.CancellationToken -> Azure.Response<Azure.ResourceManager.Quota.SubscriptionQuotaAllocationsListResource>
<Extension()>
Public Function GetSubscriptionQuotaAllocationsList (managementGroupResource As ManagementGroupResource, subscriptionId As String, groupQuotaName As String, resourceProviderName As String, location As AzureLocation, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SubscriptionQuotaAllocationsListResource)

Parameters

managementGroupResource
ManagementGroupResource

The ManagementGroupResource instance the method will execute against.

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.

location
AzureLocation

The name of the Azure region.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Exceptions

managementGroupResource, subscriptionId, groupQuotaName or resourceProviderName is null.

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

Applies to