Skip to main content

group_quota_subscriptions

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

Overview

Namegroup_quota_subscriptions
TypeResource
Idazure.quota.group_quota_subscriptions

Fields

The following fields are returned by SELECT queries:

OK.

NameDatatypeDescription
propertiesobject

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectmanagementGroupId, groupQuotaName, subscriptionIdReturns the subscriptionIds along with its provisioning state for being associated with the GroupQuota. If the subscription is not a member of GroupQuota, it will return 404, else 200.
listselectmanagementGroupId, groupQuotaNameReturns a list of the subscriptionIds associated with the GroupQuotas.
create_or_updateinsertmanagementGroupId, groupQuotaName, subscriptionIdAdds a subscription to GroupQuotas. The subscriptions will be validated based on the additionalAttributes defined in the GroupQuota. The additionalAttributes works as filter for the subscriptions, which can be included in the GroupQuotas. The request's TenantId is validated against the subscription's TenantId.
updateupdatemanagementGroupId, groupQuotaName, subscriptionIdUpdates the GroupQuotas with the subscription to add to the subscriptions list. The subscriptions will be validated if additionalAttributes are defined in the GroupQuota. The request's TenantId is validated against the subscription's TenantId.
deletedeletemanagementGroupId, groupQuotaName, subscriptionIdRemoves the subscription from GroupQuotas. The request's TenantId is validated against the subscription's TenantId.

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
groupQuotaNamestringThe GroupQuota name. The name should be unique for the provided context tenantId/MgId.
managementGroupIdstringManagement Group Id.
subscriptionIdstring (uuid)The ID of the target subscription. The value must be an UUID.

SELECT examples

Returns the subscriptionIds along with its provisioning state for being associated with the GroupQuota. If the subscription is not a member of GroupQuota, it will return 404, else 200.

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

INSERT examples

Adds a subscription to GroupQuotas. The subscriptions will be validated based on the additionalAttributes defined in the GroupQuota. The additionalAttributes works as filter for the subscriptions, which can be included in the GroupQuotas. The request's TenantId is validated against the subscription's TenantId.

INSERT INTO azure.quota.group_quota_subscriptions (
managementGroupId,
groupQuotaName,
subscriptionId
)
SELECT
'{{ managementGroupId }}',
'{{ groupQuotaName }}',
'{{ subscriptionId }}'
RETURNING
properties
;

UPDATE examples

Updates the GroupQuotas with the subscription to add to the subscriptions list. The subscriptions will be validated if additionalAttributes are defined in the GroupQuota. The request's TenantId is validated against the subscription's TenantId.

UPDATE azure.quota.group_quota_subscriptions
SET
-- No updatable properties
WHERE
managementGroupId = '{{ managementGroupId }}' --required
AND groupQuotaName = '{{ groupQuotaName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
RETURNING
properties;

DELETE examples

Removes the subscription from GroupQuotas. The request's TenantId is validated against the subscription's TenantId.

DELETE FROM azure.quota.group_quota_subscriptions
WHERE managementGroupId = '{{ managementGroupId }}' --required
AND groupQuotaName = '{{ groupQuotaName }}' --required
AND subscriptionId = '{{ subscriptionId }}' --required
;