Skip to main content

group_quota_subscription_allocation_requests

Creates, updates, deletes, gets or lists a group_quota_subscription_allocation_requests resource.

Overview

Namegroup_quota_subscription_allocation_requests
TypeResource
Idazure.quota.group_quota_subscription_allocation_requests

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
propertiesobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanagementGroupId, subscriptionId, groupQuotaName, allocationIdGet the quota allocation request status for the subscriptionId by allocationId.
listselectmanagementGroupId, subscriptionId, groupQuotaName, resourceProviderName, $filterGet all the quotaAllocationRequests for a resourceProvider/location. The filter paramter for location is required.
create_or_updateinsertmanagementGroupId, subscriptionId, groupQuotaName, resourceProviderName, resourceNameRequest 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.
updateupdatemanagementGroupId, subscriptionId, groupQuotaName, resourceProviderName, resourceNameRequest 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. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
$filterstring| Field | Supported operators
|---------------------|------------------------
location eq {location} Example: $filter=location eq eastus
allocationIdstringRequest Id.
groupQuotaNamestringThe GroupQuota name. The name should be unique for the provided context tenantId/MgId.
managementGroupIdstringManagement Group Id.
resourceNamestringResource name.
resourceProviderNamestringThe resource provider name, such as - Microsoft.Compute. Currently only Microsoft.Compute resource provider supports this API.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Get the quota allocation request status for the subscriptionId by allocationId.

SELECT
properties
FROM azure.quota.group_quota_subscription_allocation_requests
WHERE managementGroupId = '{{ managementGroupId }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND groupQuotaName = '{{ groupQuotaName }}' -- required
AND allocationId = '{{ allocationId }}' -- required
;

INSERT examples

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.

INSERT INTO azure.quota.group_quota_subscription_allocation_requests (
data__properties,
managementGroupId,
subscriptionId,
groupQuotaName,
resourceProviderName,
resourceName
)
SELECT
'{{ properties }}',
'{{ managementGroupId }}',
'{{ subscriptionId }}',
'{{ groupQuotaName }}',
'{{ resourceProviderName }}',
'{{ resourceName }}'
RETURNING
properties
;

UPDATE examples

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. User can collect unused quotas from multiple subscriptions within the groupQuota and assign the groupQuota to the subscription, where it's needed.

UPDATE azure.quota.group_quota_subscription_allocation_requests
SET
data__properties = '{{ properties }}'
WHERE
managementGroupId = '{{ managementGroupId }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
AND groupQuotaName = '{{ groupQuotaName }}' --required
AND resourceProviderName = '{{ resourceProviderName }}' --required
AND resourceName = '{{ resourceName }}' --required
RETURNING
properties;